Skip to contentSkip to conversation

gst-player: only depend on -ugly plugins if commercial licenses enabled

PATCH New Ross Burton 1 participant 1 message Feb 27, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gst-player: only depend on -ugly plugins if commercial licenses enabled

gstreamer1.0-plugins-ugly is protected by the "commercial" LICENSE_FLAGS, so only recommend it if those licenses are enabled.

---
 meta/recipes-multimedia/gstreamer/gst-player_git.bb |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
meta/recipes-multimedia/gstreamer/gst-player_git.bb +4 -1
index a7df526..cd96d77 100644
@@ -28,4 +28,7 @@ do_install_append() {
 FILES_${PN}-bin += "${datadir}/applications/*.desktop"
 
 RDEPENDS_${PN}-bin = "gstreamer1.0-plugins-base-playback"
-RRECOMMENDS_${PN}-bin = "gstreamer1.0-plugins-base-meta gstreamer1.0-plugins-good-meta gstreamer1.0-plugins-bad-meta gstreamer1.0-plugins-ugly-meta"
+RRECOMMENDS_${PN}-bin = "gstreamer1.0-plugins-base-meta \
+                         gstreamer1.0-plugins-good-meta \
+                         gstreamer1.0-plugins-bad-meta \
+                         ${@bb.utils.contains("LICENSE_FLAGS_WHITELIST", "commercial", "gstreamer1.0-plugins-ugly-meta", "", d)}"
Signature · 1 line
1.7.10.4