[packages_10.03.1] collectd: backport r29404
[openwrt/svn-archive/archive.git] / utils / dbus-x / Makefile
1 #
2 # Copyright (C) 2009-2010 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 package
11 PKG_NAME:=dbus-x
12 PKG_VERSION:=1.2.12
13 PKG_RELEASE:=2
14
15 PKG_BUILD_DIR:=$(BUILD_DIR)/dbus-x/dbus-$(PKG_VERSION)
16 PKG_SOURCE:=dbus-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=http://dbus.freedesktop.org/releases/dbus/
18 PKG_MD5SUM:=39bd582c3b06a261cac44d4cab6fd60b
19
20 PKG_FIXUP:=libtool
21 PKG_INSTALL:=1
22
23 include $(INCLUDE_DIR)/package.mk
24
25 TARGET_LDFLAGS+= \
26 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
27 -Wl,-rpath=/usr/lib/
28
29 define Package/dbus/Default/description
30 D-Bus is a message bus system, a simple way for applications to talk to one
31 another. In addition to interprocess communication, D-Bus helps coordinate
32 process lifecycle; it makes it simple and reliable to code a "single instance"
33 application or daemon, and to launch applications and daemons on demand when
34 their services are needed.
35 endef
36
37 define Package/dbus-launch-x
38 SECTION:=utils
39 CATEGORY:=Utilities
40 TITLE:=dbus launch utility with x support
41 DEPENDS:=+libexpat +dbus +libX11
42 URL:=http://dbus.freedesktop.org/
43 endef
44
45 define Package/dbus-launch-x/Description
46 $(call Package/dbus/Default/description)
47 This package contains the dbus-launch utility with compiled in x support.
48 endef
49
50 CONFIGURE_ARGS += \
51 --enable-shared \
52 --enable-static \
53 --disable-abstract-sockets \
54 --disable-ansi \
55 --disable-asserts \
56 --disable-console-owner-file \
57 --disable-doxygen-docs \
58 --disable-gcov \
59 --disable-selinux \
60 --disable-tests \
61 --disable-verbose-mode \
62 --disable-xml-docs \
63 --with-xml="expat" \
64 --with-dbus-user=root \
65 --with-dbus-daemondir="/usr/sbin" \
66 --with-system-socket="/var/run/dbus/system_bus_socket" \
67 --with-system-pid-file="/var/run/dbus.pid" \
68 --with-x \
69 --libexecdir=/usr/lib/dbus-1
70
71 CONFIGURE_VARS+= \
72 ac_cv_have_abstract_sockets="yes" \
73
74 define Package/dbus-launch-x/install
75 $(INSTALL_DIR) $(1)/usr/bin
76 $(CP) \
77 $(PKG_INSTALL_DIR)/usr/bin/dbus-launch \
78 $(1)/usr/bin/dbus-launch-x
79 endef
80
81 $(eval $(call BuildPackage,dbus-launch-x))