]> code.ossystems Code Review - openembedded-core.git/commitdiff
recipes-graphics: add x11 to REQUIRED_DISTRO_FEATURES
authorRobert Yang <liezhi.yang@windriver.com>
Mon, 11 May 2015 02:30:03 +0000 (19:30 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 14 May 2015 10:41:12 +0000 (11:41 +0100)
They can't be built withou x11 in DISTRO_FEATURES.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
meta/recipes-graphics/libepoxy/libepoxy_1.2.bb
meta/recipes-graphics/libfakekey/libfakekey_git.bb
meta/recipes-graphics/waffle/waffle_1.3.0.bb
meta/recipes-graphics/xorg-font/xorg-font-common.inc
meta/recipes-graphics/xorg-font/xorg-minimal-fonts.bb
meta/recipes-graphics/xorg-lib/libxcb.inc
meta/recipes-graphics/xorg-lib/xcb-util.inc
meta/recipes-graphics/xvideo-tests/xvideo-tests_git.bb

index 4fbc861066261b352b811e3cb70acedf8ef3467a..1934fae943340c9141b9edf202f53593aebe13e6 100644 (file)
@@ -11,6 +11,9 @@ SRCREV="7422de5b4be7b19d789136b3bb5f932de42db27c"
 
 S = "${WORKDIR}/git"
 
-inherit autotools pkgconfig
+inherit autotools pkgconfig distro_features_check
+
+# The virtual/libx11 requires x11 in DISTRO_FEATURES
+REQUIRED_DISTRO_FEATURES = "x11"
 
 DEPENDS = "util-macros virtual/egl virtual/libx11"
index 862fe38de2a9fa1662c4c3c7f849be6965c3e9c5..c60ddea74da5689a8164d05a6ece06d043b5db54 100644 (file)
@@ -17,4 +17,7 @@ SRC_URI = "git://git.yoctoproject.org/${BPN}"
 
 S = "${WORKDIR}/git"
 
-inherit autotools pkgconfig gettext
+inherit autotools pkgconfig gettext distro_features_check
+
+# The libxtst requires x11 in DISTRO_FEATURES
+REQUIRED_DISTRO_FEATURES = "x11"
index fe9609c5b01ea62e01d2ad4b537048745745716e..a21fcbb302c6674ea752e2f8b085897512170e58 100644 (file)
@@ -7,12 +7,15 @@ SRC_URI = "http://people.freedesktop.org/~chadversary/waffle/files/release/${BPN
 SRC_URI[md5sum] = "5020ecc249096c881e1f59ee961f3d41"
 SRC_URI[sha256sum] = "340ee04172dba878249469018cd7ec9d1ecd41af26b612c741b8b52e713bca8e"
 
-inherit cmake
+inherit cmake distro_features_check
 
 # This should be overridden per-machine to reflect the capabilities of the GL
 # stack.
 PACKAGECONFIG ??= "glx"
 
+# libx11 requires x11 in DISTRO_FEATURES.
+REQUIRED_DISTRO_FEATURES = "${@bb.utils.contains('PACKAGECONFIG', 'glx', 'x11', '', d)}"
+
 # I say virtual/libgl, actually wants gl.pc
 PACKAGECONFIG[glx] = "-Dwaffle_has_glx=1,,virtual/libgl libx11"
 
index d3b995a358d65a8f3e859283be0a191916727a97..d5267f59a2addbc9929b3a940a4bb27a22f15721 100644 (file)
@@ -10,10 +10,14 @@ RDEPENDS_${PN} = "encodings font-util font-alias"
 XORG_PN = "${BPN}"
 INC_PR = "r2"
 
+
 SRC_URI = "${XORG_MIRROR}/individual/font/${XORG_PN}-${PV}.tar.bz2"
 S = "${WORKDIR}/${XORG_PN}-${PV}"
 
-inherit autotools pkgconfig
+inherit autotools pkgconfig distro_features_check
+
+# The mkfontscale-native requires x11 in DISTRO_FEATURES
+REQUIRED_DISTRO_FEATURES = "x11"
 
 EXTRA_OEMAKE += "FCCACHE=/bin/true UTIL_DIR=${STAGING_DIR_TARGET}\$\(MAPFILES_PATH\)"
 
index bee500b43a567131d582a85f9c684dc0eb80ce12..9bcd1b2fa68f6813ebd7e72c81726f9d60a5b18b 100644 (file)
@@ -13,7 +13,10 @@ SRC_URI = "file://misc"
 PE = "1"
 PR = "r2"
 
-inherit allarch
+inherit allarch distro_features_check
+
+# The font-alias requires x11 in DISTRO_FEATURES
+REQUIRED_DISTRO_FEATURES = "x11"
 
 S = "${WORKDIR}/misc"
 
index 453f5500c3a0dac2a59fa2f771479e9f3e19666b..fe31f20df0f01e39ccfb4ce8c1c60617caaf5d5a 100644 (file)
@@ -20,7 +20,10 @@ PACKAGES_DYNAMIC = "^libxcb-.*"
 
 FILES_${PN} = "${libdir}/libxcb.so.*"
 
-inherit autotools pkgconfig pythonnative
+inherit autotools pkgconfig pythonnative distro_features_check
+
+# The libxau and others requires x11 in DISTRO_FEATURES
+REQUIRED_DISTRO_FEATURES = "x11"
 
 python populate_packages_prepend () {
     do_split_packages(d, '${libdir}', '^libxcb-(.*)\.so\..*$', 'libxcb-%s', 'XCB library module for %s', allow_links=True)
index d15cf9fba1fb48f594525fa2d9eea18c53978436..99d04f9d445f2e9a1120668ce9e998e1433f03ff 100644 (file)
@@ -18,4 +18,6 @@ DEPENDS += "gperf-native"
 
 SRC_URI = "http://xcb.freedesktop.org/dist/${BPN}-${PV}.tar.bz2"
 
-inherit autotools pkgconfig
+inherit autotools pkgconfig distro_features_check
+
+REQUIRED_DISTRO_FEATURES = "x11"
index 27aacde837d792a008705f0c6d76e06c4d7b8336..9b3c9e0c05098bfd954e36d3f8a7e05a28d21cb6 100644 (file)
@@ -11,4 +11,7 @@ SRC_URI = "git://git.yoctoproject.org/test-xvideo"
 
 S = "${WORKDIR}/git"
 
-inherit autotools
+inherit autotools distro_features_check
+
+# The libxv requires x11 in DISTRO_FEATURES
+REQUIRED_DISTRO_FEATURES = "x11"