mesa: use distro_features_check to abort build without opengl feature
authorRoss Burton <ross.burton@intel.com>
Mon, 9 Sep 2013 10:19:11 +0000 (10:19 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 10 Sep 2013 14:57:20 +0000 (15:57 +0100)
Stop mesa from building on distributions without the "opengl" DISTRO_FEATURE.

(From OE-Core rev: 05bacb69a3b0f3bbd9dd608855456c32b4007fde)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-graphics/mesa/mesa.inc

index 71fcabd..79605fa 100644 (file)
@@ -19,7 +19,9 @@ DEPENDS = "expat makedepend-native flex-native bison-native"
 
 PROVIDES = "virtual/libgl virtual/libgles1 virtual/libgles2 virtual/egl"
 
-inherit autotools pkgconfig pythonnative gettext
+inherit autotools pkgconfig pythonnative gettext distro_features_check
+
+REQUIRED_DISTRO_FEATURES = "opengl"
 
 EXTRA_OECONF = "--enable-shared-glapi"