summaryrefslogtreecommitdiff
path: root/dev-libs/libdbusmenu/files/libdbusmenu-0.2.8-1-optional-gtk.patch
blob: 2eb0eedcb87019dafd86a82295b39cf3c25dc905 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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