summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--games/stratagus/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/games/stratagus/Makefile b/games/stratagus/Makefile
index 636d15e370bc..39fafe382c73 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