Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jun 2018 15:08:27 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r473322 - in head/games/stratagus: . files
Message-ID:  <201806251508.w5PF8RGU037537@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Mon Jun 25 15:08:26 2018
New Revision: 473322
URL: https://svnweb.freebsd.org/changeset/ports/473322

Log:
  - Pet portlint
  - Fix build with clang 6

Added:
  head/games/stratagus/files/
  head/games/stratagus/files/patch-src_ai_ai__plan.cpp   (contents, props changed)
  head/games/stratagus/files/patch-src_stratagus_script.cpp   (contents, props changed)
Modified:
  head/games/stratagus/Makefile

Modified: head/games/stratagus/Makefile
==============================================================================
--- head/games/stratagus/Makefile	Mon Jun 25 15:06:22 2018	(r473321)
+++ head/games/stratagus/Makefile	Mon Jun 25 15:08:26 2018	(r473322)
@@ -3,8 +3,8 @@
 
 PORTNAME=	stratagus
 PORTVERSION=	2.4.1
-PORTREVISION=	2
 DISTVERSIONPREFIX=	v
+PORTREVISION=	2
 CATEGORIES=	games
 
 MAINTAINER=	amdmi3@FreeBSD.org
@@ -13,22 +13,24 @@ COMMENT=	Free cross-platform real-time strategy gaming
 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=	*
 

Added: head/games/stratagus/files/patch-src_ai_ai__plan.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/stratagus/files/patch-src_ai_ai__plan.cpp	Mon Jun 25 15:08:26 2018	(r473322)
@@ -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;

Added: head/games/stratagus/files/patch-src_stratagus_script.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/stratagus/files/patch-src_stratagus_script.cpp	Mon Jun 25 15:08:26 2018	(r473322)
@@ -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");



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806251508.w5PF8RGU037537>