summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/mesa
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-graphics/mesa')
-rw-r--r--meta/recipes-graphics/mesa/mesa.inc17
1 files changed, 11 insertions, 6 deletions
diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
index afc795c5d2..3e8041b463 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -105,11 +105,16 @@ do_install_append () {
105# they don't get Debian-renamed (which would remove the -mesa suffix), and 105# they don't get Debian-renamed (which would remove the -mesa suffix), and
106# RPROVIDEs/RCONFLICTs on the generic libgl name. 106# RPROVIDEs/RCONFLICTs on the generic libgl name.
107python __anonymous() { 107python __anonymous() {
108 for p in (("libegl", "libegl1"), ("libgl", "libgl1"), 108 pkgconfig = (d.getVar('PACKAGECONFIG', True) or "").split()
109 ("libgles1", "libglesv1-cm1"), ("libgles2", "libglesv2-2"), 109 for p in (("egl", "libegl", "libegl1"),
110 ("libgles3",)): 110 ("dri", "libgl", "libgl1"),
111 fullp = p[0] + "-mesa" 111 ("gles", "libgles1", "libglesv1-cm1"),
112 pkgs = " ".join(p) 112 ("gles", "libgles2", "libglesv2-2"),
113 ("gles", "libgles3",)):
114 if not p[0] in pkgconfig:
115 continue
116 fullp = p[1] + "-mesa"
117 pkgs = " ".join(p[1:])
113 d.setVar("DEBIAN_NOAUTONAME_" + fullp, "1") 118 d.setVar("DEBIAN_NOAUTONAME_" + fullp, "1")
114 d.appendVar("RREPLACES_" + fullp, pkgs) 119 d.appendVar("RREPLACES_" + fullp, pkgs)
115 d.appendVar("RPROVIDES_" + fullp, pkgs) 120 d.appendVar("RPROVIDES_" + fullp, pkgs)
@@ -117,7 +122,7 @@ python __anonymous() {
117 122
118 # For -dev, the first element is both the Debian and original name 123 # For -dev, the first element is both the Debian and original name
119 fullp += "-dev" 124 fullp += "-dev"
120 pkgs = p[0] + "-dev" 125 pkgs = p[1] + "-dev"
121 d.setVar("DEBIAN_NOAUTONAME_" + fullp, "1") 126 d.setVar("DEBIAN_NOAUTONAME_" + fullp, "1")
122 d.appendVar("RREPLACES_" + fullp, pkgs) 127 d.appendVar("RREPLACES_" + fullp, pkgs)
123 d.appendVar("RPROVIDES_" + fullp, pkgs) 128 d.appendVar("RPROVIDES_" + fullp, pkgs)