aboutsummaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorTrevor Woerner <twoerner@gmail.com>2018-03-22 20:07:06 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-03-28 11:56:05 +0100
commit8b1e57eb8c959c0f0a5d9a7e0c2e0811c515ea08 (patch)
tree7684a88beea455eb2d95239ed2b43e9182fd5e1b /meta
parent94cf27ebc5d3e3fafa85f3bb1ca54f606bb411ad (diff)
downloadopenembedded-core-contrib-8b1e57eb8c959c0f0a5d9a7e0c2e0811c515ea08.tar.gz
mesa.inc: make PROVIDES conditional on PACKAGECONFIG
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>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-graphics/mesa/mesa.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
index 23ae651f7d..1a45601fdc 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -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