diff options
Diffstat (limited to 'dev-libs/libdbusmenu/files/libdbusmenu-0.2.8-1-optional-gtk.patch')
-rw-r--r-- | dev-libs/libdbusmenu/files/libdbusmenu-0.2.8-1-optional-gtk.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/dev-libs/libdbusmenu/files/libdbusmenu-0.2.8-1-optional-gtk.patch b/dev-libs/libdbusmenu/files/libdbusmenu-0.2.8-1-optional-gtk.patch new file mode 100644 index 000000000000..2eb0eedcb870 --- /dev/null +++ b/dev-libs/libdbusmenu/files/libdbusmenu-0.2.8-1-optional-gtk.patch @@ -0,0 +1,37 @@ +--- configure.ac.orig 2010-03-31 12:56:17.483842274 +0200 ++++ configure.ac 2010-03-31 12:57:25.783592956 +0200 +@@ -42,10 +42,17 @@ + + GTK_REQUIRED_VERSION=2.16 + ++AC_ARG_ENABLE([gtk], ++ AC_HELP_STRING([--disable-gtk], [Disable libindicate-gtk library]), ++ [enable_gtk=$enableval], enable_gtk=auto) ++AM_CONDITIONAL([WANT_LIBDBUSMENUGTK], [test "x$enable_gtk" != "xno"]) ++ ++if test "x$enable_gtk" != "xno"; then + PKG_CHECK_MODULES(DBUSMENUGTK, gtk+-2.0 >= $GTK_REQUIRED_VERSION + glib-2.0 >= $GLIB_REQUIRED_VERSION + dbus-glib-1 >= $DBUS_REQUIRED_VERSION + libxml-2.0 >= $XML_REQUIRED_VERSION) ++fi + + AC_SUBST(DBUSMENUGTK_CFLAGS) + AC_SUBST(DBUSMENUGTK_LIBS) +--- Makefile.am.orig 2010-03-31 13:01:21.871844609 +0200 ++++ Makefile.am 2010-03-31 13:19:34.896594837 +0200 +@@ -5,10 +5,13 @@ + + SUBDIRS = \ + libdbusmenu-glib \ +- libdbusmenu-gtk \ + tools \ + tests \ + po + ++if WANT_LIBDBUSMENUGTK ++SUBDIRS += libdbusmenu-gtk ++endif ++ + DISTCHECK_CONFIGURE_FLAGS = --enable-introspection + |