git: 1189ae1e7a82 - main - sysutils/ncdu2: Add WITH_DEBUG check
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 04 Sep 2023 13:17:16 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=1189ae1e7a82f7d3b06a7d9305630e38f38ab2b2
commit 1189ae1e7a82f7d3b06a7d9305630e38f38ab2b2
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-09-04 13:16:29 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-09-04 13:16:48 +0000
sysutils/ncdu2: Add WITH_DEBUG check
PR: 273277
Reported by: Benjamin Takacs <nimaje+fbz@bureaucracy.de>
---
sysutils/ncdu2/Makefile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sysutils/ncdu2/Makefile b/sysutils/ncdu2/Makefile
index 7ec06091f303..00f3d4401a94 100644
--- a/sysutils/ncdu2/Makefile
+++ b/sysutils/ncdu2/Makefile
@@ -27,7 +27,9 @@ do-build:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} zig build ${BUILD_ARGS}
do-install:
+.if !defined(WITH_DEBUG)
/usr/bin/llvm-strip ${STAGEDIR}${PREFIX}/bin/ncdu
+.endif
${MV} ${STAGEDIR}${PREFIX}/bin/ncdu ${STAGEDIR}${PREFIX}/bin/ncdu2
${INSTALL_MAN} ${WRKSRC}/ncdu.1 ${STAGEDIR}${PREFIX}/share/man/man1/ncdu2.1