diff --git a/games/stratagus/Makefile b/games/stratagus/Makefile index d1cb3749dbce..491026a9fae6 100644 --- a/games/stratagus/Makefile +++ b/games/stratagus/Makefile @@ -3,8 +3,8 @@ PORTNAME= stratagus PORTVERSION= 2.4.1 -PORTREVISION= 2 DISTVERSIONPREFIX= v +PORTREVISION= 2 CATEGORIES= games MAINTAINER= amdmi3@FreeBSD.org @@ -13,23 +13,25 @@ COMMENT= Free cross-platform real-time strategy gaming engine LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING +BROKEN_powerpc64= fails to compile: cc1plus: unrecognized command line option "-std=gnu++0x" + LIB_DEPENDS= libpng.so:graphics/png \ libtolua++-${LUA_VER}.so:lang/tolua++ -BROKEN_powerpc64= fails to compile: cc1plus: unrecognized command line option "-std=gnu++0x" - USE_GITHUB= yes GH_ACCOUNT= Wargus +USES= cmake:outsource lua:51 pkgconfig sqlite USE_GL= gl glu USE_SDL= sdl -USES= cmake:outsource lua:51 pkgconfig sqlite CMAKE_ARGS= -DGAMEDIR:STRING="bin" \ -DTOLUA++_APP:STRING="tolua++-${LUA_VER}" \ -DTOLUA++_INCLUDE_DIR:STRING="${LUA_INCDIR}" \ -DTOLUA++_LIBRARY:STRING="${LUA_LIBDIR}/libtolua++.so" \ -DENABLE_DEV:BOOL=ON +CXXFLAGS+= -Wno-c++11-narrowing + PORTDOCS= * OPTIONS_DEFINE= MIKMOD MNG THEORA VORBIS X11 FLUIDSYNTH DOCS diff --git a/games/stratagus/files/patch-src_ai_ai__plan.cpp b/games/stratagus/files/patch-src_ai_ai__plan.cpp new file mode 100644 index 000000000000..cfebe2d31a1b --- /dev/null +++ b/games/stratagus/files/patch-src_ai_ai__plan.cpp @@ -0,0 +1,11 @@ +--- src/ai/ai_plan.cpp.orig 2016-11-08 14:38:09 UTC ++++ src/ai/ai_plan.cpp +@@ -343,7 +343,7 @@ int GetTotalBoardCapacity(ITERATOR begin + int AiForce::PlanAttack() + { + CPlayer &player = *AiPlayer->Player; +- DebugPrint("%d: Planning for force #%lu of player #%d\n"_C_ player.Index ++ DebugPrint("%d: Planning for force #%lu of player #%d\n" _C_ player.Index + _C_(long unsigned int)(this - & (AiPlayer->Force[0])) _C_ player.Index); + + TerrainTraversal transporterTerrainTraversal; diff --git a/games/stratagus/files/patch-src_stratagus_script.cpp b/games/stratagus/files/patch-src_stratagus_script.cpp new file mode 100644 index 000000000000..823e140e209d --- /dev/null +++ b/games/stratagus/files/patch-src_stratagus_script.cpp @@ -0,0 +1,20 @@ +--- src/stratagus/script.cpp.orig 2016-11-08 14:38:09 UTC ++++ src/stratagus/script.cpp +@@ -767,7 +767,7 @@ NumberDesc *CclParseNumberDesc(lua_State + lua_pop(l, 1); // table. + } else { + lua_pop(l, 1); +- LuaError(l, "unknow condition '%s'"_C_ key); ++ LuaError(l, "unknow condition '%s'" _C_ key); + } + } else { + LuaError(l, "Parse Error in ParseNumber"); +@@ -881,7 +881,7 @@ StringDesc *CclParseStringDesc(lua_State + res->D.PlayerName = CclParseNumberDesc(l); + } else { + lua_pop(l, 1); +- LuaError(l, "unknow condition '%s'"_C_ key); ++ LuaError(l, "unknow condition '%s'" _C_ key); + } + } else { + LuaError(l, "Parse Error in ParseString");