games/monkey-bubble: Fixed to build against gcc-4.7

Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
This commit is contained in:
Niels Horn 2012-09-16 13:47:05 -03:00 committed by dsomero
parent f5d962b1ae
commit d2d0350712
2 changed files with 38 additions and 1 deletions

View file

@ -53,6 +53,9 @@ find . \
patch -p1 < $CWD/monkey-bubble-0.4.0-gnome-doc.patch
# Patch to fix glib include errors
patch -p1 < $CWD/monkey-bubble_glib.patch
# This is if you want to enable scrollkeeper.
if [ "${HAVE_RARIAN:-no}" != "yes" ]; then
USE_RARIAN="disable-scrollkeeper"
@ -60,8 +63,9 @@ else
USE_RARIAN="enable-scrollkeeper"
fi
CFLAGS="$SLKCFLAGS" \
CFLAGS="$SLKCFLAGS -Wno-error=unused-but-set-variable -Wno-error=deprecated-declarations" \
CXXFLAGS="$SLKCFLAGS" \
LIBS="-lm" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \

View file

@ -0,0 +1,33 @@
--- monkey-bubble-0.4.0/src/net/message-handler.c 2004-12-24 09:35:30.000000000 -0200
+++ monkey-bubble-0.4.0_patched/src/net/message-handler.c 2012-09-16 13:23:34.000000000 -0300
@@ -28,7 +28,7 @@
#include <unistd.h>
#include <string.h>
#include <arpa/inet.h>
-#include <glib/gthread.h>
+#include <glib.h>
#include <sys/time.h>
#include <time.h>
--- monkey-bubble-0.4.0/src/net/simple-server.c 2006-03-21 17:17:40.000000000 -0300
+++ monkey-bubble-0.4.0_patched/src/net/simple-server.c 2012-09-16 13:23:55.000000000 -0300
@@ -31,7 +31,7 @@
#include <unistd.h>
#include <string.h>
#include <arpa/inet.h>
-#include <glib/gthread.h>
+#include <glib.h>
#include <sys/time.h>
#include <time.h>
--- monkey-bubble-0.4.0/src/ui/main.c 2004-12-03 05:05:59.000000000 -0200
+++ monkey-bubble-0.4.0_patched/src/ui/main.c 2012-09-16 13:24:07.000000000 -0300
@@ -15,7 +15,7 @@
#include <gtk/gtk.h>
#include <gst/gst.h>
#include <bonobo/bonobo-i18n.h>
-#include <glib/gthread.h>
+#include <glib.h>
#include <libgnomeui/gnome-ui-init.h>
#include <math.h>