Index: head/games/stratagus/Makefile =================================================================== --- head/games/stratagus/Makefile (revision 473321) +++ head/games/stratagus/Makefile (revision 473322) @@ -1,66 +1,68 @@ # Created by: Travis Poppe # $FreeBSD$ PORTNAME= stratagus PORTVERSION= 2.4.1 -PORTREVISION= 2 DISTVERSIONPREFIX= v +PORTREVISION= 2 CATEGORIES= games MAINTAINER= amdmi3@FreeBSD.org 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 OPTIONS_DEFAULT=MIKMOD MNG THEORA VORBIS X11 FLUIDSYNTH MIKMOD_LIB_DEPENDS= libmikmod.so:audio/libmikmod MIKMOD_CMAKE_BOOL= WITH_MIKMOD MNG_DESC= MNG image library support MNG_LIB_DEPENDS= libmng.so:graphics/libmng MNG_CMAKE_BOOL= WITH_MNG THEORA_LIB_DEPENDS= libtheora.so:multimedia/libtheora THEORA_CMAKE_BOOL= WITH_THEORA VORBIS_LIB_DEPENDS= libvorbis.so:audio/libvorbis \ libogg.so:audio/libogg VORBIS_CMAKE_BOOL= WITH_OGGVORBIS X11_DESC= X11 clipboard pasting support X11_USE= XORG=x11 X11_CMAKE_BOOL= WITH_X11 FLUIDSYNTH_LIB_DEPENDS= libfluidsynth.so:audio/fluidsynth FLUIDSYNTH_CMAKE_BOOL= WITH_FLUIDSYNTH post-install: ${INSTALL_DATA} ${WRKSRC}/doc/stratagus.6 ${STAGEDIR}${MAN6PREFIX}/man/man6 post-install-DOCS-on: @cd ${WRKSRC}/doc && ${COPYTREE_SHARE} "[a-z]*.html *.txt graphics scripts" \ ${STAGEDIR}${DOCSDIR} .include Index: head/games/stratagus/files/patch-src_ai_ai__plan.cpp =================================================================== --- head/games/stratagus/files/patch-src_ai_ai__plan.cpp (nonexistent) +++ head/games/stratagus/files/patch-src_ai_ai__plan.cpp (revision 473322) @@ -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; Property changes on: head/games/stratagus/files/patch-src_ai_ai__plan.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/games/stratagus/files/patch-src_stratagus_script.cpp =================================================================== --- head/games/stratagus/files/patch-src_stratagus_script.cpp (nonexistent) +++ head/games/stratagus/files/patch-src_stratagus_script.cpp (revision 473322) @@ -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"); Property changes on: head/games/stratagus/files/patch-src_stratagus_script.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property