treewide: remove AUTORELEASE
[feed/packages.git] / utils / dbus / Makefile
1 #
2 # Copyright (C) 2007-2015 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=dbus
11 PKG_VERSION:=1.13.18
12 PKG_RELEASE:=12
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
15 PKG_SOURCE_URL:=https://dbus.freedesktop.org/releases/dbus
16 PKG_HASH:=8078f5c25e34ab907ce06905d969dc8ef0ccbec367e1e1707c7ecf8460f4254e
17
18 PKG_MAINTAINER:=
19 PKG_LICENSE:=AFL-2.1
20 PKG_CPE_ID:=cpe:/a:freedesktop:dbus
21
22 PKG_BUILD_PARALLEL:=1
23 PKG_INSTALL:=1
24
25 PKG_CONFIG_DEPENDS:= \
26 CONFIG_DBUS_VERBOSE
27
28 include $(INCLUDE_DIR)/package.mk
29
30 define Package/dbus/Default
31 SECTION:=utils
32 CATEGORY:=Utilities
33 TITLE:=Simple interprocess messaging system
34 URL:=https://dbus.freedesktop.org/
35 endef
36
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.
43 endef
44
45 define Package/libdbus
46 $(call Package/dbus/Default)
47 CATEGORY:=Libraries
48 TITLE+= (library)
49 DEPENDS:= +libpthread
50 endef
51
52 define Package/libdbus/Description
53 $(call Package/dbus/Default/description)
54 This package contains the D-Bus shared library.
55 endef
56
57 define Package/dbus
58 $(call Package/dbus/Default)
59 TITLE+= (daemon)
60 DEPENDS:= +libexpat +libdbus
61 endef
62
63 define Package/dbus/Description
64 $(call Package/dbus/Default/description)
65 This package contains the D-Bus daemon.
66 endef
67
68 define Package/dbus-utils
69 $(call Package/dbus/Default)
70 TITLE+= (utilities)
71 DEPENDS:= +dbus
72 endef
73
74 define Package/dbus-utils/Description
75 $(call Package/dbus/Default/description)
76 This package contains D-Bus utilities.
77 endef
78
79 define Package/dbus/config
80 source "$(SOURCE)/Config.in"
81 endef
82
83 CONFIGURE_ARGS += \
84 --disable-maintainer-mode \
85 --disable-developer \
86 --enable-debug=no \
87 --enable-shared \
88 --disable-static \
89 --disable-verbose-mode \
90 --disable-asserts \
91 --disable-xml-docs \
92 --disable-doxygen-docs \
93 --disable-ducktype-docs \
94 --disable-selinux \
95 --disable-apparmor \
96 --disable-libaudit \
97 --enable-inotify \
98 --disable-kqueue \
99 --disable-console-owner-file \
100 --disable-systemd \
101 --disable-tests \
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 \
108 --without-x \
109 --enable-qt-help=no \
110 --disable-xml-docs
111
112 ifeq ($(CONFIG_DBUS_VERBOSE),y)
113 CONFIGURE_ARGS += --enable-verbose-mode
114 endif
115
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/
120 $(INSTALL_DATA) \
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* \
125 $(1)/usr/lib/
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/
130 endef
131
132 define Package/libdbus/install
133 $(INSTALL_DIR) $(1)/usr/lib
134 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdbus-1.so.* $(1)/usr/lib/
135 endef
136
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/
150 endef
151
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/
157 endef
158
159 $(eval $(call BuildPackage,libdbus))
160 $(eval $(call BuildPackage,dbus))
161 $(eval $(call BuildPackage,dbus-utils))