aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/libcanberra
diff options
context:
space:
mode:
authorAndreas Müller <schnitzeltony@googlemail.com>2013-09-16 09:04:13 +0000
committerMartin Jansa <Martin.Jansa@gmail.com>2013-09-19 13:56:57 +0200
commit7d458ae7425fcb9c76bc1c43aeca90bce356d5bb (patch)
tree5444d75c09721dd6e971d9042cc59d497f0a7621 /meta-oe/recipes-support/libcanberra
parent58b86f24a77018dd0284e5d36ddc94e06f874866 (diff)
downloadmeta-openembedded-contrib-7d458ae7425fcb9c76bc1c43aeca90bce356d5bb.tar.gz
meta-openembedded-contrib-7d458ae7425fcb9c76bc1c43aeca90bce356d5bb.tar.bz2
meta-openembedded-contrib-7d458ae7425fcb9c76bc1c43aeca90bce356d5bb.zip
libcanberra: handle alsa and pulsaudio by PACKAGECONFIG - defaults based upon DISTRO_FEATURES
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/libcanberra')
-rw-r--r--meta-oe/recipes-support/libcanberra/libcanberra_0.29.bb10
1 files changed, 7 insertions, 3 deletions
diff --git a/meta-oe/recipes-support/libcanberra/libcanberra_0.29.bb b/meta-oe/recipes-support/libcanberra/libcanberra_0.29.bb
index 6bb974ced2..da94c20560 100644
--- a/meta-oe/recipes-support/libcanberra/libcanberra_0.29.bb
+++ b/meta-oe/recipes-support/libcanberra/libcanberra_0.29.bb
@@ -4,7 +4,7 @@ LICENSE = "LGPLv2.1+"
LIC_FILES_CHKSUM = "file://LGPL;md5=2d5025d4aa3495befef8f17206a5b0a1 \
file://src/canberra.h;beginline=7;endline=24;md5=c616c687cf8da540a14f917e0d23ab03"
-DEPENDS = "alsa-lib gstreamer gtk+ gtk+3 libtool libvorbis pulseaudio"
+DEPENDS = "gstreamer gtk+ gtk+3 libtool libvorbis"
inherit autotools
@@ -14,9 +14,7 @@ SRC_URI[sha256sum] = "127a5ef07805856d63758e5180ebfb241d1f80094fd301c287591a15b8
EXTRA_OECONF = "\
--enable-null \
- --enable-alsa \
--enable-gstreamer \
- --enable-pulse \
--disable-oss \
--enable-gtk \
--enable-gtk3 \
@@ -24,6 +22,12 @@ EXTRA_OECONF = "\
--disable-lynx \
"
+PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES','alsa','alsa','',d)} \
+ ${@base_contains('DISTRO_FEATURES','pulseaudio','pulseaudio','',d)} \
+"
+PACKAGECONFIG[alsa] = "--enable-alsa, --disable-alsa, alsa-lib"
+PACKAGECONFIG[pulseaudio] = "--enable-pulse, --disable-pulse, pulseaudio"
+
python populate_packages_prepend() {
plugindir = d.expand('${libdir}/${P}/')
do_split_packages(d, plugindir, '^libcanberra-(.*)\.so$', 'libcanberra-%s', '%s support library', extra_depends='' )