aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBinh Nguyen <binhnguyen@fastmail.fm>2012-08-23 15:13:34 +0700
committerRobby Workman <rworkman@slackbuilds.org>2012-08-23 08:14:12 -0500
commitbc91b326ab5dc9522d405577370e9872d24e48ad (patch)
tree969588cc9b8c11ba414884cdf31578fc6be22e07
parent21fd5876601d1f9f196a87d395c40993e3797a02 (diff)
libraries/gtk-sharp: Fixed to build against gcc-4.7.x
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
-rw-r--r--libraries/gtk-sharp/README2
-rw-r--r--libraries/gtk-sharp/gtk-sharp-2.12.10-gcc47.patch39
-rw-r--r--libraries/gtk-sharp/gtk-sharp.SlackBuild3
3 files changed, 42 insertions, 2 deletions
diff --git a/libraries/gtk-sharp/README b/libraries/gtk-sharp/README
index 4577cb2fd00e4..ce795f1087431 100644
--- a/libraries/gtk-sharp/README
+++ b/libraries/gtk-sharp/README
@@ -3,5 +3,3 @@ gtk-sharp ( GUI toolkit for mono )
Gtk# is a Graphical User Interface Toolkit for mono and .Net. The project
binds the gtk+ toolkit and assorted GNOME libraries, enabling fully native
graphical application development using Mono and .Net development frameworks.
-
-This requires mono.
diff --git a/libraries/gtk-sharp/gtk-sharp-2.12.10-gcc47.patch b/libraries/gtk-sharp/gtk-sharp-2.12.10-gcc47.patch
new file mode 100644
index 0000000000000..329d102bd657c
--- /dev/null
+++ b/libraries/gtk-sharp/gtk-sharp-2.12.10-gcc47.patch
@@ -0,0 +1,39 @@
+diff --git a/glib/glue/list.c b/glib/glue/list.c
+index dd3f0de..377df76 100644
+--- a/glib/glue/list.c
++++ b/glib/glue/list.c
+@@ -20,7 +20,7 @@
+ */
+
+
+-#include <glib/glist.h>
++#include <glib.h>
+
+ /* Forward declarations */
+ gpointer gtksharp_list_get_data (GList *l);
+diff --git a/glib/glue/slist.c b/glib/glue/slist.c
+index 80f5f17..ddd447c 100644
+--- a/glib/glue/slist.c
++++ b/glib/glue/slist.c
+@@ -20,7 +20,7 @@
+ */
+
+
+-#include <glib/gslist.h>
++#include <glib.h>
+
+ /* Forward declarations */
+ gpointer gtksharp_slist_get_data (GSList *l);
+diff --git a/glib/glue/thread.c b/glib/glue/thread.c
+index 4fcf8c6..3655cfc 100644
+--- a/glib/glue/thread.c
++++ b/glib/glue/thread.c
+@@ -20,7 +20,7 @@
+ */
+
+
+-#include <glib/gthread.h>
++#include <glib.h>
+
+ gboolean glibsharp_g_thread_supported (void);
+
diff --git a/libraries/gtk-sharp/gtk-sharp.SlackBuild b/libraries/gtk-sharp/gtk-sharp.SlackBuild
index c34bd710309c7..9c63f4196faec 100644
--- a/libraries/gtk-sharp/gtk-sharp.SlackBuild
+++ b/libraries/gtk-sharp/gtk-sharp.SlackBuild
@@ -52,6 +52,9 @@ find . \
-exec chmod 644 {} \;
chmod 644 HACKING
+# Fix building against gcc-4.7.x
+patch -p1 < $CWD/gtk-sharp-2.12.10-gcc47.patch
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \