[packages] rtorrent: update to 0.8.6_r1130 (#6685)
[openwrt/svn-archive/archive.git] / utils / dbus / Makefile
1 #
2 # Copyright (C) 2007-2009 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.2.4.6permissive
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://dbus.freedesktop.org/releases/dbus/
17 PKG_MD5SUM:=1a158fe326b078d1377a977121888496
18
19 PKG_FIXUP:=libtool
20 PKG_INSTALL:=1
21
22 include $(INCLUDE_DIR)/package.mk
23
24 TARGET_LDFLAGS+= \
25 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
26 -Wl,-rpath=/usr/lib/
27
28 define Package/dbus/Default
29 SECTION:=utils
30 CATEGORY:=Utilities
31 TITLE:=Simple interprocess messaging system
32 URL:=http://dbus.freedesktop.org/
33 endef
34
35 define Package/dbus/Default/description
36 D-Bus is a message bus system, a simple way for applications to talk to one
37 another. In addition to interprocess communication, D-Bus helps coordinate
38 process lifecycle; it makes it simple and reliable to code a "single instance"
39 application or daemon, and to launch applications and daemons on demand when
40 their services are needed.
41 endef
42
43 define Package/libdbus
44 $(call Package/dbus/Default)
45 CATEGORY:=Libraries
46 TITLE+= (library)
47 endef
48
49 define Package/libdbus/Description
50 $(call Package/dbus/Default/description)
51 This package contains the D-Bus shared library.
52 endef
53
54 define Package/dbus
55 $(call Package/dbus/Default)
56 TITLE+= (daemon)
57 DEPENDS:= +libexpat +libdbus
58 endef
59
60 define Package/dbus/Description
61 $(call Package/dbus/Default/description)
62 This package contains the D-Bus daemon.
63 endef
64
65 define Package/dbus-utils
66 $(call Package/dbus/Default)
67 TITLE+= (utilities)
68 DEPENDS:= dbus
69 endef
70
71 define Package/dbus-utils/Description
72 $(call Package/dbus/Default/description)
73 This package contains D-Bus utilities.
74 endef
75
76
77 define Build/Prepare
78 $(Build/Prepare/Default)
79 $(SED) 's/-Wl,--gc-sections/--gc-sections/' $(PKG_BUILD_DIR)/configure
80 endef
81
82 CONFIGURE_ARGS += \
83 --enable-shared \
84 --enable-static \
85 --disable-abstract-sockets \
86 --disable-ansi \
87 --disable-asserts \
88 --disable-console-owner-file \
89 --disable-doxygen-docs \
90 --disable-gcov \
91 --disable-selinux \
92 --disable-tests \
93 --disable-verbose-mode \
94 --disable-xml-docs \
95 --with-xml="expat" \
96 --with-dbus-user=root \
97 --with-dbus-daemondir="/usr/sbin" \
98 --with-system-socket="/var/run/dbus/system_bus_socket" \
99 --with-system-pid-file="/var/run/dbus.pid" \
100 --without-x \
101 --libexecdir=/usr/lib/dbus-1
102
103 CONFIGURE_VARS+= \
104 ac_cv_have_abstract_sockets="yes" \
105
106
107 define Build/InstallDev
108 $(INSTALL_DIR) $(1)/usr/include
109 $(CP) \
110 $(PKG_INSTALL_DIR)/usr/include/dbus-1.0 \
111 $(1)/usr/include/
112 $(INSTALL_DIR) $(1)/usr/lib/dbus-1.0/include/dbus/
113 $(INSTALL_DATA) \
114 $(PKG_INSTALL_DIR)/usr/lib/dbus-1.0/include/dbus/*.h \
115 $(1)/usr/lib/dbus-1.0/include/dbus/
116
117 $(INSTALL_DIR) $(1)/usr/lib
118 $(INSTALL_DATA) \
119 $(PKG_INSTALL_DIR)/usr/lib/libdbus-1.{so*,la,a} \
120 $(1)/usr/lib/
121 $(CP) \
122 $(PKG_INSTALL_DIR)/usr/lib/dbus-1.0 \
123 $(1)/usr/lib/
124 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
125 $(INSTALL_DATA) \
126 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/dbus-1.pc \
127 $(1)/usr/lib/pkgconfig/
128 endef
129
130 define Package/dbus/conffiles
131 /etc/dbus-1/session.conf
132 /etc/dbus-1/system.conf
133 endef
134
135 define Package/libdbus/install
136 $(INSTALL_DIR) $(1)/usr/lib
137 $(CP) \
138 $(PKG_INSTALL_DIR)/usr/lib/libdbus-1.so.* \
139 $(1)/usr/lib/
140 endef
141
142 define Package/dbus/install
143 $(INSTALL_DIR) $(1)/etc
144 $(CP) \
145 $(PKG_INSTALL_DIR)/etc/dbus-1 \
146 $(1)/etc/
147
148 $(INSTALL_DIR) $(1)/usr/lib/dbus-1
149 $(INSTALL_BIN) \
150 $(PKG_INSTALL_DIR)/usr/lib/dbus-1/dbus-daemon-launch-helper \
151 $(1)/usr/lib/dbus-1/
152
153 $(INSTALL_DIR) $(1)/usr/sbin
154 $(INSTALL_BIN) \
155 $(PKG_INSTALL_DIR)/usr/sbin/dbus-daemon \
156 $(1)/usr/sbin/
157
158 $(INSTALL_DIR) $(1)/usr/bin
159 $(INSTALL_BIN) \
160 $(PKG_INSTALL_DIR)/usr/bin/dbus-uuidgen \
161 $(1)/usr/bin/
162
163 $(INSTALL_BIN) \
164 $(PKG_INSTALL_DIR)/usr/bin/dbus-launch \
165 $(1)/usr/bin/dbus-launch.real
166 $(INSTALL_BIN) \
167 ./files/dbus-launch \
168 $(1)/usr/bin/
169
170 $(INSTALL_DIR) $(1)/etc/init.d
171 $(INSTALL_BIN) \
172 ./files/dbus.init \
173 $(1)/etc/init.d/dbus
174 endef
175
176 define Package/dbus-utils/install
177 $(INSTALL_DIR) $(1)/usr/bin
178 $(INSTALL_BIN) \
179 $(PKG_INSTALL_DIR)/usr/bin/dbus-{send,monitor,cleanup-sockets} \
180 $(1)/usr/bin/
181 endef
182
183 $(eval $(call BuildPackage,libdbus))
184 $(eval $(call BuildPackage,dbus))
185 $(eval $(call BuildPackage,dbus-utils))