git: 86ff748a50d8 - main - math/pcalc: Corrections
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 21 Feb 2025 17:18:15 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=86ff748a50d8760dc8d42fc0145504a6263e66ed
commit 86ff748a50d8760dc8d42fc0145504a6263e66ed
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2025-02-21 17:17:07 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2025-02-21 17:18:11 +0000
math/pcalc: Corrections
Reported by: jhale
---
math/pcalc/Makefile | 8 ++++----
math/pcalc/files/patch-Makefile | 4 ++--
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/math/pcalc/Makefile b/math/pcalc/Makefile
index 9951dd1e6d45..e94bc0e45d8d 100644
--- a/math/pcalc/Makefile
+++ b/math/pcalc/Makefile
@@ -21,11 +21,11 @@ PLIST_FILES= bin/pcalc
TEST_TARGET= check
-post-install:
- @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/pcalc
-
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
- cd ${WRKSRC} && ${INSTALL_MAN} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
+ cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
+
+post-install:
+ @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/pcalc
.include <bsd.port.mk>
diff --git a/math/pcalc/files/patch-Makefile b/math/pcalc/files/patch-Makefile
index 1cf450c6cc57..8693b6228cec 100644
--- a/math/pcalc/files/patch-Makefile
+++ b/math/pcalc/files/patch-Makefile
@@ -14,11 +14,11 @@
INSTALL = install
-BINDIR = /usr/bin
-+BINDIR = /usr/local/bin
++BINDIR = $(PREFIX)/bin
DESTDIR =
install:
- $(INSTALL) -m 755 -D pcalc $(DESTDIR)$(BINDIR)/pcalc
-+ $(INSTALL) -m 755 -D $(DESTDIR)$(BINDIR) pcalc $(DESTDIR)$(BINDIR)/pcalc
++ $(BSD_INSTALL_PROGRAM) pcalc $(DESTDIR)$(BINDIR)/pcalc
dist pack: distclean
rm -rf pcalc-$(VERSION)