forked from Lainports/freebsd-ports
games/openttd: fix build with LLVM 15 on powerpc*
Use LLVM 16 instead: Assertion failed: (!KnownValid && "Explicit template arguments?"), function AddOverloadedCallCandidate, file /usr/local/poudriere/jails/main-powerpc64le/usr/src/contrib/llvm-project/clang/lib/Sema/SemaOverload.cpp, line 12672.
This commit is contained in:
parent
e78f59a934
commit
f2488f960d
1 changed files with 9 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ LICENSE= GPLv2
|
|||
LIB_DEPENDS= libpng.so:graphics/png \
|
||||
liblzo2.so:archivers/lzo2
|
||||
|
||||
USES= cmake compiler:c++17-lang cpe pkgconfig tar:xz
|
||||
USES= cmake cpe pkgconfig tar:xz
|
||||
CMAKE_ARGS= -DCMAKE_INSTALL_BINDIR:PATH=bin \
|
||||
-DCMAKE_INSTALL_DATADIR:PATH=share
|
||||
|
||||
|
|
@ -41,6 +41,14 @@ SERVER_VARS= USE_RC_SUBR=${PORTNAME}
|
|||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${ARCH:Mpowerpc*} && ${OSVERSION} > 1400078
|
||||
USES+= llvm:min=16
|
||||
CC= clang${LLVM_VERSION}
|
||||
CXX= clang++${LLVM_VERSION}
|
||||
.else
|
||||
USES+= compiler:c++17-lang
|
||||
.endif
|
||||
|
||||
.if exists(${LOCALBASE}/lib/libSDL2.so)
|
||||
_SDL_VERSION= sdl2
|
||||
.else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue