git: e474d82d3e8c - main - devel/lua-language-server: Attempt to fix build on 12
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 06 Oct 2022 14:49:24 UTC
The branch main has been updated by adamw: URL: https://cgit.FreeBSD.org/ports/commit/?id=e474d82d3e8ca0824cf34a2bb5fc65c3467d9a9b commit e474d82d3e8ca0824cf34a2bb5fc65c3467d9a9b Author: Adam Weinberger <adamw@FreeBSD.org> AuthorDate: 2022-10-06 14:49:12 +0000 Commit: Adam Weinberger <adamw@FreeBSD.org> CommitDate: 2022-10-06 14:49:19 +0000 devel/lua-language-server: Attempt to fix build on 12 --- devel/lua-language-server/Makefile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/devel/lua-language-server/Makefile b/devel/lua-language-server/Makefile index 58852b04bb0c..163329c1562a 100644 --- a/devel/lua-language-server/Makefile +++ b/devel/lua-language-server/Makefile @@ -11,7 +11,9 @@ LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libinotify.so:devel/libinotify -USES= dos2unix lua:build ninja:make +# BROKEN_FREEBSD_12= 3rd/bee.lua/bee/thread/spinlock.h:9:14: fatal error: 'immintrin.h' file not found + +USES= compiler:features dos2unix lua:build ninja:make USE_GITHUB= yes GH_ACCOUNT= sumneko GH_TUPLE= actboy168:bee.lua:a749943:bee/3rd/bee.lua \ @@ -33,6 +35,15 @@ PLIST_FILES= bin/lua-language-server \ ${DATADIR_REL}/main.lua PORTDATA= locale meta script +.include <bsd.port.pre.mk> + +.if ${CHOSEN_COMPILER_TYPE} == clang && ${COMPILER_VERSION} < 130 +BUILD_DEPENDS+= llvm13>0:devel/llvm13 +CPP= ${LOCALBASE}/bin/clang-cpp13 +CC= ${LOCALBASE}/bin/clang13 +CXX= ${LOCALBASE}/bin/clang++13 +.endif + # post-extract: # ${CP} -rp ${WRKSRC}/3rd/bee.lua ${WRKSRC}/3rd/luamake/3rd