liburcu: Update to 0.8.6
[feed/packages.git] / utils / dbus / Makefile
1 #
2 # Copyright (C) 2007-2014 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 # Make sure to also update the dbus-x package
11 PKG_NAME:=dbus
12 PKG_VERSION:=1.8.8
13 PKG_RELEASE:=1
14
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>
19 PKG_LICENSE:=AFL-2.1
20
21 PKG_FIXUP:=autoreconf
22 PKG_INSTALL:=1
23
24 include $(INCLUDE_DIR)/package.mk
25
26 TARGET_LDFLAGS+= \
27 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
28 -Wl,-rpath=/usr/lib/
29
30 define Package/dbus/Default
31 SECTION:=utils
32 CATEGORY:=Utilities
33 TITLE:=Simple interprocess messaging system
34 URL:=http://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:= +librt
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
80 define Build/Prepare
81 $(Build/Prepare/Default)
82 $(SED) 's/-Wl,--gc-sections/--gc-sections/' $(PKG_BUILD_DIR)/configure
83 endef
84
85 CONFIGURE_ARGS += \
86 --enable-shared \
87 --enable-static \
88 --disable-abstract-sockets \
89 --disable-ansi \
90 --disable-asserts \
91 --disable-console-owner-file \
92 --disable-doxygen-docs \
93 --disable-compiler_coverage \
94 --disable-selinux \
95 --disable-tests \
96 --disable-verbose-mode \
97 --disable-xml-docs \
98 --with-xml="expat" \
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" \
103 --without-x \
104 --libexecdir=/usr/lib/dbus-1
105
106 CONFIGURE_VARS+= \
107 ac_cv_have_abstract_sockets="yes" \
108 ac_cv_lib_expat_XML_ParserCreate_MM="yes" \
109
110
111 define Build/InstallDev
112 $(INSTALL_DIR) $(1)/usr/include
113 $(CP) \
114 $(PKG_INSTALL_DIR)/usr/include/dbus-1.0 \
115 $(1)/usr/include/
116 $(INSTALL_DIR) $(1)/usr/lib/dbus-1.0/include/dbus/
117 $(INSTALL_DATA) \
118 $(PKG_INSTALL_DIR)/usr/lib/dbus-1.0/include/dbus/*.h \
119 $(1)/usr/lib/dbus-1.0/include/dbus/
120
121 $(INSTALL_DIR) $(1)/usr/lib
122 $(INSTALL_DATA) \
123 $(PKG_INSTALL_DIR)/usr/lib/libdbus-1.{so*,la,a} \
124 $(1)/usr/lib/
125 $(CP) \
126 $(PKG_INSTALL_DIR)/usr/lib/dbus-1.0 \
127 $(1)/usr/lib/
128 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
129 $(INSTALL_DATA) \
130 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/dbus-1.pc \
131 $(1)/usr/lib/pkgconfig/
132 endef
133
134 define Package/dbus/conffiles
135 /etc/dbus-1/session.conf
136 /etc/dbus-1/system.conf
137 endef
138
139 define Package/libdbus/install
140 $(INSTALL_DIR) $(1)/usr/lib
141 $(CP) \
142 $(PKG_INSTALL_DIR)/usr/lib/libdbus-1.so.* \
143 $(1)/usr/lib/
144 endef
145
146 define Package/dbus/install
147 $(INSTALL_DIR) $(1)/etc
148 $(CP) \
149 $(PKG_INSTALL_DIR)/etc/dbus-1 \
150 $(1)/etc/
151
152 $(INSTALL_DIR) $(1)/usr/lib/dbus-1
153 $(INSTALL_BIN) \
154 $(PKG_INSTALL_DIR)/usr/lib/dbus-1/dbus-daemon-launch-helper \
155 $(1)/usr/lib/dbus-1/
156
157 $(INSTALL_DIR) $(1)/usr/sbin
158 $(INSTALL_BIN) \
159 $(PKG_INSTALL_DIR)/usr/sbin/dbus-daemon \
160 $(1)/usr/sbin/
161
162 $(INSTALL_DIR) $(1)/usr/bin
163 $(INSTALL_BIN) \
164 $(PKG_INSTALL_DIR)/usr/bin/dbus-uuidgen \
165 $(1)/usr/bin/
166
167 $(INSTALL_BIN) \
168 $(PKG_INSTALL_DIR)/usr/bin/dbus-launch \
169 $(1)/usr/bin/dbus-launch.real
170 $(INSTALL_BIN) \
171 ./files/dbus-launch \
172 $(1)/usr/bin/
173
174 $(INSTALL_DIR) $(1)/etc/init.d
175 $(INSTALL_BIN) \
176 ./files/dbus.init \
177 $(1)/etc/init.d/dbus
178 endef
179
180 define Package/dbus-utils/install
181 $(INSTALL_DIR) $(1)/usr/bin
182 $(INSTALL_BIN) \
183 $(PKG_INSTALL_DIR)/usr/bin/dbus-{send,monitor,cleanup-sockets} \
184 $(1)/usr/bin/
185 endef
186
187 $(eval $(call BuildPackage,libdbus))
188 $(eval $(call BuildPackage,dbus))
189 $(eval $(call BuildPackage,dbus-utils))