git: 474cdc3f85b4 - main - cad/librnd: Fix build on 14
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 18 Aug 2023 07:53:54 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=474cdc3f85b4335f4cab0d484459ad27551b02ef commit 474cdc3f85b4335f4cab0d484459ad27551b02ef Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2023-08-18 07:10:50 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-08-18 07:53:30 +0000 cad/librnd: Fix build on 14 Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- cad/librnd/Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cad/librnd/Makefile b/cad/librnd/Makefile index c6ecf98cb550..d9c187f849bb 100644 --- a/cad/librnd/Makefile +++ b/cad/librnd/Makefile @@ -69,6 +69,15 @@ STROKE_CONFIGURE_OFF= --disable-stroke WGET_RUN_DEPENDS= wget:ftp/wget WGET_CONFIGURE_OFF= --disable-lib_wget +.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 + .include <bsd.port.pre.mk> .if ${PORT_OPTIONS:MGTK2} || ${PORT_OPTIONS:MGTK4} || ${PORT_OPTIONS:MMOTIF}