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