summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-sound/mp3splt-gtk/files/mp3splt-gtk-0.7.0.930-gtk.patch')
-rw-r--r--media-sound/mp3splt-gtk/files/mp3splt-gtk-0.7.0.930-gtk.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/media-sound/mp3splt-gtk/files/mp3splt-gtk-0.7.0.930-gtk.patch b/media-sound/mp3splt-gtk/files/mp3splt-gtk-0.7.0.930-gtk.patch
new file mode 100644
index 000000000000..bb4b2f763998
--- /dev/null
+++ b/media-sound/mp3splt-gtk/files/mp3splt-gtk-0.7.0.930-gtk.patch
@@ -0,0 +1,44 @@
+From bb1c3cb3ffd1081d56e48d87ab05d31ad05d89de Mon Sep 17 00:00:00 2001
+From: Sebastian Pipping <sebastian@pipping.org>
+Date: Fri, 23 Sep 2011 23:09:47 +0200
+Subject: [PATCH] Allow specifying a specific slot of GTK
+
+---
+ configure.ac | 18 +++++++++++++-----
+ 1 files changed, 13 insertions(+), 5 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 2157019..fbcadcf 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -150,14 +150,22 @@ fi
+
+ #################################################
+ #Check for GTK
+-ifdef([AM_PATH_GTK_3_0],
+-[
++AC_ARG_ENABLE(gtk3, [
++AC_HELP_STRING([--enable-gtk3], [Compile against GTK 3.x explicitly (default: use GTK 3.x if available)])
++AC_HELP_STRING([--disable-gtk3], [Compile against GTK 2.x explicitly (default: use GTK 3.x if available)])],
++ [enable_gtk3=$enableval],[enable_gtk3="auto"])
++
++if test "x$enable_gtk3" = xauto; then
++ AC_MSG_NOTICE([selecting GTK 2.x/3.x automatically])
++ ifdef([AM_PATH_GTK_3_0],[enable_gtk3=yes],[enable_gtk3=no])
++fi
++
++if test "x$enable_gtk3" = xyes; then
+ CFLAGS="$CFLAGS -DGTK_DISABLE_SINGLE_INCLUDES -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGSEAL_ENABLE"
+ AM_PATH_GTK_3_0(3.0.0,,AC_MSG_ERROR(mp3splt-gtk needs GTK+ >= 3.0.0))
+-],
+-[
++else
+ AM_PATH_GTK_2_0(2.20.0,,AC_MSG_ERROR(mp3splt-gtk needs GTK+ >= 2.20.0))
+-])
++fi
+
+ #################################################
+ #Check for libmp3splt
+--
+1.7.6.1
+