The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / dbus / dbus.mk
1 ################################################################################
2 #
3 # dbus
4 #
5 ################################################################################
6
7 DBUS_VERSION = 1.8.16
8 DBUS_SITE = http://dbus.freedesktop.org/releases/dbus
9 DBUS_LICENSE = AFLv2.1 GPLv2+
10 DBUS_LICENSE_FILES = COPYING
11 DBUS_INSTALL_STAGING = YES
12
13 define DBUS_PERMISSIONS
14         /usr/libexec/dbus-daemon-launch-helper f 4755 0 0 - - - - -
15 endef
16
17 define DBUS_USERS
18         dbus -1 dbus -1 * /var/run/dbus - dbus DBus messagebus user
19 endef
20
21
22 DBUS_DEPENDENCIES = host-pkgconf expat
23
24 DBUS_CONF_ENV = ac_cv_have_abstract_sockets=yes
25 DBUS_CONF_OPTS = \
26         --with-dbus-user=dbus \
27         --disable-tests \
28         --disable-asserts \
29         --enable-abstract-sockets \
30         --disable-selinux \
31         --disable-xml-docs \
32         --disable-doxygen-docs \
33         --disable-dnotify \
34         --with-xml=expat \
35         --with-system-socket=/var/run/dbus/system_bus_socket \
36         --with-system-pid-file=/var/run/messagebus.pid
37
38 ifeq ($(BR2_STATIC_LIBS),y)
39 DBUS_CONF_OPTS += LIBS='-pthread'
40 endif
41
42 ifeq ($(BR2_microblaze),y)
43 # microblaze toolchain doesn't provide inotify_rm_* but does have sys/inotify.h
44 DBUS_CONF_OPTS += --disable-inotify
45 endif
46
47 ifeq ($(BR2_PACKAGE_XLIB_LIBX11),y)
48 DBUS_CONF_OPTS += --with-x
49 DBUS_DEPENDENCIES += xlib_libX11
50 else
51 DBUS_CONF_OPTS += --without-x
52 endif
53
54 ifeq ($(BR2_INIT_SYSTEMD),y)
55 DBUS_CONF_OPTS += \
56         --enable-systemd \
57         --with-systemdsystemunitdir=/usr/lib/systemd/system
58 DBUS_DEPENDENCIES += systemd
59 else
60 DBUS_CONF_OPTS += --disable-systemd
61 endif
62
63 # fix rebuild (dbus makefile errors out if /var/lib/dbus is a symlink)
64 define DBUS_REMOVE_VAR_LIB_DBUS
65         rm -rf $(TARGET_DIR)/var/lib/dbus
66 endef
67
68 DBUS_POST_BUILD_HOOKS += DBUS_REMOVE_VAR_LIB_DBUS
69
70 define DBUS_REMOVE_DEVFILES
71         rm -rf $(TARGET_DIR)/usr/lib/dbus-1.0
72 endef
73
74 DBUS_POST_INSTALL_TARGET_HOOKS += DBUS_REMOVE_DEVFILES
75
76 define DBUS_INSTALL_TARGET_FIXUP
77         mkdir -p $(TARGET_DIR)/var/lib
78         rm -rf $(TARGET_DIR)/var/lib/dbus
79         ln -sf /tmp/dbus $(TARGET_DIR)/var/lib/dbus
80 endef
81
82 DBUS_POST_INSTALL_TARGET_HOOKS += DBUS_INSTALL_TARGET_FIXUP
83
84 define DBUS_INSTALL_INIT_SYSV
85         $(INSTALL) -m 0755 -D package/dbus/S30dbus \
86                 $(TARGET_DIR)/etc/init.d/S30dbus
87 endef
88
89 HOST_DBUS_DEPENDENCIES = host-pkgconf host-expat
90 HOST_DBUS_CONF_OPTS = \
91         --with-dbus-user=dbus \
92         --disable-tests \
93         --disable-asserts \
94         --enable-abstract-sockets \
95         --disable-selinux \
96         --disable-xml-docs \
97         --disable-doxygen-docs \
98         --enable-dnotify \
99         --without-x \
100         --with-xml=expat
101
102 # dbus for the host
103 DBUS_HOST_INTROSPECT = $(HOST_DBUS_DIR)/introspect.xml
104
105 HOST_DBUS_GEN_INTROSPECT = \
106         $(HOST_DIR)/usr/bin/dbus-daemon --introspect > $(DBUS_HOST_INTROSPECT)
107
108 HOST_DBUS_POST_INSTALL_HOOKS += HOST_DBUS_GEN_INTROSPECT
109
110 $(eval $(autotools-package))
111 $(eval $(host-autotools-package))