aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--games/meandmyshadow/gcc-4.7.patch14
-rw-r--r--games/meandmyshadow/meandmyshadow.SlackBuild5
-rw-r--r--games/meandmyshadow/meandmyshadow.info2
3 files changed, 19 insertions, 2 deletions
diff --git a/games/meandmyshadow/gcc-4.7.patch b/games/meandmyshadow/gcc-4.7.patch
new file mode 100644
index 000000000000..3298a088f06f
--- /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 <stdint.h>
++#include <unistd.h>
++#endif
+ #include "TreeStorageNode.h"
+ #include "MD5.h"
+ #include <string.h>
diff --git a/games/meandmyshadow/meandmyshadow.SlackBuild b/games/meandmyshadow/meandmyshadow.SlackBuild
index 3f732b851914..63bb8b3bcf65 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 098f79ca907d..32c3aead23ec 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"