mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
libraries/gtk-sharp: Fixed to build against gcc-4.7.x
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
parent
21fd587660
commit
bc91b326ab
3 changed files with 42 additions and 2 deletions
|
@ -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.
|
||||
|
|
39
libraries/gtk-sharp/gtk-sharp-2.12.10-gcc47.patch
Normal file
39
libraries/gtk-sharp/gtk-sharp-2.12.10-gcc47.patch
Normal file
|
@ -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);
|
||||
|
|
@ -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 \
|
||||
|
|
Loading…
Reference in a new issue