2 # Copyright (C) 2007-2015 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
:=27b8e99ffad603b8acfa25201c6e3d5c
18 PKG_MAINTAINER
:=Steven Barth
<cyrus@openwrt.org
>
25 include $(INCLUDE_DIR
)/host-build.mk
26 include $(INCLUDE_DIR
)/package.mk
29 -Wl
,-rpath-link
=$(STAGING_DIR
)/usr
/lib \
31 define Package
/dbus
/Default
34 TITLE
:=Simple interprocess messaging system
35 URL
:=http
://dbus.freedesktop.org
/
38 define Package
/dbus
/Default
/description
39 D-Bus is a message bus system
, a simple way for applications to talk to one
40 another. In addition to interprocess communication
, D-Bus helps coordinate
41 process lifecycle
; it makes it simple and reliable to code a
"single instance"
42 application or daemon
, and to launch applications and daemons on demand when
43 their services are needed.
46 define Package
/libdbus
47 $(call Package
/dbus
/Default
)
53 define Package
/libdbus
/Description
54 $(call Package
/dbus
/Default
/description
)
55 This package contains the D-Bus shared library.
59 $(call Package
/dbus
/Default
)
61 DEPENDS
:= +libexpat
+libdbus
64 define Package
/dbus
/Description
65 $(call Package
/dbus
/Default
/description
)
66 This package contains the D-Bus daemon.
69 define Package
/dbus-utils
70 $(call Package
/dbus
/Default
)
75 define Package
/dbus-utils
/Description
76 $(call Package
/dbus
/Default
/description
)
77 This package contains D-Bus utilities.
82 $(Build
/Prepare
/Default
)
83 $(SED
) 's/-Wl,--gc-sections/--gc-sections/' $(PKG_BUILD_DIR
)/configure
89 --disable-abstract-sockets \
92 --disable-console-owner-file \
93 --disable-doxygen-docs \
94 --disable-compiler_coverage \
97 --disable-verbose-mode \
100 --with-dbus-user
=root \
101 --with-dbus-daemondir
="/usr/sbin" \
102 --with-system-socket
="/var/run/dbus/system_bus_socket" \
103 --with-system-pid-file
="/var/run/dbus.pid" \
105 --libexecdir
=/usr
/lib
/dbus-1
108 ac_cv_have_abstract_sockets
="yes" \
109 ac_cv_lib_expat_XML_ParserCreate_MM
="yes" \
111 HOST_CONFIGURE_ARGS
+= \
114 --disable-abstract-sockets \
117 --disable-console-owner-file \
118 --disable-docygen-docs \
119 --disable-compiler_coverage \
122 --disable-verbose-mode \
124 --with-dbus-user
=root \
125 --with-dbus-daemondir
="$(STAGING_DIR_HOSTPKG)/bin" \
126 --with-system-socket
="$(STAGING_DIR_HOSTPKG)/var/run/dbus/system_bus_socket" \
127 --with-system-pid-file
="$(STAGING_DIR_HOSTPKG)/var/run/dbus.pid" \
129 --libexecdir
="$(STAGING_DIR_HOSTPKG)/lib/dbus-1"
131 HOST_CONFIGURE_VARS
+= \
132 ac_cv_have_abstract_sockets
="yes" \
133 ac_cv_lib_expat_XML_ParserCreate_MM
="yes" \
135 define Build
/InstallDev
136 $(INSTALL_DIR
) $(1)/usr
/include
138 $(PKG_INSTALL_DIR
)/usr
/include/dbus-1.0 \
140 $(INSTALL_DIR
) $(1)/usr
/lib
/dbus-1.0
/include/dbus
/
142 $(PKG_INSTALL_DIR
)/usr
/lib
/dbus-1.0
/include/dbus
/*.h \
143 $(1)/usr
/lib
/dbus-1.0
/include/dbus
/
145 $(INSTALL_DIR
) $(1)/usr
/lib
147 $(PKG_INSTALL_DIR
)/usr
/lib
/libdbus-1.
{so
*,la
,a
} \
150 $(PKG_INSTALL_DIR
)/usr
/lib
/dbus-1.0 \
152 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
154 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/dbus-1.
pc \
155 $(1)/usr
/lib
/pkgconfig
/
158 define Package
/dbus
/conffiles
159 /etc
/dbus-1
/session.conf
160 /etc
/dbus-1
/system.conf
163 define Package
/libdbus
/install
164 $(INSTALL_DIR
) $(1)/usr
/lib
166 $(PKG_INSTALL_DIR
)/usr
/lib
/libdbus-1.so.
* \
170 define Package
/dbus
/install
171 $(INSTALL_DIR
) $(1)/usr
/share
173 $(PKG_INSTALL_DIR
)/usr
/share
/dbus-1 \
176 $(INSTALL_DIR
) $(1)/usr
/lib
/dbus-1
178 $(PKG_INSTALL_DIR
)/usr
/lib
/dbus-1
/dbus-daemon-launch-helper \
181 $(INSTALL_DIR
) $(1)/usr
/sbin
183 $(PKG_INSTALL_DIR
)/usr
/sbin
/dbus-daemon \
186 $(INSTALL_DIR
) $(1)/usr
/bin
188 $(PKG_INSTALL_DIR
)/usr
/bin
/dbus-uuidgen \
192 $(PKG_INSTALL_DIR
)/usr
/bin
/dbus-launch \
193 $(1)/usr
/bin
/dbus-launch.real
195 .
/files
/dbus-launch \
198 $(INSTALL_DIR
) $(1)/etc
/init.d
204 define Package
/dbus-utils
/install
205 $(INSTALL_DIR
) $(1)/usr
/bin
207 $(PKG_INSTALL_DIR
)/usr
/bin
/dbus-
{send
,monitor
,cleanup-sockets
} \
211 $(eval
$(call HostBuild
))
212 $(eval
$(call BuildPackage
,libdbus
))
213 $(eval
$(call BuildPackage
,dbus
))
214 $(eval
$(call BuildPackage
,dbus-utils
))