]> code.ossystems Code Review - openembedded-core.git/commitdiff
mesa.inc: make PROVIDES conditional on PACKAGECONFIG
authorTrevor Woerner <twoerner@gmail.com>
Fri, 23 Mar 2018 00:07:06 +0000 (20:07 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 28 Mar 2018 10:56:05 +0000 (11:56 +0100)
Mesa only PROVIDES these features if they are enabled via PACKAGECONFIG.
Therefore make the PROVIDES conditional depending on whether or not these
features have been enabled.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-graphics/mesa/mesa.inc

index 23ae651f7d129d47d00f0191baf14f0080014d08..1a45601fdc966e99c6bdf0e03d30e8f3206e951b 100644 (file)
@@ -16,7 +16,12 @@ PE = "2"
 
 DEPENDS = "expat makedepend-native flex-native bison-native libxml2-native zlib chrpath-replacement-native"
 EXTRANATIVEPATH += "chrpath-native"
-PROVIDES = "virtual/libgl virtual/libgles1 virtual/libgles2 virtual/egl virtual/mesa"
+PROVIDES = " \
+    ${@bb.utils.contains('PACKAGECONFIG', 'opengl', 'virtual/libgl', '', d)} \
+    ${@bb.utils.contains('PACKAGECONFIG', 'gles', 'virtual/libgles1 virtual/libgles2', '', d)} \
+    ${@bb.utils.contains('PACKAGECONFIG', 'egl', 'virtual/egl', '', d)} \
+    virtual/mesa \
+    "
 
 inherit autotools pkgconfig python3native gettext distro_features_check