summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 4577cb2fd0..ce795f1087 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 0000000000..329d102bd6
--- /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 c34bd71030..9c63f4196f 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 \