From: Trevor Woerner Date: Fri, 23 Mar 2018 00:07:06 +0000 (-0400) Subject: mesa.inc: make PROVIDES conditional on PACKAGECONFIG X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~18287 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b1e57eb8c959c0f0a5d9a7e0c2e0811c515ea08;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Ross Burton --- diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc index 23ae651f7d1..1a45601fdc9 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