From e8eb01fb49bf18dedb62ef05712374cec3bd5efd Mon Sep 17 00:00:00 2001 From: Drew Moseley Date: Mon, 8 Sep 2014 12:58:40 +0100 Subject: gstreamer: Set DEPENDS dynamically for plugins-ugly and plugins-bad Only add plugins-ugly or plugins-bad to the DEPENDS if they are added to the COMMERCIAL_AUDIO_PLUGINS or COMMERCIAL_VIDEO_PLUGINS. Signed-off-by: Drew Moseley Signed-off-by: Saul Wold Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- meta/recipes-multimedia/gstreamer/gst-meta-base_0.10.bb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'meta/recipes-multimedia/gstreamer/gst-meta-base_0.10.bb') diff --git a/meta/recipes-multimedia/gstreamer/gst-meta-base_0.10.bb b/meta/recipes-multimedia/gstreamer/gst-meta-base_0.10.bb index 518ab721af..039abe14fa 100644 --- a/meta/recipes-multimedia/gstreamer/gst-meta-base_0.10.bb +++ b/meta/recipes-multimedia/gstreamer/gst-meta-base_0.10.bb @@ -1,6 +1,11 @@ SUMMARY = "GStreamer package groups" LICENSE = "MIT" -DEPENDS = "gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad" + +COMMERCIAL_PLUGINS = "${COMMERCIAL_AUDIO_PLUGINS} ${COMMERCIAL_VIDEO_PLUGINS}" +DEPENDS_UGLY="${@'gst-plugins-ugly' if 'ugly' in COMMERCIAL_PLUGINS.split('-') else ''}" +DEPENDS_BAD="${@'gst-plugins-bad' if 'bad' in COMMERCIAL_PLUGINS.split('-') else ''}" +DEPENDS = "gstreamer gst-plugins-base gst-plugins-good ${DEPENDS_UGLY} ${DEPENDS_BAD}" + LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \ file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" -- cgit 1.2.3-korg