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:
Piotr Kubaj 2023-03-18 21:56:23 +01:00
parent e78f59a934
commit f2488f960d

View file

@ -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