aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGregor <dan.mcgregor@usask.ca>2014-09-18 10:00:54 -0600
committerDan McGregor <dan.mcgregor@usask.ca>2016-07-06 12:57:47 -0600
commit73bbd31a427e06bb2a591cb028c12245f9d58669 (patch)
tree1560c9b3ea832b55f0aa53f3bd33f221d5b1549d
parent9e3e88a388afb792b40b421586bae491268ef8cb (diff)
downloadmeta-openembedded-contrib-73bbd31a427e06bb2a591cb028c12245f9d58669.tar.gz
meta-openembedded-contrib-73bbd31a427e06bb2a591cb028c12245f9d58669.tar.bz2
meta-openembedded-contrib-73bbd31a427e06bb2a591cb028c12245f9d58669.zip
libmikmod: make pulseaudio dependency optional.
Only add pulseaudio dependency if it's in distro features, otherwise disable it completely. Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
-rw-r--r--meta-oe/recipes-multimedia/mikmod/libmikmod_3.3.6.bb5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta-oe/recipes-multimedia/mikmod/libmikmod_3.3.6.bb b/meta-oe/recipes-multimedia/mikmod/libmikmod_3.3.6.bb
index 2e1b9bf057..7f43db57d8 100644
--- a/meta-oe/recipes-multimedia/mikmod/libmikmod_3.3.6.bb
+++ b/meta-oe/recipes-multimedia/mikmod/libmikmod_3.3.6.bb
@@ -3,7 +3,7 @@ SECTION = "libs"
LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://COPYING.LESSER;md5=4fbd65380cdd255951079008b364516c"
-DEPENDS = "alsa-lib texinfo pulseaudio"
+DEPENDS = "alsa-lib texinfo"
SRC_URI = "\
${SOURCEFORGE_MIRROR}/project/mikmod/${BPN}/${PV}/${BPN}-${PV}.tar.gz \
@@ -13,6 +13,9 @@ SRC_URI[sha256sum] = "3f363e03f7b1db75b9b6602841bbd440ed275a548e53545f980df8155d
inherit autotools binconfig lib_package
+PACKAGECONFIG ??= " ${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '', d)}"
+PACKAGECONFIG[pulseaudio] = "--enable-pulseaudio=yes,--enable-pulseaudio=no,pulseaudio"
+
EXTRA_OECONF = "\
--disable-af \
--enable-alsa \