git: 07ca8a486f68 - main - cad/nvc: Fix dependency on devel/libunwind
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 08 May 2022 19:05:51 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=07ca8a486f688fc2f042b81a2339ceb6d7e99e32
commit 07ca8a486f688fc2f042b81a2339ceb6d7e99e32
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-05-08 19:04:44 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-05-08 19:04:44 +0000
cad/nvc: Fix dependency on devel/libunwind
It is needed only when ${OSVERSION} < 1400052.
Reported by: fallout
---
cad/nvc/Makefile | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/cad/nvc/Makefile b/cad/nvc/Makefile
index a217d797808a..ef004c944c10 100644
--- a/cad/nvc/Makefile
+++ b/cad/nvc/Makefile
@@ -9,8 +9,7 @@ COMMENT= VHDL compiler and simulator
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
-BUILD_DEPENDS= llvm-config${LLVM_VERSION}:devel/llvm${LLVM_VERSION} \
- ${LOCALBASE}/include/unwind.h:devel/libunwind
+BUILD_DEPENDS= llvm-config${LLVM_VERSION}:devel/llvm${LLVM_VERSION}
RUN_DEPENDS= llvm${LLVM_VERSION}>0:devel/llvm${LLVM_VERSION}
TEST_DEPENDS= check>0:devel/check
@@ -31,6 +30,12 @@ MAKE_ARGS= CFLAGS="${CFLAGS}" # only for tests
LLVM_VERSION= ${LLVM_DEFAULT}
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1400052 # devel/libunwind installs include/unwind.h only before that version, after which it probably exists in the base
+BUILD_DEPENDS+= ${LOCALBASE}/include/unwind.h:devel/libunwind
+.endif
+
post-install:
${FIND} ${STAGEDIR}${PREFIX} -name "*.so" | ${XARGS} ${STRIP_CMD}