From: Khem Raj <[email protected]>

aac and ffmpeg could be enabled only if they have been whitelisted by
user

Signed-off-by: Khem Raj <[email protected]>
(cherry picked from commit 20ac7000cca4b1af84782e9e79dcc5207fdcf71a)
Signed-off-by: Armin Kuster <[email protected]>
---
 .../recipes-multimedia/musicpd/mpd_0.22.6.bb          | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/meta-multimedia/recipes-multimedia/musicpd/mpd_0.22.6.bb 
b/meta-multimedia/recipes-multimedia/musicpd/mpd_0.22.6.bb
index e91bb5d9789..b1fa96e1bee 100644
--- a/meta-multimedia/recipes-multimedia/musicpd/mpd_0.22.6.bb
+++ b/meta-multimedia/recipes-multimedia/musicpd/mpd_0.22.6.bb
@@ -2,8 +2,6 @@ SUMMARY = "Music Player Daemon"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
 
-LICENSE_FLAGS = "${@bb.utils.contains_any('PACKAGECONFIG', ['ffmpeg', 'aac'], 
'commercial', '', d)}"
-
 HOMEPAGE ="http://www.musicpd.org";
 
 inherit meson useradd systemd pkgconfig
@@ -28,7 +26,14 @@ S = "${WORKDIR}/git"
 
 EXTRA_OEMESON += "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 
'-Dsystemd=enabled -Dsystemd_system_unit_dir=${systemd_system_unitdir} 
-Dsystemd_user_unit_dir=${systemd_system_unitdir}', '-Dsystemd=disabled', d)}"
 
-PACKAGECONFIG ??= "aac alsa ao bzip2 daemon ffmpeg fifo flac fluidsynth 
iso9660 jack libsamplerate httpd mms mpg123 modplug sndfile upnp openal opus 
oss recorder vorbis wavpack zlib"
+PACKAGECONFIG ??= "${@bb.utils.contains("LICENSE_FLAGS_WHITELIST", 
"commercial", "aac", "", d)} \
+                   alsa ao bzip2 daemon \
+                   ${@bb.utils.contains("LICENSE_FLAGS_WHITELIST", 
"commercial", "ffmpeg aac", "", d)} \
+                   fifo flac fluidsynth iso9660 \
+                   jack libsamplerate httpd \
+                   mms mpg123 modplug sndfile \
+                   upnp openal opus oss recorder \
+                   vorbis wavpack zlib"
 
 PACKAGECONFIG[aac] = "-Dfaad=enabled,-Dfaad=disabled,faad2"
 PACKAGECONFIG[alsa] = "-Dalsa=enabled,-Dalsa=disabled,alsa-lib"
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#90658): 
https://lists.openembedded.org/g/openembedded-devel/message/90658
Mute This Topic: https://lists.openembedded.org/mt/81947004/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to