git: 3ed6f14a3004 - main - cad/nvc: Fix build on systems without unwind.h in base

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Wed, 27 Jul 2022 08:41:25 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3ed6f14a30040a98d0bfff1ea078e081f57a8663

commit 3ed6f14a30040a98d0bfff1ea078e081f57a8663
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-07-27 08:40:21 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-07-27 08:40:21 +0000

    cad/nvc: Fix build on systems without unwind.h in base
    
    Reported by:    fallout
---
 cad/nvc/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/cad/nvc/Makefile b/cad/nvc/Makefile
index dabd5ad8f1bc..29ae67564c65 100644
--- a/cad/nvc/Makefile
+++ b/cad/nvc/Makefile
@@ -13,6 +13,9 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 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
+.if !exists(/usr/include/unwind.h)
+LIB_DEPENDS=	libunwind.so:devel/libunwind
+.endif
 
 USES=		autoreconf compiler:c++14-lang localbase pkgconfig