diff options
author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2017-02-27 14:02:50 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-01 11:17:45 +0000 |
commit | 254bfb107134702d8d1e0bfbdd1b011212e8c291 (patch) | |
tree | 188ddf3ea786bc1b913904330e4f95125bd6def4 /meta/recipes-multimedia/mpg123 | |
parent | dec5650bc292aa3c4a0a04ace72d2cf762e9620b (diff) | |
download | poky-254bfb107134702d8d1e0bfbdd1b011212e8c291.tar.gz |
recipes: Make use of the new bb.utils.filter() function
(From OE-Core rev: 0a1427bf9aeeda6bee2cc0af8da4ea5fd90aef6f)
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-multimedia/mpg123')
-rw-r--r-- | meta/recipes-multimedia/mpg123/mpg123_1.23.8.bb | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/meta/recipes-multimedia/mpg123/mpg123_1.23.8.bb b/meta/recipes-multimedia/mpg123/mpg123_1.23.8.bb index f4c5c7cce8..e0a70380ea 100644 --- a/meta/recipes-multimedia/mpg123/mpg123_1.23.8.bb +++ b/meta/recipes-multimedia/mpg123/mpg123_1.23.8.bb | |||
@@ -20,7 +20,7 @@ inherit autotools pkgconfig | |||
20 | # The options should be mutually exclusive for configuration script. | 20 | # The options should be mutually exclusive for configuration script. |
21 | # If both alsa and pulseaudio are specified (as in the default distro features) | 21 | # If both alsa and pulseaudio are specified (as in the default distro features) |
22 | # pulseaudio takes precedence. | 22 | # pulseaudio takes precedence. |
23 | PACKAGECONFIG_ALSA = "${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'alsa', '', d)}" | 23 | PACKAGECONFIG_ALSA = "${@bb.utils.filter('DISTRO_FEATURES', 'alsa', d)}" |
24 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '${PACKAGECONFIG_ALSA}', d)}" | 24 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '${PACKAGECONFIG_ALSA}', d)}" |
25 | 25 | ||
26 | PACKAGECONFIG[alsa] = "--with-default-audio=alsa,,alsa-lib" | 26 | PACKAGECONFIG[alsa] = "--with-default-audio=alsa,,alsa-lib" |
@@ -33,13 +33,8 @@ PACKAGECONFIG[sdl] = ",,libsdl" | |||
33 | 33 | ||
34 | # Following are possible sound output modules: | 34 | # Following are possible sound output modules: |
35 | # alsa arts coreaudio dummy esd jack nas openal os2 oss portaudio pulse sdl sndio sun tinyalsa win32 win32_wasapi | 35 | # alsa arts coreaudio dummy esd jack nas openal os2 oss portaudio pulse sdl sndio sun tinyalsa win32 win32_wasapi |
36 | AUDIOMODS += "${@bb.utils.contains('PACKAGECONFIG', 'alsa', 'alsa', '', d)}" | 36 | AUDIOMODS += "${@bb.utils.filter('PACKAGECONFIG', 'alsa esd jack openal portaudio sdl', d)}" |
37 | AUDIOMODS += "${@bb.utils.contains('PACKAGECONFIG', 'esd', 'esd', '', d)}" | ||
38 | AUDIOMODS += "${@bb.utils.contains('PACKAGECONFIG', 'jack', 'jack', '', d)}" | ||
39 | AUDIOMODS += "${@bb.utils.contains('PACKAGECONFIG', 'openal', 'openal', '', d)}" | ||
40 | AUDIOMODS += "${@bb.utils.contains('PACKAGECONFIG', 'portaudio', 'portaudio', '', d)}" | ||
41 | AUDIOMODS += "${@bb.utils.contains('PACKAGECONFIG', 'pulseaudio', 'pulse', '', d)}" | 37 | AUDIOMODS += "${@bb.utils.contains('PACKAGECONFIG', 'pulseaudio', 'pulse', '', d)}" |
42 | AUDIOMODS += "${@bb.utils.contains('PACKAGECONFIG', 'sdl', 'sdl', '', d)}" | ||
43 | 38 | ||
44 | EXTRA_OECONF = " \ | 39 | EXTRA_OECONF = " \ |
45 | --enable-shared \ | 40 | --enable-shared \ |