diff options
| author | Ross Burton <ross.burton@intel.com> | 2013-12-23 17:32:55 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-01-02 13:01:01 +0000 |
| commit | d43adee2236b048a665095232a0d2c511ff3949e (patch) | |
| tree | b4172917007203411a1ae4a8c02558b371d3e36c /meta/recipes-core/dbus | |
| parent | ace19818e1db34157ed1585056510618616f6a47 (diff) | |
| download | poky-d43adee2236b048a665095232a0d2c511ff3949e.tar.gz | |
dbus: use PACKAGECONFIG for X11 and systemd
Instead of several variables and overrides, use PACKAGECONFIG to respect X11 and
systemd DISTRO_FEATURES.
(From OE-Core rev: 963da99c77ad28bd184a4de59af9cbcfaef62358)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/dbus')
| -rw-r--r-- | meta/recipes-core/dbus/dbus.inc | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/meta/recipes-core/dbus/dbus.inc b/meta/recipes-core/dbus/dbus.inc index 343079ccdf..625e975934 100644 --- a/meta/recipes-core/dbus/dbus.inc +++ b/meta/recipes-core/dbus/dbus.inc | |||
| @@ -5,10 +5,7 @@ SECTION = "base" | |||
| 5 | LICENSE = "AFL-2 | GPLv2+" | 5 | LICENSE = "AFL-2 | GPLv2+" |
| 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=10dded3b58148f3f1fd804b26354af3e \ | 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=10dded3b58148f3f1fd804b26354af3e \ |
| 7 | file://dbus/dbus.h;beginline=6;endline=20;md5=7755c9d7abccd5dbd25a6a974538bb3c" | 7 | file://dbus/dbus.h;beginline=6;endline=20;md5=7755c9d7abccd5dbd25a6a974538bb3c" |
| 8 | X11DEPENDS = "virtual/libx11 libsm" | 8 | DEPENDS = "expat virtual/libintl" |
| 9 | DEPENDS = "expat virtual/libintl ${@base_contains('DISTRO_FEATURES', 'x11', '${X11DEPENDS}', '', d)}" | ||
| 10 | DEPENDS_class-native = "expat-native virtual/libintl-native" | ||
| 11 | DEPENDS_class-nativesdk = "nativesdk-expat virtual/nativesdk-libintl" | ||
| 12 | RDEPENDS_dbus = "${@base_contains('DISTRO_FEATURES', 'ptest', 'dbus-ptest-ptest', '', d)}" | 9 | RDEPENDS_dbus = "${@base_contains('DISTRO_FEATURES', 'ptest', 'dbus-ptest-ptest', '', d)}" |
| 13 | RDEPENDS_dbus_class-native = "" | 10 | RDEPENDS_dbus_class-native = "" |
| 14 | RDEPENDS_dbus_class-nativesdk = "" | 11 | RDEPENDS_dbus_class-nativesdk = "" |
| @@ -70,21 +67,23 @@ pkg_postinst_dbus() { | |||
| 70 | fi | 67 | fi |
| 71 | } | 68 | } |
| 72 | 69 | ||
| 73 | EXTRA_OECONF_X = "${@base_contains('DISTRO_FEATURES', 'x11', '--with-x', '--without-x', d)}" | ||
| 74 | EXTRA_OECONF_X_class-native = "--without-x --disable-x11-autolaunch" | ||
| 75 | # TODO: would like to --enable-systemd but that's a circular build-dependency | ||
| 76 | # between systemd<->dbus | ||
| 77 | EXTRA_OECONF_SYSTEMD = "${@base_contains('DISTRO_FEATURES', 'systemd', '--with-systemdsystemunitdir=${systemd_unitdir}/system/', '--without-systemdsystemunitdir', d)}" | ||
| 78 | |||
| 79 | EXTRA_OECONF = "--disable-tests \ | 70 | EXTRA_OECONF = "--disable-tests \ |
| 80 | --disable-checks \ | 71 | --disable-checks \ |
| 81 | --disable-xml-docs \ | 72 | --disable-xml-docs \ |
| 82 | --disable-doxygen-docs \ | 73 | --disable-doxygen-docs \ |
| 83 | --disable-libaudit \ | 74 | --disable-libaudit \ |
| 84 | --with-xml=expat \ | 75 | --with-xml=expat \ |
| 85 | --disable-systemd \ | 76 | --disable-systemd" |
| 86 | ${EXTRA_OECONF_SYSTEMD} \ | 77 | |
| 87 | ${EXTRA_OECONF_X}" | 78 | PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)} \ |
| 79 | ${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}" | ||
| 80 | PACKAGECONFIG_class-native = "" | ||
| 81 | PACKAGECONFIG_class-nativesdk = "" | ||
| 82 | |||
| 83 | # Would like to --enable-systemd but that's a circular build-dependency between | ||
| 84 | # systemd<->dbus | ||
| 85 | PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_unitdir}/system/,--without-systemdsystemunitdir" | ||
| 86 | PACKAGECONFIG[x11] = "--with-x --enable-x11-autolaunch,--without-x --disable-x11-autolaunch, virtual/libx11 libsm" | ||
| 88 | 87 | ||
| 89 | do_install() { | 88 | do_install() { |
| 90 | autotools_do_install | 89 | autotools_do_install |
