diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2009-03-16 20:57:56 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2009-03-16 20:57:56 +0000 |
commit | 592f072e421b31edd468aedb6df0277a9d2b550e (patch) | |
tree | d7bd093548f0ecee146c81638de12e61a55aeb9b | |
parent | 49a455645ebf69cbc0055c829f512e25c2dabe0f (diff) | |
download | buildroot-novena-592f072e421b31edd468aedb6df0277a9d2b550e.tar.gz buildroot-novena-592f072e421b31edd468aedb6df0277a9d2b550e.zip |
dbus: compile with X support if libX11 is available
-rw-r--r-- | package/dbus/dbus.mk | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/package/dbus/dbus.mk b/package/dbus/dbus.mk index aa1c824a8..0cf77b630 100644 --- a/package/dbus/dbus.mk +++ b/package/dbus/dbus.mk @@ -18,14 +18,6 @@ endif DBUS_DEPENDENCIES = uclibc pkgconfig -ifeq ($(BR2_DBUS_EXPAT),y) -DBUS_XML:=expat -DBUS_DEPENDENCIES += expat -else -DBUS_XML:=libxml -DBUS_DEPENDENCIES += libxml2 -endif - DBUS_CONF_ENV = ac_cv_have_abstract_sockets=yes DBUS_CONF_OPT = --program-prefix="" \ --with-dbus-user=dbus \ @@ -37,11 +29,24 @@ DBUS_CONF_OPT = --program-prefix="" \ --disable-doxygen-docs \ --disable-static \ --enable-dnotify \ - --without-x \ - --with-xml=$(DBUS_XML) \ --with-system-socket=/var/run/dbus/system_bus_socket \ --with-system-pid-file=/var/run/messagebus.pid +ifeq ($(BR2_DBUS_EXPAT),y) +DBUS_CONF_OPT += --with-xml=expat +DBUS_DEPENDENCIES += expat +else +DBUS_CONF_OPT += --with-xml=libxml +DBUS_DEPENDENCIES += libxml2 +endif + +ifeq ($(BR2_PACKAGE_XLIB_LIBX11),y) +DBUS_CONF_OPT += --with-x +DBUS_DEPENDENCIES += xlib_libX11 +else +DBUS_CONF_OPT += --without-x +endif + $(eval $(call AUTOTARGETS,package,dbus)) $(DBUS_HOOK_POST_INSTALL): $(DBUS_TARGET_INSTALL_TARGET) |