fc7e64396b2a97992fe6a1ebaa776c73a7777e52
[packages.git] / utils / dbus-x / Makefile
1 #
2 # Copyright (C) 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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 # Make sure to also update the dbus package
12 PKG_NAME:=dbus-x
13 PKG_VERSION:=1.2.12
14 PKG_RELEASE:=1
15
16 PKG_BUILD_DIR:=$(BUILD_DIR)/dbus-x/dbus-$(PKG_VERSION)
17 PKG_SOURCE:=dbus-$(PKG_VERSION).tar.gz
18 PKG_SOURCE_URL:=http://dbus.freedesktop.org/releases/dbus/
19 PKG_MD5SUM:=39bd582c3b06a261cac44d4cab6fd60b
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/description
29  D-Bus is a message bus system, a simple way for applications to talk to one
30  another. In addition to interprocess communication, D-Bus helps coordinate
31  process lifecycle; it makes it simple and reliable to code a "single instance"
32  application or daemon, and to launch applications and daemons on demand when
33  their services are needed.
34 endef
35
36 define Package/dbus-launch-x
37   SECTION:=utils
38   CATEGORY:=Utilities
39   TITLE:=dbus launch utility with x support
40   DEPENDS:=+libexpat +dbus +libX11
41   URL:=http://dbus.freedesktop.org/
42 endef
43
44 define Package/dbus-launch-x/Description
45 $(call Package/dbus/Default/description)
46   This package contains the dbus-launch utility with compiled in x support.
47 endef
48
49 CONFIGURE_ARGS += \
50         --enable-shared \
51         --enable-static \
52         --disable-abstract-sockets \
53         --disable-ansi \
54         --disable-asserts \
55         --disable-console-owner-file \
56         --disable-doxygen-docs \
57         --disable-gcov \
58         --disable-selinux \
59         --disable-tests \
60         --disable-verbose-mode \
61         --disable-xml-docs \
62         --with-xml="expat" \
63         --with-dbus-user=root \
64         --with-dbus-daemondir="/usr/sbin" \
65         --with-system-socket="/var/run/dbus/system_bus_socket" \
66         --with-system-pid-file="/var/run/dbus.pid" \
67         --with-x \
68         --libexecdir=/usr/lib/dbus-1
69
70 CONFIGURE_VARS+= \
71         ac_cv_have_abstract_sockets="yes" \
72         $(if $(CONFIG_LINUX_2_4),ac_cv_header_sys_inotify_h=no)
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))