lirc: Make X support to be a packageconfig

When we dont have x11 in distro features it fails to build
since libx11 dependency is not satisfied

Change-Id: I6774a83f965551a41afe12b1304e44e73fc789c0
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
Khem Raj
2015-05-19 23:04:33 -07:00
committed by Martin Jansa
parent a3fd44bd1c
commit bd4b81a52f
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ DESCRIPTION_append_lirc-nslu2example = " This package contains a working config
HOMEPAGE = "http://www.lirc.org" HOMEPAGE = "http://www.lirc.org"
SECTION = "console/network" SECTION = "console/network"
LICENSE = "GPLv2" LICENSE = "GPLv2"
DEPENDS = "alsa-lib libftdi libusb1 libusb-compat jack portaudio-v19 libx11" DEPENDS = "alsa-lib libftdi libusb1 libusb-compat jack portaudio-v19"
PRIORITY = "optional" PRIORITY = "optional"
SRC_URI = "http://prdownloads.sourceforge.net/lirc/lirc-${PV}.tar.bz2" SRC_URI = "http://prdownloads.sourceforge.net/lirc/lirc-${PV}.tar.bz2"
@@ -19,9 +19,11 @@ SYSTEMD_AUTO_ENABLE_lirc = "enable"
inherit autotools pkgconfig systemd pythonnative inherit autotools pkgconfig systemd pythonnative
PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_unitdir}/system/,--without-systemdsystemunitdir" PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_unitdir}/system/,--without-systemdsystemunitdir,systemd"
PACKAGECONFIG[x11] = "--with-x,--with-x=no,libx11,"
PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}" PACKAGECONFIG_append = "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', ' systemd', '', d)}"
PACKAGECONFIG_append = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', ' x11', '', d)}"
#EXTRA_OEMAKE = 'SUBDIRS="lib daemons tools"' #EXTRA_OEMAKE = 'SUBDIRS="lib daemons tools"'
do_install_append() { do_install_append() {