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
:=72390a741009017258c00a3268daa728
18 PKG_MAINTAINER
:=Steven Barth
<cyrus@openwrt.org
>
24 include $(INCLUDE_DIR
)/host-build.mk
25 include $(INCLUDE_DIR
)/package.mk
28 -Wl
,-rpath-link
=$(STAGING_DIR
)/usr
/lib \
30 define Package
/dbus
/Default
33 TITLE
:=Simple interprocess messaging system
34 URL
:=http
://dbus.freedesktop.org
/
37 define Package
/dbus
/Default
/description
38 D-Bus is a message bus system
, a simple way for applications to talk to one
39 another. In addition to interprocess communication
, D-Bus helps coordinate
40 process lifecycle
; it makes it simple and reliable to code a
"single instance"
41 application or daemon
, and to launch applications and daemons on demand when
42 their services are needed.
45 define Package
/libdbus
46 $(call Package
/dbus
/Default
)
52 define Package
/libdbus
/Description
53 $(call Package
/dbus
/Default
/description
)
54 This package contains the D-Bus shared library.
58 $(call Package
/dbus
/Default
)
60 DEPENDS
:= +libexpat
+libdbus
63 define Package
/dbus
/Description
64 $(call Package
/dbus
/Default
/description
)
65 This package contains the D-Bus daemon.
68 define Package
/dbus-utils
69 $(call Package
/dbus
/Default
)
74 define Package
/dbus-utils
/Description
75 $(call Package
/dbus
/Default
/description
)
76 This package contains D-Bus utilities.
81 $(Build
/Prepare
/Default
)
82 $(SED
) 's/-Wl,--gc-sections/--gc-sections/' $(PKG_BUILD_DIR
)/configure
88 --disable-abstract-sockets \
91 --disable-console-owner-file \
92 --disable-doxygen-docs \
93 --disable-compiler_coverage \
96 --disable-verbose-mode \
99 --with-dbus-user
=root \
100 --with-dbus-daemondir
="/usr/sbin" \
101 --with-system-socket
="/var/run/dbus/system_bus_socket" \
102 --with-system-pid-file
="/var/run/dbus.pid" \
104 --libexecdir
=/usr
/lib
/dbus-1
107 ac_cv_have_abstract_sockets
="yes" \
108 ac_cv_lib_expat_XML_ParserCreate_MM
="yes" \
110 HOST_CONFIGURE_ARGS
+= \
113 --disable-abstract-sockets \
116 --disable-console-owner-file \
117 --disable-docygen-docs \
118 --disable-compiler_coverage \
121 --disable-verbose-mode \
123 --with-dbus-user
=root \
124 --with-dbus-daemondir
="$(STAGIND_DIR_HOST)/bin" \
125 --with-system-socket
="$(STAGING_DIR_HOST)/var/run/dbus/system_bus_socket" \
126 --with-system-pid-file
="$(STAGING_DIR_HOST)/var/run/dbus.pid" \
128 --libexecdir
="$(STAGING_DIR_HOST)/lib/dbus-1"
130 HOST_CONFIGURE_VARS
+= \
131 ac_cv_have_abstract_sockets
="yes" \
132 ac_cv_lib_expat_XML_ParserCreate_MM
="yes" \
134 define Build
/InstallDev
135 $(INSTALL_DIR
) $(1)/usr
/include
137 $(PKG_INSTALL_DIR
)/usr
/include/dbus-1.0 \
139 $(INSTALL_DIR
) $(1)/usr
/lib
/dbus-1.0
/include/dbus
/
141 $(PKG_INSTALL_DIR
)/usr
/lib
/dbus-1.0
/include/dbus
/*.h \
142 $(1)/usr
/lib
/dbus-1.0
/include/dbus
/
144 $(INSTALL_DIR
) $(1)/usr
/lib
146 $(PKG_INSTALL_DIR
)/usr
/lib
/libdbus-1.
{so
*,la
,a
} \
149 $(PKG_INSTALL_DIR
)/usr
/lib
/dbus-1.0 \
151 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
153 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/dbus-1.
pc \
154 $(1)/usr
/lib
/pkgconfig
/
157 define Package
/dbus
/conffiles
158 /etc
/dbus-1
/session.conf
159 /etc
/dbus-1
/system.conf
162 define Package
/libdbus
/install
163 $(INSTALL_DIR
) $(1)/usr
/lib
165 $(PKG_INSTALL_DIR
)/usr
/lib
/libdbus-1.so.
* \
169 define Package
/dbus
/install
170 $(INSTALL_DIR
) $(1)/etc
172 $(PKG_INSTALL_DIR
)/etc
/dbus-1 \
175 $(INSTALL_DIR
) $(1)/usr
/lib
/dbus-1
177 $(PKG_INSTALL_DIR
)/usr
/lib
/dbus-1
/dbus-daemon-launch-helper \
180 $(INSTALL_DIR
) $(1)/usr
/sbin
182 $(PKG_INSTALL_DIR
)/usr
/sbin
/dbus-daemon \
185 $(INSTALL_DIR
) $(1)/usr
/bin
187 $(PKG_INSTALL_DIR
)/usr
/bin
/dbus-uuidgen \
191 $(PKG_INSTALL_DIR
)/usr
/bin
/dbus-launch \
192 $(1)/usr
/bin
/dbus-launch.real
194 .
/files
/dbus-launch \
197 $(INSTALL_DIR
) $(1)/etc
/init.d
203 define Package
/dbus-utils
/install
204 $(INSTALL_DIR
) $(1)/usr
/bin
206 $(PKG_INSTALL_DIR
)/usr
/bin
/dbus-
{send
,monitor
,cleanup-sockets
} \
210 $(eval
$(call HostBuild
))
211 $(eval
$(call BuildPackage
,libdbus
))
212 $(eval
$(call BuildPackage
,dbus
))
213 $(eval
$(call BuildPackage
,dbus-utils
))