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
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
15 PKG_SOURCE_URL
:=https
://dbus.freedesktop.org
/releases
/dbus
16 PKG_HASH
:=ba1f21d2bd9d339da2d4aa8780c09df32fea87998b73da24f49ab9df1e36a50f
18 PKG_MAINTAINER
:=Robert Marko
<robimarko@gmail.com
>
20 PKG_CPE_ID
:=cpe
:/a
:freedesktop
:dbus
25 PKG_CONFIG_DEPENDS
:= \
28 include $(INCLUDE_DIR
)/package.mk
30 define Package
/dbus
/Default
33 TITLE
:=Simple interprocess messaging system
34 URL
:=https
://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.
79 define Package
/dbus
/config
80 source
"$(SOURCE)/Config.in"
84 --disable-maintainer-mode \
89 --disable-verbose-mode \
92 --disable-doxygen-docs \
93 --disable-ducktype-docs \
99 --disable-console-owner-file \
102 --disable-code-coverage \
103 --disable-x11-autolaunch \
104 --with-session-socket-dir
=/tmp \
105 --with-system-socket
=/var
/run
/dbus
/system_bus_socket \
106 --with-system-pid-file
=/var
/run
/dbus.pid \
107 --with-dbus-user
=root \
109 --enable-qt-help
=no \
112 ifeq ($(CONFIG_DBUS_VERBOSE
),y
)
113 CONFIGURE_ARGS
+= --enable-verbose-mode
116 define Build
/InstallDev
117 $(INSTALL_DIR
) $(1)/usr
/include
118 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/dbus-1.0
$(1)/usr
/include/
119 $(INSTALL_DIR
) $(1)/usr
/lib
/dbus-1.0
/include/dbus
/
121 $(PKG_INSTALL_DIR
)/usr
/lib
/dbus-1.0
/include/dbus
/*.h \
122 $(1)/usr
/lib
/dbus-1.0
/include/dbus
/
123 $(INSTALL_DIR
) $(1)/usr
/lib
124 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/lib
/libdbus-1.so
* \
126 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/dbus-1.0
$(1)/usr
/lib
/
127 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
128 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/dbus-1.
pc \
129 $(1)/usr
/lib
/pkgconfig
/
132 define Package
/libdbus
/install
133 $(INSTALL_DIR
) $(1)/usr
/lib
134 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libdbus-1.so.
* $(1)/usr
/lib
/
137 define Package
/dbus
/install
138 $(INSTALL_DIR
) $(1)/usr
/bin
139 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/dbus-cleanup-sockets
$(1)/usr
/bin
/
140 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/dbus-daemon
$(1)/usr
/bin
/
141 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/dbus-launch
$(1)/usr
/bin
/dbus-launch.real
142 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/dbus-uuidgen
$(1)/usr
/bin
/
143 $(INSTALL_BIN
) .
/files
/dbus-launch
$(1)/usr
/bin
/
144 $(INSTALL_DIR
) $(1)/usr
/lib
145 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/lib
/dbus-daemon-launch-helper
$(1)/usr
/lib
/
146 $(INSTALL_DIR
) $(1)/etc
/init.d
147 $(INSTALL_BIN
) .
/files
/dbus.init
$(1)/etc
/init.d
/dbus
148 $(INSTALL_DIR
) $(1)/usr
/share
/dbus-1
149 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/dbus-1
$(1)/usr
/share
/
152 define Package
/dbus-utils
/install
153 $(INSTALL_DIR
) $(1)/usr
/bin
154 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/dbus-monitor
$(1)/usr
/bin
/
155 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/dbus-send
$(1)/usr
/bin
/
156 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/dbus-test-tool
$(1)/usr
/bin
/
159 $(eval
$(call BuildPackage
,libdbus
))
160 $(eval
$(call BuildPackage
,dbus
))
161 $(eval
$(call BuildPackage
,dbus-utils
))