2 # Copyright (C) 2007-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
10 # Make sure to also update the dbus-x package
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://dbus.freedesktop.org/releases/dbus/
17 PKG_MD5SUM:=ae6de2562a57516cfabaf56903375ba9
22 include $(INCLUDE_DIR)/package.mk
25 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
28 define Package/dbus/Default
31 TITLE:=Simple interprocess messaging system
32 URL:=http://dbus.freedesktop.org/
35 define Package/dbus/Default/description
36 D-Bus is a message bus system, a simple way for applications to talk to one
37 another. In addition to interprocess communication, D-Bus helps coordinate
38 process lifecycle; it makes it simple and reliable to code a "single instance"
39 application or daemon, and to launch applications and daemons on demand when
40 their services are needed.
43 define Package/libdbus
44 $(call Package/dbus/Default)
50 define Package/libdbus/Description
51 $(call Package/dbus/Default/description)
52 This package contains the D-Bus shared library.
56 $(call Package/dbus/Default)
58 DEPENDS:= +libexpat +libdbus
61 define Package/dbus/Description
62 $(call Package/dbus/Default/description)
63 This package contains the D-Bus daemon.
66 define Package/dbus-utils
67 $(call Package/dbus/Default)
72 define Package/dbus-utils/Description
73 $(call Package/dbus/Default/description)
74 This package contains D-Bus utilities.
79 $(Build/Prepare/Default)
80 $(SED) 's/-Wl,--gc-sections/--gc-sections/' $(PKG_BUILD_DIR)/configure
86 --disable-abstract-sockets \
89 --disable-console-owner-file \
90 --disable-doxygen-docs \
91 --disable-compiler_coverage \
94 --disable-verbose-mode \
97 --with-dbus-user=root \
98 --with-dbus-daemondir="/usr/sbin" \
99 --with-system-socket="/var/run/dbus/system_bus_socket" \
100 --with-system-pid-file="/var/run/dbus.pid" \
102 --libexecdir=/usr/lib/dbus-1
105 ac_cv_have_abstract_sockets="yes" \
106 ac_cv_lib_expat_XML_ParserCreate_MM="yes" \
109 define Build/InstallDev
110 $(INSTALL_DIR) $(1)/usr/include
112 $(PKG_INSTALL_DIR)/usr/include/dbus-1.0 \
114 $(INSTALL_DIR) $(1)/usr/lib/dbus-1.0/include/dbus/
116 $(PKG_INSTALL_DIR)/usr/lib/dbus-1.0/include/dbus/*.h \
117 $(1)/usr/lib/dbus-1.0/include/dbus/
119 $(INSTALL_DIR) $(1)/usr/lib
121 $(PKG_INSTALL_DIR)/usr/lib/libdbus-1.{so*,la,a} \
124 $(PKG_INSTALL_DIR)/usr/lib/dbus-1.0 \
126 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
128 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/dbus-1.pc \
129 $(1)/usr/lib/pkgconfig/
132 define Package/dbus/conffiles
133 /etc/dbus-1/session.conf
134 /etc/dbus-1/system.conf
137 define Package/libdbus/install
138 $(INSTALL_DIR) $(1)/usr/lib
140 $(PKG_INSTALL_DIR)/usr/lib/libdbus-1.so.* \
144 define Package/dbus/install
145 $(INSTALL_DIR) $(1)/etc
147 $(PKG_INSTALL_DIR)/etc/dbus-1 \
150 $(INSTALL_DIR) $(1)/usr/lib/dbus-1
152 $(PKG_INSTALL_DIR)/usr/lib/dbus-1/dbus-daemon-launch-helper \
155 $(INSTALL_DIR) $(1)/usr/sbin
157 $(PKG_INSTALL_DIR)/usr/sbin/dbus-daemon \
160 $(INSTALL_DIR) $(1)/usr/bin
162 $(PKG_INSTALL_DIR)/usr/bin/dbus-uuidgen \
166 $(PKG_INSTALL_DIR)/usr/bin/dbus-launch \
167 $(1)/usr/bin/dbus-launch.real
169 ./files/dbus-launch \
172 $(INSTALL_DIR) $(1)/etc/init.d
178 define Package/dbus-utils/install
179 $(INSTALL_DIR) $(1)/usr/bin
181 $(PKG_INSTALL_DIR)/usr/bin/dbus-{send,monitor,cleanup-sockets} \
185 $(eval $(call BuildPackage,libdbus))
186 $(eval $(call BuildPackage,dbus))
187 $(eval $(call BuildPackage,dbus-utils))