diff --git a/games/stratagus/Makefile b/games/stratagus/Makefile index 636d15e370bc716b7e01ae68366b3d8ae1f7d512..39fafe382c73a3ecb78ba4e02ce81814f13d291b 100644 --- a/games/stratagus/Makefile +++ b/games/stratagus/Makefile @@ -18,7 +18,7 @@ RUN_DEPENDS= zenity:x11/zenity USE_GITHUB= yes GH_ACCOUNT= Wargus -USES= cmake compiler:c++17-lang lua:51 pkgconfig sdl +USES= cmake lua:51 pkgconfig sdl USE_SDL= sdl2 mixer2 image2 CMAKE_ARGS= -DGAMEDIR:STRING="bin" \ -DTOLUA++_APP:STRING="tolua++-${LUA_VER}" \ @@ -43,6 +43,14 @@ VORBIS_LIB_DEPENDS= libvorbis.so:audio/libvorbis \ libogg.so:audio/libogg VORBIS_CMAKE_BOOL= WITH_OGGVORBIS +.include <bsd.port.options.mk> + +.if ${ARCH} == powerpc +USES+= compiler:gcc-c++11-lib +.else +USES+= compiler:c++17-lang +.endif + .include <bsd.port.pre.mk> .if ${CHOSEN_COMPILER_TYPE} == clang