Patchwork [meta-oe] v4l-utils: Add virtual/libx11 dependency only if X11 is available

login
register
mail settings
Submitter Otavio Salvador
Date June 30, 2014, 9:35 p.m.
Message ID <1404164155-12971-1-git-send-email-otavio@ossystems.com.br>
Download mbox | patch
Permalink /patch/74505/
State Accepted, archived
Headers show

Comments

Otavio Salvador - June 30, 2014, 9:35 p.m.
In case we are building in a X11-less distro we shouldn't depends on
virtual/libx11.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
 meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.0.1.bb |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Patch

diff --git a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.0.1.bb b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.0.1.bb
index abe9a64..c3a1370 100644
--- a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.0.1.bb
+++ b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.0.1.bb
@@ -3,7 +3,8 @@  LICENSE = "GPLv2 & LGPLv2.1"
 LIC_FILES_CHKSUM = "file://COPYING;md5=48da9957849056017dc568bbc43d8975 \
                     file://COPYING.libv4l;md5=d749e86a105281d7a44c2328acebc4b0"
 
-DEPENDS = "jpeg virtual/libx11"
+DEPENDS = "jpeg \
+           ${@base_contains('DISTRO_FEATURES', 'x11', 'virtual/libx11', '', d)}"
 
 inherit autotools gettext pkgconfig