summaryrefslogtreecommitdiff
path: root/games/warmux/warmux.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/warmux/warmux.SlackBuild')
-rw-r--r--games/warmux/warmux.SlackBuild5
1 files changed, 4 insertions, 1 deletions
diff --git a/games/warmux/warmux.SlackBuild b/games/warmux/warmux.SlackBuild
index ec9ca06c59..f6614581d0 100644
--- a/games/warmux/warmux.SlackBuild
+++ b/games/warmux/warmux.SlackBuild
@@ -27,7 +27,7 @@
PRGNAM=warmux
VERSION=11.04.1
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -70,6 +70,9 @@ chmod -R a-s,u+w,go+r-w .
# Fix building with gcc-4.7.x
patch -p1 < $CWD/gcc47.patch
+# Fix for sdlnet
+sed -i "s|SDLNet_Read32(buffer)|SDLNet_Read32(const_cast<char*>(buffer))|" \
+ lib/warmux/action/action.cpp
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \