tracker-miners: Check for commercial license to enable ffmpeg
PATCH 1/4 tracker-miners: Check for commercial license to enable ffmpeg
Signed-off-by Khem Raj <[email protected]>
Cc Andreas Müller <[email protected]>
--- meta-gnome/recipes-gnome/tracker/tracker-miners_2.3.5.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-gnome/recipes-gnome/tracker/tracker-miners_2.3.5.bb +1 -1
@@ -23,7 +23,7 @@ REQUIRED_DISTRO_FEATURES = "gobject-introspection-data" UNKNOWN_CONFIGURE_WHITELIST_append = " introspection" PACKAGECONFIG ??= " \ - ffmpeg \ + ${@bb.utils.contains("LICENSE_FLAGS_WHITELIST", "commercial", "ffmpeg", "", d)} \ flac \ gexiv2 \ gstreamer \
Signature · 1 line
2.31.0
PATCH 2/4 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 <[email protected]>
--- .../recipes-multimedia/musicpd/mpd_0.22.6.bb | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-)
meta-multimedia/recipes-multimedia/musicpd/mpd_0.22.6.bb +8 -3
@@ -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"
Signature · 1 line
2.31.0
PATCH 3/4 mpv: Exclude from world if commercial is not in inclusion list
In reply to Khem RajSigned-off-by Khem Raj <[email protected]>
--- meta-oe/recipes-multimedia/mplayer/mpv_0.32.0.bb | 1 + 1 file changed, 1 insertion(+)
meta-oe/recipes-multimedia/mplayer/mpv_0.32.0.bb +1 -0
@@ -111,3 +111,4 @@ FILES_${PN} += " \ ${datadir}/zsh \ ${datadir}/bash-completion \ " +EXCLUDE_FROM_WORLD = "${@bb.utils.contains("LICENSE_FLAGS_WHITELIST", "commercial", "0", "1", d)}"
Signature · 1 line
2.31.0
PATCH 4/4 sox: Exclude from world if commercial is not in inclusion list
In reply to Khem RajIt needs ffmpeg
Signed-off-by Khem Raj <[email protected]>
Cc Andreas Müller <[email protected]>
--- meta-multimedia/recipes-multimedia/sox/sox_14.4.2.bb | 3 +++ 1 file changed, 3 insertions(+)
meta-multimedia/recipes-multimedia/sox/sox_14.4.2.bb +3 -0
@@ -38,3 +38,6 @@ SRC_URI[md5sum] = "d04fba2d9245e661f245de0577f48a33" SRC_URI[sha256sum] = "b45f598643ffbd8e363ff24d61166ccec4836fea6d3888881b8df53e3bb55f6c" inherit autotools pkgconfig + +EXCLUDE_FROM_WORLD = "${@bb.utils.contains("LICENSE_FLAGS_WHITELIST", "commercial", "0", "1", d)}" +
Signature · 1 line
2.31.0