aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2016-11-15 00:10:57 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2016-11-15 00:10:57 +0800
commitbf14630d264a9160dc837c514f487902a2f64259 (patch)
tree676fd4f22dd3eacd03b18e9764910a47f2dbc1ee /games
parent6443c93d7cd2c4292aebcda11c59300c78f39ee4 (diff)
downloadfreebsd-ports-gnome-bf14630d264a9160dc837c514f487902a2f64259.tar.gz
freebsd-ports-gnome-bf14630d264a9160dc837c514f487902a2f64259.tar.zst
freebsd-ports-gnome-bf14630d264a9160dc837c514f487902a2f64259.zip
- Fix build by using correct shell
- Fix build on 9.x by properly using c++11
Diffstat (limited to 'games')
-rw-r--r--games/lordsawar/Makefile2
-rw-r--r--games/lordsawar/files/patch-src_MapRenderer.cpp11
-rw-r--r--games/lordsawar/files/patch-src_gui_stack-army-button.cpp11
3 files changed, 24 insertions, 0 deletions
diff --git a/games/lordsawar/Makefile b/games/lordsawar/Makefile
index a3e37f4aa76d..69c9108b1639 100644
--- a/games/lordsawar/Makefile
+++ b/games/lordsawar/Makefile
@@ -14,8 +14,10 @@ LICENSE_FILE= ${WRKSRC}/COPYING
USES= compiler:c++11-lib gettext gmake libarchive pkgconfig shebangfix
USE_GNOME= gtkmm30 intltool libxslt
USE_GSTREAMER= mm
+USE_CXXSTD= c++11
INSTALLS_ICONS= yes
GNU_CONFIGURE= yes
SHEBANG_FILES= create-lw-file
+bash_CMD= /bin/sh
.include <bsd.port.mk>
diff --git a/games/lordsawar/files/patch-src_MapRenderer.cpp b/games/lordsawar/files/patch-src_MapRenderer.cpp
new file mode 100644
index 000000000000..4a1a56aa0335
--- /dev/null
+++ b/games/lordsawar/files/patch-src_MapRenderer.cpp
@@ -0,0 +1,11 @@
+--- src/MapRenderer.cpp.orig 2015-06-10 18:06:19 UTC
++++ src/MapRenderer.cpp
+@@ -72,7 +72,7 @@ void MapRenderer::render_tile(Vector<int
+ }
+ else
+ {
+- if (style->getImage() == false)
++ if (!style->getImage())
+ {
+ printf ("pic for style %d for tile %d at %d,%d is null\n",
+ style->getType(), mtile->getType(), tile.x, tile.y);
diff --git a/games/lordsawar/files/patch-src_gui_stack-army-button.cpp b/games/lordsawar/files/patch-src_gui_stack-army-button.cpp
new file mode 100644
index 000000000000..bb3a815d245d
--- /dev/null
+++ b/games/lordsawar/files/patch-src_gui_stack-army-button.cpp
@@ -0,0 +1,11 @@
+--- src/gui/stack-army-button.cpp.orig 2015-06-20 22:48:43 UTC
++++ src/gui/stack-army-button.cpp
+@@ -146,7 +146,7 @@ void StackArmyButton::fill_army_button()
+ {
+ bool greyed_out = false;
+ Stack *active_stack = p->getActivestack();
+- if (active_stack->getArmyById(d_army->getId()) == false)
++ if (!active_stack->getArmyById(d_army->getId()))
+ greyed_out = true;
+ army_image->property_pixbuf() =
+ gc->getCircledArmyPic(p->getArmyset(), d_army->getTypeId(),