aboutsummaryrefslogtreecommitdiff
path: root/games/wyrmgus
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2015-10-26 11:43:56 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2015-10-26 11:43:56 +0000
commit88fc8decfa23ba40611db3d0d14f5ada3d987ef6 (patch)
tree4ec153894855961550491da15cff784833238430 /games/wyrmgus
parent9febae8b79867621feffece7ed51926a715bba3a (diff)
downloadports-88fc8decfa23ba40611db3d0d14f5ada3d987ef6.tar.gz
ports-88fc8decfa23ba40611db3d0d14f5ada3d987ef6.zip
- Update to 1.4.1
Notes
Notes: svn path=/head/; revision=400181
Diffstat (limited to 'games/wyrmgus')
-rw-r--r--games/wyrmgus/Makefile12
-rw-r--r--games/wyrmgus/distinfo4
-rw-r--r--games/wyrmgus/files/patch-src_unit_script__unittype.cpp11
3 files changed, 11 insertions, 16 deletions
diff --git a/games/wyrmgus/Makefile b/games/wyrmgus/Makefile
index cb2bb31e5498..8685e01a9417 100644
--- a/games/wyrmgus/Makefile
+++ b/games/wyrmgus/Makefile
@@ -2,7 +2,8 @@
# $FreeBSD$
PORTNAME= wyrmgus
-PORTVERSION= git20150601
+PORTVERSION= 1.4.1
+DISTVERSIONPREFIX= v
CATEGORIES= games devel
MAINTAINER= amdmi3@FreeBSD.org
@@ -17,7 +18,6 @@ LIB_DEPENDS= libpng.so:${PORTSDIR}/graphics/png \
USE_GITHUB= yes
GH_ACCOUNT= Andrettin
GH_PROJECT= Wyrmgus
-GH_TAGNAME= 80c76abcc6
USE_GL= gl glu
USE_SDL= sdl
@@ -64,8 +64,14 @@ FLUIDSYNTH_LIB_DEPENDS= libfluidsynth.so:${PORTSDIR}/audio/fluidsynth
FLUIDSYNTH_CMAKE_ON= -DWITH_FLUIDSYNTH:BOOL=ON
FLUIDSYNTH_CMAKE_OFF= -DWITH_FLUIDSYNTH:BOOL=OFF
+.include <bsd.port.pre.mk>
+
+.if ${COMPILER_TYPE} == gcc
+CXXFLAGS+= -D_GLIBCXX_USE_C99 # gcc c++11 support is broken on FreeBSD
+.endif
+
do-install:
${INSTALL_PROGRAM} ${CONFIGURE_WRKSRC}/stratagus ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
${INSTALL_DATA} ${WRKSRC}/src/win32/wyrmsun.ico ${STAGEDIR}${PREFIX}/share/pixmaps/
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/games/wyrmgus/distinfo b/games/wyrmgus/distinfo
index 3164a78976aa..b75136fad00c 100644
--- a/games/wyrmgus/distinfo
+++ b/games/wyrmgus/distinfo
@@ -1,2 +1,2 @@
-SHA256 (Andrettin-Wyrmgus-git20150601-80c76abcc6_GH0.tar.gz) = 1032a1b372061c36c9a1615ace17db5307923bbc209fa15c34a4d55cfbacd720
-SIZE (Andrettin-Wyrmgus-git20150601-80c76abcc6_GH0.tar.gz) = 1076866
+SHA256 (Andrettin-Wyrmgus-v1.4.1_GH0.tar.gz) = bee4c96ddd74e6c3105d725c37dfb774a6be53465355c7b578824b28719b89dc
+SIZE (Andrettin-Wyrmgus-v1.4.1_GH0.tar.gz) = 1176777
diff --git a/games/wyrmgus/files/patch-src_unit_script__unittype.cpp b/games/wyrmgus/files/patch-src_unit_script__unittype.cpp
deleted file mode 100644
index 0a8291211055..000000000000
--- a/games/wyrmgus/files/patch-src_unit_script__unittype.cpp
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/unit/script_unittype.cpp.orig 2015-06-01 15:35:14 UTC
-+++ src/unit/script_unittype.cpp
-@@ -1342,7 +1342,7 @@ static int CclDefineUnitType(lua_State *
- type->Parent = LuaToString(l, -1);
- CUnitType *parent_type = UnitTypeByIdent(type->Parent);
- if (!parent_type) {
-- LuaError(l, "Unit type %s not defined" _C_ type->Parent);
-+ LuaError(l, "Unit type %s not defined" _C_ type->Parent.c_str());
- }
- type->Class = parent_type->Class;
- type->DrawLevel = parent_type->DrawLevel;