[oe-commits] Khem Raj : mpg123: Add audio output modules via PACKAGECONFIG

git at git.openembedded.org git at git.openembedded.org
Fri Oct 3 22:36:35 UTC 2014


Module: meta-openembedded.git
Branch: master-next
Commit: 1f6ad6fb9db16e7efa2098340aa0c54ca454e6d1
URL:    http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=1f6ad6fb9db16e7efa2098340aa0c54ca454e6d1

Author: Khem Raj <raj.khem at gmail.com>
Date:   Mon Sep 29 11:01:30 2014 -0700

mpg123: Add audio output modules via PACKAGECONFIG

We added heavy dependency list, but lets make
it configurable

Change-Id: I8d9641fdbbf49c4601d8fbc1fe8ccfae2f6acf2c
Signed-off-by: Khem Raj <raj.khem at gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>

---

 .../recipes-multimedia/mpg123/mpg123_1.19.0.bb         | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/meta-multimedia/recipes-multimedia/mpg123/mpg123_1.19.0.bb b/meta-multimedia/recipes-multimedia/mpg123/mpg123_1.19.0.bb
index 9d9dc84..e669446 100644
--- a/meta-multimedia/recipes-multimedia/mpg123/mpg123_1.19.0.bb
+++ b/meta-multimedia/recipes-multimedia/mpg123/mpg123_1.19.0.bb
@@ -6,7 +6,7 @@ HOMEPAGE = "http://mpg123.de/"
 BUGTRACKER = "http://sourceforge.net/p/mpg123/bugs/"
 SECTION = "multimedia"
 
-DEPENDS = "tslib libsdl jack openal-soft portaudio-v19 audiofile esound"
+DEPENDS = "tslib audiofile"
 
 # The options should be mutually exclusive for configuration script.
 # If both alsa and pulseaudio are specified (as in the default distro features)
@@ -15,6 +15,21 @@ PACKAGECONFIG_ALSA = "${@base_contains('DISTRO_FEATURES', 'alsa', 'alsa', '', d)
 PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '${PACKAGECONFIG_ALSA}', d)}"
 PACKAGECONFIG[pulseaudio] = "--with-default-audio=pulse,,pulseaudio"
 PACKAGECONFIG[alsa] = "--with-default-audio=alsa,,alsa-lib"
+PACKAGECONFIG[sdl] = ",,libsdl"
+PACKAGECONFIG[openal] = ",,openal-soft"
+PACKAGECONFIG[jack] = ",,jack"
+PACKAGECONFIG[portaudio] = ",,portaudio-v19"
+PACKAGECONFIG[esd] = ",,esound"
+
+# Following are possible sound output modules
+#alsa tinyalsa oss coreaudio sndio sun win32 win32_wasapi os2 esd jack portaudio pulse sdl nas arts openal dummy
+AUDIOMODS += "${@base_contains('PACKAGECONFIG', 'alsa', 'alsa', '', d)}"
+AUDIOMODS += "${@base_contains('PACKAGECONFIG', 'pulseaudio', 'pulse', '', d)}"
+AUDIOMODS += "${@base_contains('PACKAGECONFIG', 'sdl', 'sdl', '', d)}"
+AUDIOMODS += "${@base_contains('PACKAGECONFIG', 'openal', 'openal', '', d)}"
+AUDIOMODS += "${@base_contains('PACKAGECONFIG', 'jack', 'jack', '', d)}"
+AUDIOMODS += "${@base_contains('PACKAGECONFIG', 'portaudio', 'portaudio', '', d)}"
+AUDIOMODS += "${@base_contains('PACKAGECONFIG', 'esd', 'esd', '', d)}"
 
 LICENSE = "LGPLv2.1"
 LICENSE_FLAGS = "commercial"
@@ -28,6 +43,7 @@ inherit autotools pkgconfig
 
 EXTRA_OECONF = " \
     --enable-shared \
+    --with-audio='${AUDIOMODS}' \
     --with-module-suffix=.so \
     ${@bb.utils.contains('TUNE_FEATURES', 'neon', '--with-cpu=neon', '', d)} \
     ${@bb.utils.contains('TUNE_FEATURES', 'altivec', '--with-cpu=altivec', '', d)} \



More information about the Openembedded-commits mailing list