From 7db66fdb9bc2b339a63ef3f847d744bcbc7582af Mon Sep 17 00:00:00 2001 From: Larry Hajali Date: Wed, 1 Aug 2012 08:34:54 -0300 Subject: games/meandmyshadow: Patched for gcc-4.7. Signed-off-by: Niels Horn --- games/meandmyshadow/gcc-4.7.patch | 14 ++++++++++++++ games/meandmyshadow/meandmyshadow.SlackBuild | 5 ++++- games/meandmyshadow/meandmyshadow.info | 2 +- 3 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 games/meandmyshadow/gcc-4.7.patch diff --git a/games/meandmyshadow/gcc-4.7.patch b/games/meandmyshadow/gcc-4.7.patch new file mode 100644 index 0000000000000..3298a088f06f2 --- /dev/null +++ b/games/meandmyshadow/gcc-4.7.patch @@ -0,0 +1,14 @@ +diff -Naur meandmyshadow-0.3.orig/src/TreeStorageNode.cpp meandmyshadow-0.3/src/TreeStorageNode.cpp +--- meandmyshadow-0.3.orig/src/TreeStorageNode.cpp 2012-02-07 18:19:03.000000000 +0000 ++++ meandmyshadow-0.3/src/TreeStorageNode.cpp 2012-07-11 02:17:49.188110565 +0000 +@@ -17,6 +17,10 @@ + ** + ****************************************************************************/ + ++#ifndef WIN32 ++#include ++#include ++#endif + #include "TreeStorageNode.h" + #include "MD5.h" + #include diff --git a/games/meandmyshadow/meandmyshadow.SlackBuild b/games/meandmyshadow/meandmyshadow.SlackBuild index 3f732b8519145..63bb8b3bcf65d 100644 --- a/games/meandmyshadow/meandmyshadow.SlackBuild +++ b/games/meandmyshadow/meandmyshadow.SlackBuild @@ -6,7 +6,7 @@ PRGNAM=meandmyshadow VERSION=${VERSION:-0.3} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -57,6 +57,9 @@ sed -i -e '/^Version/d' -e 's|;Game;|;|' meandmyshadow.desktop # SLKCFLAGS are respected. sed -i "s|-Wall -g|& $SLKCFLAGS|" CMakeLists.txt +# From upstream. Fix for building with gcc 4.7.x. +patch -p1 < $CWD/gcc-4.7.patch + mkdir -p build cd build cmake -G "Unix Makefiles" \ diff --git a/games/meandmyshadow/meandmyshadow.info b/games/meandmyshadow/meandmyshadow.info index 098f79ca907db..32c3aead23ec8 100644 --- a/games/meandmyshadow/meandmyshadow.info +++ b/games/meandmyshadow/meandmyshadow.info @@ -7,4 +7,4 @@ DOWNLOAD_x86_64="" MD5SUM_x86_64="" MAINTAINER="Larry Hajali" EMAIL="larryhaja[at]gmail[dot]com" -APPROVED="dsomero" +APPROVED="dsomero,Niels Horn" -- cgit v1.2.3