mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-11 04:49:58 +00:00
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>
This commit is contained in:
committed by
Martin Jansa
parent
58b86f24a7
commit
7d458ae742
@@ -4,7 +4,7 @@ LICENSE = "LGPLv2.1+"
|
|||||||
LIC_FILES_CHKSUM = "file://LGPL;md5=2d5025d4aa3495befef8f17206a5b0a1 \
|
LIC_FILES_CHKSUM = "file://LGPL;md5=2d5025d4aa3495befef8f17206a5b0a1 \
|
||||||
file://src/canberra.h;beginline=7;endline=24;md5=c616c687cf8da540a14f917e0d23ab03"
|
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
|
inherit autotools
|
||||||
|
|
||||||
@@ -14,9 +14,7 @@ SRC_URI[sha256sum] = "127a5ef07805856d63758e5180ebfb241d1f80094fd301c287591a15b8
|
|||||||
|
|
||||||
EXTRA_OECONF = "\
|
EXTRA_OECONF = "\
|
||||||
--enable-null \
|
--enable-null \
|
||||||
--enable-alsa \
|
|
||||||
--enable-gstreamer \
|
--enable-gstreamer \
|
||||||
--enable-pulse \
|
|
||||||
--disable-oss \
|
--disable-oss \
|
||||||
--enable-gtk \
|
--enable-gtk \
|
||||||
--enable-gtk3 \
|
--enable-gtk3 \
|
||||||
@@ -24,6 +22,12 @@ EXTRA_OECONF = "\
|
|||||||
--disable-lynx \
|
--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() {
|
python populate_packages_prepend() {
|
||||||
plugindir = d.expand('${libdir}/${P}/')
|
plugindir = d.expand('${libdir}/${P}/')
|
||||||
do_split_packages(d, plugindir, '^libcanberra-(.*)\.so$', 'libcanberra-%s', '%s support library', extra_depends='' )
|
do_split_packages(d, plugindir, '^libcanberra-(.*)\.so$', 'libcanberra-%s', '%s support library', extra_depends='' )
|
||||||
|
|||||||
Reference in New Issue
Block a user