1 ################################################################################
5 ################################################################################
8 DBUS_SITE = http://dbus.freedesktop.org/releases/dbus
9 DBUS_LICENSE = AFLv2.1 GPLv2+
10 DBUS_LICENSE_FILES = COPYING
11 DBUS_INSTALL_STAGING = YES
13 define DBUS_PERMISSIONS
14 /usr/libexec/dbus-daemon-launch-helper f 4755 0 0 - - - - -
18 dbus -1 dbus -1 * /var/run/dbus - dbus DBus messagebus user
22 DBUS_DEPENDENCIES = host-pkgconf expat
24 DBUS_CONF_ENV = ac_cv_have_abstract_sockets=yes
26 --with-dbus-user=dbus \
29 --enable-abstract-sockets \
32 --disable-doxygen-docs \
35 --with-system-socket=/var/run/dbus/system_bus_socket \
36 --with-system-pid-file=/var/run/messagebus.pid
38 ifeq ($(BR2_STATIC_LIBS),y)
39 DBUS_CONF_OPTS += LIBS='-pthread'
42 ifeq ($(BR2_microblaze),y)
43 # microblaze toolchain doesn't provide inotify_rm_* but does have sys/inotify.h
44 DBUS_CONF_OPTS += --disable-inotify
47 ifeq ($(BR2_PACKAGE_XLIB_LIBX11),y)
48 DBUS_CONF_OPTS += --with-x
49 DBUS_DEPENDENCIES += xlib_libX11
51 DBUS_CONF_OPTS += --without-x
54 ifeq ($(BR2_INIT_SYSTEMD),y)
57 --with-systemdsystemunitdir=/usr/lib/systemd/system
58 DBUS_DEPENDENCIES += systemd
60 DBUS_CONF_OPTS += --disable-systemd
63 # fix rebuild (dbus makefile errors out if /var/lib/dbus is a symlink)
64 define DBUS_REMOVE_VAR_LIB_DBUS
65 rm -rf $(TARGET_DIR)/var/lib/dbus
68 DBUS_POST_BUILD_HOOKS += DBUS_REMOVE_VAR_LIB_DBUS
70 define DBUS_REMOVE_DEVFILES
71 rm -rf $(TARGET_DIR)/usr/lib/dbus-1.0
74 DBUS_POST_INSTALL_TARGET_HOOKS += DBUS_REMOVE_DEVFILES
76 define DBUS_INSTALL_TARGET_FIXUP
77 mkdir -p $(TARGET_DIR)/var/lib
78 rm -rf $(TARGET_DIR)/var/lib/dbus
79 ln -sf /tmp/dbus $(TARGET_DIR)/var/lib/dbus
82 DBUS_POST_INSTALL_TARGET_HOOKS += DBUS_INSTALL_TARGET_FIXUP
84 define DBUS_INSTALL_INIT_SYSV
85 $(INSTALL) -m 0755 -D package/dbus/S30dbus \
86 $(TARGET_DIR)/etc/init.d/S30dbus
89 HOST_DBUS_DEPENDENCIES = host-pkgconf host-expat
90 HOST_DBUS_CONF_OPTS = \
91 --with-dbus-user=dbus \
94 --enable-abstract-sockets \
97 --disable-doxygen-docs \
103 DBUS_HOST_INTROSPECT = $(HOST_DBUS_DIR)/introspect.xml
105 HOST_DBUS_GEN_INTROSPECT = \
106 $(HOST_DIR)/usr/bin/dbus-daemon --introspect > $(DBUS_HOST_INTROSPECT)
108 HOST_DBUS_POST_INSTALL_HOOKS += HOST_DBUS_GEN_INTROSPECT
110 $(eval $(autotools-package))
111 $(eval $(host-autotools-package))