Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 May 2022 19:05:51 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 07ca8a486f68 - main - cad/nvc: Fix dependency on devel/libunwind
Message-ID:  <202205081905.248J5pHu015920@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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}
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202205081905.248J5pHu015920>