git: 1f3fdcf53843 - main - cad/pcb-rnd: Fix build on 14

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Fri, 18 Aug 2023 07:53:56 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1f3fdcf53843a4ea657ab0f6f6d086b2f31260e2

commit 1f3fdcf53843a4ea657ab0f6f6d086b2f31260e2
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-18 07:23:05 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-18 07:53:31 +0000

    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 809bff849027..7440713ed310 100644
--- a/cad/pcb-rnd/Makefile
+++ b/cad/pcb-rnd/Makefile
@@ -30,6 +30,15 @@ BINARY_ALIAS=	make=${MAKE_CMD}
 
 OPTIONS_DEFINE=	DOCS
 
+.include <bsd.port.options.mk>
+
+.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