summaryrefslogtreecommitdiff
path: root/games/tmw
diff options
context:
space:
mode:
authordsomero <xgizzmo@slackbuilds.org>2011-03-27 18:35:15 -0400
committerRobby Workman <rworkman@slackbuilds.org>2011-03-27 22:03:14 -0500
commitcdbd4988495b977e56569a4662d14697d4c819a8 (patch)
treeaaf1d2e7c0fe9122f568df469c3db2d5216cfeb1 /games/tmw
parente25041e878fc80449eabeb45e4479ffa39c4d1a7 (diff)
downloadslackbuilds-cdbd4988495b977e56569a4662d14697d4c819a8.tar.gz
games/tmw: Patched to build with gcc4.5.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'games/tmw')
-rw-r--r--games/tmw/tmw-0.0.29.1-gcc45.patch22
-rw-r--r--games/tmw/tmw.SlackBuild4
2 files changed, 25 insertions, 1 deletions
diff --git a/games/tmw/tmw-0.0.29.1-gcc45.patch b/games/tmw/tmw-0.0.29.1-gcc45.patch
new file mode 100644
index 0000000000..c6cad2a023
--- /dev/null
+++ b/games/tmw/tmw-0.0.29.1-gcc45.patch
@@ -0,0 +1,22 @@
+--- src/emoteshortcut.cpp.old 2010-05-24 17:17:18.000000000 +0200
++++ src/emoteshortcut.cpp 2010-05-24 17:18:40.000000000 +0200
+@@ -26,7 +26,7 @@
+
+ #include "utils/stringutils.h"
+
+-EmoteShortcut::EmoteShortcut *emoteShortcut;
++EmoteShortcut *emoteShortcut;
+
+ EmoteShortcut::EmoteShortcut():
+ mEmoteSelected(0)
+--- src/itemshortcut.cpp.old 2010-05-24 17:19:37.000000000 +0200
++++ src/itemshortcut.cpp 2010-05-24 17:19:49.000000000 +0200
+@@ -30,7 +30,7 @@
+
+ #include "utils/stringutils.h"
+
+-ItemShortcut::ItemShortcut *itemShortcut;
++ItemShortcut *itemShortcut;
+
+ ItemShortcut::ItemShortcut():
+ mItemSelected(-1)
diff --git a/games/tmw/tmw.SlackBuild b/games/tmw/tmw.SlackBuild
index 40c034847b..7f53378a65 100644
--- a/games/tmw/tmw.SlackBuild
+++ b/games/tmw/tmw.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=tmw
VERSION=0.0.29.1
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
# Automatically determine the architecture we're building on:
@@ -67,6 +67,8 @@ cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
+patch -p0 < $CWD/tmw-0.0.29.1-gcc45.patch
+
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \