diff options
author | ponce <matteo.bernardini@gmail.com> | 2012-04-01 16:45:31 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2012-08-21 20:11:48 -0500 |
commit | cec74f1c3afb0f1042651e4694176e6e7f90091f (patch) | |
tree | 3d665e18699b7d132030cc7d04e385804a0effa3 | |
parent | e180c42c147e221a686bc5c55e549066acb35d32 (diff) |
games/warmux: Added a patch for gcc-4.7.x.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
-rw-r--r-- | games/warmux/gcc47.patch | 9 | ||||
-rw-r--r-- | games/warmux/warmux.SlackBuild | 5 |
2 files changed, 13 insertions, 1 deletions
diff --git a/games/warmux/gcc47.patch b/games/warmux/gcc47.patch new file mode 100644 index 0000000000000..e51801a369bd6 --- /dev/null +++ b/games/warmux/gcc47.patch @@ -0,0 +1,9 @@ +diff -Naur warmux-11.04.orig/tools/list_games/main.cpp warmux-11.04/tools/list_games/main.cpp +--- warmux-11.04.orig/tools/list_games/main.cpp 2011-04-28 21:03:12.000000000 +0200 ++++ warmux-11.04/tools/list_games/main.cpp 2012-04-01 10:03:27.752999997 +0200 +@@ -1,4 +1,5 @@ + #include <stdio.h> ++#include <unistd.h> + #include <WARMUX_types.h> + #include <WARMUX_network.h> + #include <WARMUX_index_server.h> diff --git a/games/warmux/warmux.SlackBuild b/games/warmux/warmux.SlackBuild index a271f56852813..ec9ca06c59537 100644 --- a/games/warmux/warmux.SlackBuild +++ b/games/warmux/warmux.SlackBuild @@ -27,7 +27,7 @@ PRGNAM=warmux VERSION=11.04.1 -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -68,6 +68,9 @@ cd $PRGNAM-11.04 chown -R root:root . chmod -R a-s,u+w,go+r-w . +# Fix building with gcc-4.7.x +patch -p1 < $CWD/gcc47.patch + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ |