From 1f3fdcf53843a4ea657ab0f6f6d086b2f31260e2 Mon Sep 17 00:00:00 2001 From: Muhammad Moinur Rahman Date: Fri, 18 Aug 2023 09:23:05 +0200 Subject: [PATCH] cad/pcb-rnd: Fix build on 14 Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- cad/pcb-rnd/Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cad/pcb-rnd/Makefile b/cad/pcb-rnd/Makefile index 809bff849027e..7440713ed3103 100644 --- a/cad/pcb-rnd/Makefile +++ b/cad/pcb-rnd/Makefile @@ -30,6 +30,15 @@ BINARY_ALIAS= make=${MAKE_CMD} OPTIONS_DEFINE= DOCS +.include + +.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 )) +USES+= llvm:max=15 +CC= clang${LLVM_VERSION} +CPP= clang-cpp${LLVM_VERSION} +CXX= clang++${LLVM_VERSION} +.endif + post-install: .for f in pcb-rnd txt2bxl bxl2txt gsch2pcb-rnd ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/$f