git: 7ee8c74b4662 - main - lang/spidermonkey91: Fix build on 14
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 18 Aug 2023 06:57:23 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=7ee8c74b4662b389fc775cf60cd0a07dce400804 commit 7ee8c74b4662b389fc775cf60cd0a07dce400804 Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2023-08-18 05:36:35 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-08-18 06:57:12 +0000 lang/spidermonkey91: Fix build on 14 For now this is not the ideal solution. Not sure why there is a check for llvm version 80. So not touching that part of the code at the moment. This will require further investigation later. Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- lang/spidermonkey91/Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lang/spidermonkey91/Makefile b/lang/spidermonkey91/Makefile index a89a1d87b963..99403056b15b 100644 --- a/lang/spidermonkey91/Makefile +++ b/lang/spidermonkey91/Makefile @@ -52,6 +52,17 @@ CONFIGURE_ENV= HOST_CC=${CC} \ BINARY_ALIAS= python3=${PYTHON_CMD} PLIST_SUB= SP_VER=${SP_VER} +.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} +CONFIGURE_ENV+= LLVM_CONFIG=llvm-config${LLVM_VERSION} \ + LLVM_OBJDUMP=llvm-objdump${LLVM_VERSION} +.endif + .include <bsd.port.pre.mk> .if ${ARCH} == amd64