[oe-commits] [openembedded-core] 03/22: mesa.inc: make PROVIDES conditional on PACKAGECONFIG

git at git.openembedded.org git at git.openembedded.org
Wed Mar 28 11:47:33 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master
in repository openembedded-core.

commit 8b1e57eb8c959c0f0a5d9a7e0c2e0811c515ea08
Author: Trevor Woerner <twoerner at gmail.com>
AuthorDate: Thu Mar 22 20:07:06 2018 -0400

    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 at gmail.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/recipes-graphics/mesa/mesa.inc | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
index 23ae651..1a45601 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
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list