aboutsummaryrefslogtreecommitdiffstats
path: root/package/dbus
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2009-03-16 20:58:15 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2009-03-16 20:58:15 +0000
commit1549e9f366012a1e16946f8eab78fd89e045145f (patch)
tree047d0753e70316426953000bc03479fb106793f6 /package/dbus
parent94d915ed435afd6ffc27d0e20ee39d7b0951d4e0 (diff)
downloadbuildroot-novena-1549e9f366012a1e16946f8eab78fd89e045145f.tar.gz
buildroot-novena-1549e9f366012a1e16946f8eab78fd89e045145f.zip
dbus: add host-dbus support
Diffstat (limited to 'package/dbus')
-rw-r--r--package/dbus/dbus.mk51
1 files changed, 51 insertions, 0 deletions
diff --git a/package/dbus/dbus.mk b/package/dbus/dbus.mk
index 0cf77b630..9d43ab2a4 100644
--- a/package/dbus/dbus.mk
+++ b/package/dbus/dbus.mk
@@ -53,3 +53,54 @@ $(DBUS_HOOK_POST_INSTALL): $(DBUS_TARGET_INSTALL_TARGET)
rm -rf $(TARGET_DIR)/usr/lib/dbus-1.0
$(INSTALL) -m 0755 package/dbus/S30dbus $(TARGET_DIR)/etc/init.d
touch $@
+
+# dbus for the host
+DBUS_HOST_DIR:=$(BUILD_DIR)/dbus-$(DBUS_VERSION)-host
+DBUS_HOST_BINARY:=$(HOST_DIR)/usr/bin/dbus-daemon
+
+$(DBUS_HOST_DIR)/.unpacked: $(DL_DIR)/$(DBUS_SOURCE)
+ mkdir -p $(@D)
+ $(INFLATE$(suffix $(DBUS_SOURCE))) $< | \
+ $(TAR) $(TAR_STRIP_COMPONENTS)=1 -C $(@D) $(TAR_OPTIONS) -
+ touch $@
+
+$(DBUS_HOST_DIR)/.configured: $(DBUS_HOST_DIR)/.unpacked $(EXPAT_HOST_BINARY)
+ (cd $(@D); rm -rf config.cache; \
+ $(HOST_CONFIGURE_OPTS) \
+ CFLAGS="$(HOST_CFLAGS)" \
+ LDFLAGS="$(HOST_LDFLAGS)" \
+ $(@D)/configure \
+ --prefix=$(HOST_DIR)/usr \
+ --sysconfdir=$(HOST_DIR)/etc \
+ --with-dbus-user=dbus \
+ --disable-tests \
+ --disable-asserts \
+ --enable-abstract-sockets \
+ --disable-selinux \
+ --disable-xml-docs \
+ --disable-doxygen-docs \
+ --disable-static \
+ --enable-dnotify \
+ --without-x \
+ --with-xml=expat \
+ )
+ touch $@
+
+$(DBUS_HOST_DIR)/.compiled: $(DBUS_HOST_DIR)/.configured
+ $(MAKE) -C $(@D)
+ touch $@
+
+$(DBUS_HOST_BINARY): $(DBUS_HOST_DIR)/.compiled
+ $(MAKE) -C $(<D) install
+
+host-dbus: $(DBUS_HOST_BINARY)
+
+host-dbus-source: dbus-source
+
+host-dbus-clean:
+ rm -f $(addprefix $(DBUS_HOST_DIR)/,.unpacked .configured .compiled)
+ $(MAKE) -C $(DBUS_HOST_DIR) uninstall
+ $(MAKE) -C $(DBUS_HOST_DIR) clean
+
+host-dbus-dirclean:
+ rm -rf $(DBUS_HOST_DIR)