2 # Copyright (C) 2007-2014 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
:=b9f4a18ee3faa1e07c04aa1d83239c43
18 PKG_MAINTAINER
:=Steven Barth
<cyrus@openwrt.org
>
24 include $(INCLUDE_DIR
)/package.mk
27 -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" \
111 define Build
/InstallDev
112 $(INSTALL_DIR
) $(1)/usr
/include
114 $(PKG_INSTALL_DIR
)/usr
/include/dbus-1.0 \
116 $(INSTALL_DIR
) $(1)/usr
/lib
/dbus-1.0
/include/dbus
/
118 $(PKG_INSTALL_DIR
)/usr
/lib
/dbus-1.0
/include/dbus
/*.h \
119 $(1)/usr
/lib
/dbus-1.0
/include/dbus
/
121 $(INSTALL_DIR
) $(1)/usr
/lib
123 $(PKG_INSTALL_DIR
)/usr
/lib
/libdbus-1.
{so
*,la
,a
} \
126 $(PKG_INSTALL_DIR
)/usr
/lib
/dbus-1.0 \
128 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
130 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/dbus-1.
pc \
131 $(1)/usr
/lib
/pkgconfig
/
134 define Package
/dbus
/conffiles
135 /etc
/dbus-1
/session.conf
136 /etc
/dbus-1
/system.conf
139 define Package
/libdbus
/install
140 $(INSTALL_DIR
) $(1)/usr
/lib
142 $(PKG_INSTALL_DIR
)/usr
/lib
/libdbus-1.so.
* \
146 define Package
/dbus
/install
147 $(INSTALL_DIR
) $(1)/etc
149 $(PKG_INSTALL_DIR
)/etc
/dbus-1 \
152 $(INSTALL_DIR
) $(1)/usr
/lib
/dbus-1
154 $(PKG_INSTALL_DIR
)/usr
/lib
/dbus-1
/dbus-daemon-launch-helper \
157 $(INSTALL_DIR
) $(1)/usr
/sbin
159 $(PKG_INSTALL_DIR
)/usr
/sbin
/dbus-daemon \
162 $(INSTALL_DIR
) $(1)/usr
/bin
164 $(PKG_INSTALL_DIR
)/usr
/bin
/dbus-uuidgen \
168 $(PKG_INSTALL_DIR
)/usr
/bin
/dbus-launch \
169 $(1)/usr
/bin
/dbus-launch.real
171 .
/files
/dbus-launch \
174 $(INSTALL_DIR
) $(1)/etc
/init.d
180 define Package
/dbus-utils
/install
181 $(INSTALL_DIR
) $(1)/usr
/bin
183 $(PKG_INSTALL_DIR
)/usr
/bin
/dbus-
{send
,monitor
,cleanup-sockets
} \
187 $(eval
$(call BuildPackage
,libdbus
))
188 $(eval
$(call BuildPackage
,dbus
))
189 $(eval
$(call BuildPackage
,dbus-utils
))