diff mbox

[oe,meta-multimedia] libdc1394: Add X11 and opengl deps if distro has them in policy

Message ID 20170612190146.4028-1-raj.khem@gmail.com
State Accepted
Commit 25ca0801b86e791e7b603e95d479dc6f6cedf7a2
Headers show

Commit Message

Khem Raj June 12, 2017, 7:01 p.m. UTC
Signed-off-by: Khem Raj <raj.khem@gmail.com>

---
 meta-multimedia/recipes-multimedia/libdc1394/libdc1394_git.bb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

-- 
2.13.1

-- 
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
diff mbox

Patch

diff --git a/meta-multimedia/recipes-multimedia/libdc1394/libdc1394_git.bb b/meta-multimedia/recipes-multimedia/libdc1394/libdc1394_git.bb
index 8318385b6..8a9e9a1d7 100755
--- a/meta-multimedia/recipes-multimedia/libdc1394/libdc1394_git.bb
+++ b/meta-multimedia/recipes-multimedia/libdc1394/libdc1394_git.bb
@@ -5,7 +5,10 @@  LICENSE = "LGPL-2.0"
 LIC_FILES_CHKSUM = "file://COPYING;md5=c848e78d9a4a5cc69906178e4d6fbd64"
 
 # libsdl to provide sdl.m4 with AM_PATH_SDL
-DEPENDS += "libusb1 libraw1394 libsdl"
+DEPENDS += "libusb1 libraw1394 libsdl \
+            ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'libxv virtual/libx11', '', d)} \
+            ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'virtual/libgl libglu', '', d)} \
+"
 
 PV = "2.2.5+gitr${SRCPV}"