git: 350e8445193d - main - games/stratagus: fix build on powerpc
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 08 Feb 2022 21:59:14 UTC
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=350e8445193d65b9933703a7d78499f7208a2b56 commit 350e8445193d65b9933703a7d78499f7208a2b56 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2022-02-08 21:52:34 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2022-02-08 21:52:34 +0000 games/stratagus: fix build on powerpc /usr/bin/c++ -DHAVE_GETOPT -DHAVE_STRCASESTR -DHAVE_STRNLEN -DPIXMAPS=\"/usr/local/share/pixmaps\" -DUSE_BSD -DUSE_BZ2LIB -DUSE_MNG -DUSE_THEORA -DUSE_VORBIS -DUSE_ZLIB -I/wrkdirs/usr/ports/games/stratagus/work/stratagus-3.2.0/src/include -I/wrkdirs/usr/ports/games/stratagus/work/stratagus-3.2.0/src/guichan/include -I/wrkdirs/usr/ports/games/stratagus/work/stratagus-3.2.0/src/guichan/include/guichan -I/wrkdirs/usr/ports/games/stratagus/work/stratagus-3.2.0/src/third_party -I/wrkdirs/usr/ports/games/stratagus/work/.build -I/usr/local/include/lua51 -I/usr/local/include/SDL2 -I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wno-register -fsigned-char -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wno-register -std=gnu++17 -MD -MT CMakeFiles/stratagus.dir/src/map/fow.cpp.o -MF CMakeFiles/stratagus.dir/src/map/fow.cpp.o.d -o CMakeFiles/stratagus.dir/src/map/fow.cpp.o -c /wrkdirs/usr/ports/games/stratagus/work/stratagus-3.2.0/src/map/fow.cpp /wrkdirs/usr/ports/games/stratagus/work/stratagus-3.2.0/src/map/fow.cpp:39:10: fatal error: 'omp.h' file not found ^~~~~~~ --- games/stratagus/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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