summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Willy Sudiarto Raharjo <willysr@slackbuilds.org>2016-02-02 07:52:02 +0700
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2016-02-05 07:02:20 +0700
commit0d807b631295a789e8a16980e6e77b10e154f71b (patch)
treee554eb55df9893747f1c811fbffd15ed3ef86ed5
parent1774bc497f784ad60017d678be0c30b1d8a71244 (diff)
downloadslackbuilds-0d807b631295a789e8a16980e6e77b10e154f71b.tar.gz
slackbuilds-0d807b631295a789e8a16980e6e77b10e154f71b.tar.xz
games/glob2: Fix build.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--games/glob2/fix-ftbfs-gcc49.diff15
-rw-r--r--games/glob2/glob2.SlackBuild1
2 files changed, 16 insertions, 0 deletions
diff --git a/games/glob2/fix-ftbfs-gcc49.diff b/games/glob2/fix-ftbfs-gcc49.diff
new file mode 100644
index 0000000000..061146a468
--- /dev/null
+++ b/games/glob2/fix-ftbfs-gcc49.diff
@@ -0,0 +1,15 @@
+Index: glob2-0.9.4.4/src/Game.h
+===================================================================
+--- glob2-0.9.4.4.orig/src/Game.h 2014-07-14 10:36:36.705074927 +0800
++++ glob2-0.9.4.4/src/Game.h 2014-07-14 10:38:28.733077827 +0800
+@@ -148,7 +148,8 @@
+ TOP_TO_BOTTOM,
+ BOTTOM_TO_TOP
+ };
+-
++
++public:
+ struct BuildProject
+ {
+ int posX;
+
diff --git a/games/glob2/glob2.SlackBuild b/games/glob2/glob2.SlackBuild
index 1d5973bc9f..1e62ddebd4 100644
--- a/games/glob2/glob2.SlackBuild
+++ b/games/glob2/glob2.SlackBuild
@@ -71,6 +71,7 @@ find -L . \
patch -p1 < $CWD/TextStream_headers.patch
patch -p1 < $CWD/SConstruct_boost.patch
+patch -p1 < $CWD/fix-ftbfs-gcc49.diff
mkdir -p $PKG/usr/bin \
$PKG/usr/share/games/$PRGNAM