diff options
author | Khem Raj <raj.khem@gmail.com> | 2021-03-25 18:16:25 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2021-03-30 15:36:17 -0700 |
commit | 20ac7000cca4b1af84782e9e79dcc5207fdcf71a (patch) | |
tree | 1056fd3201bee359ace3c2dbc85a43efd7f63d69 /meta-multimedia | |
parent | bba49e9edb4642e3cbe239ab13597484602330f8 (diff) | |
download | meta-openembedded-20ac7000cca4b1af84782e9e79dcc5207fdcf71a.tar.gz |
mpd: Check for commercial in LICENSE_FLAGS_WHITELIST
aac and ffmpeg could be enabled only if they have been whitelisted by
user
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-multimedia')
-rw-r--r-- | meta-multimedia/recipes-multimedia/musicpd/mpd_0.22.6.bb | 11 |
1 files 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 e91bb5d97..b1fa96e1b 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" | |||
2 | LICENSE = "GPLv2" | 2 | LICENSE = "GPLv2" |
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" | 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" |
4 | 4 | ||
5 | LICENSE_FLAGS = "${@bb.utils.contains_any('PACKAGECONFIG', ['ffmpeg', 'aac'], 'commercial', '', d)}" | ||
6 | |||
7 | HOMEPAGE ="http://www.musicpd.org" | 5 | HOMEPAGE ="http://www.musicpd.org" |
8 | 6 | ||
9 | inherit meson useradd systemd pkgconfig | 7 | inherit meson useradd systemd pkgconfig |
@@ -28,7 +26,14 @@ S = "${WORKDIR}/git" | |||
28 | 26 | ||
29 | 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)}" | 27 | 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)}" |
30 | 28 | ||
31 | 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" | 29 | PACKAGECONFIG ??= "${@bb.utils.contains("LICENSE_FLAGS_WHITELIST", "commercial", "aac", "", d)} \ |
30 | alsa ao bzip2 daemon \ | ||
31 | ${@bb.utils.contains("LICENSE_FLAGS_WHITELIST", "commercial", "ffmpeg aac", "", d)} \ | ||
32 | fifo flac fluidsynth iso9660 \ | ||
33 | jack libsamplerate httpd \ | ||
34 | mms mpg123 modplug sndfile \ | ||
35 | upnp openal opus oss recorder \ | ||
36 | vorbis wavpack zlib" | ||
32 | 37 | ||
33 | PACKAGECONFIG[aac] = "-Dfaad=enabled,-Dfaad=disabled,faad2" | 38 | PACKAGECONFIG[aac] = "-Dfaad=enabled,-Dfaad=disabled,faad2" |
34 | PACKAGECONFIG[alsa] = "-Dalsa=enabled,-Dalsa=disabled,alsa-lib" | 39 | PACKAGECONFIG[alsa] = "-Dalsa=enabled,-Dalsa=disabled,alsa-lib" |