summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-graphics/mesa/mesa.inc15
1 files changed, 9 insertions, 6 deletions
diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
index f7058107cd..a0ab5b21d5 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -263,28 +263,31 @@ do_install:append () {
263# RPROVIDEs/RCONFLICTs on the generic libgl name. 263# RPROVIDEs/RCONFLICTs on the generic libgl name.
264python __anonymous() { 264python __anonymous() {
265 pkgconfig = (d.getVar('PACKAGECONFIG') or "").split() 265 pkgconfig = (d.getVar('PACKAGECONFIG') or "").split()
266 mlprefix = d.getVar("MLPREFIX")
266 suffix = "" 267 suffix = ""
267 if "-native" in d.getVar("PN"): 268 if "-native" in d.getVar("PN"):
268 suffix = "-native" 269 suffix = "-native"
270
271 for p in ("libegl", "libgl", "libglx", "libgles1", "libgles2", "libgles3", "libopencl"):
272 fullp = mlprefix + p + "-mesa" + suffix
273 d.appendVar("RRECOMMENDS:" + fullp, " ${MLPREFIX}mesa-megadriver" + suffix)
274
275 d.setVar("DEBIAN_NOAUTONAME:%slibopencl-mesa%s" % (mlprefix, suffix), "1")
276
269 for p in (("egl", "libegl", "libegl1"), 277 for p in (("egl", "libegl", "libegl1"),
270 ("opengl", "libgl", "libgl1"), 278 ("opengl", "libgl", "libgl1"),
271 ("glvnd", "libglx",), 279 ("glvnd", "libglx",),
272 ("gles", "libgles1", "libglesv1-cm1"), 280 ("gles", "libgles1", "libglesv1-cm1"),
273 ("gles", "libgles2", "libglesv2-2", "libgles3"), 281 ("gles", "libgles2", "libglesv2-2", "libgles3")):
274 ("opencl", "libopencl",)):
275 if not p[0] in pkgconfig: 282 if not p[0] in pkgconfig:
276 continue 283 continue
277 mlprefix = d.getVar("MLPREFIX")
278 fullp = mlprefix + p[1] + "-mesa" + suffix 284 fullp = mlprefix + p[1] + "-mesa" + suffix
279 mlprefix = d.getVar("MLPREFIX")
280 pkgs = " " + " ".join(mlprefix + x + suffix for x in p[1:]) 285 pkgs = " " + " ".join(mlprefix + x + suffix for x in p[1:])
281 d.setVar("DEBIAN_NOAUTONAME:" + fullp, "1") 286 d.setVar("DEBIAN_NOAUTONAME:" + fullp, "1")
282 d.appendVar("RREPLACES:" + fullp, pkgs) 287 d.appendVar("RREPLACES:" + fullp, pkgs)
283 d.appendVar("RPROVIDES:" + fullp, pkgs) 288 d.appendVar("RPROVIDES:" + fullp, pkgs)
284 d.appendVar("RCONFLICTS:" + fullp, pkgs) 289 d.appendVar("RCONFLICTS:" + fullp, pkgs)
285 290
286 d.appendVar("RRECOMMENDS:" + fullp, " ${MLPREFIX}mesa-megadriver" + suffix)
287
288 # For -dev, the first element is both the Debian and original name 291 # For -dev, the first element is both the Debian and original name
289 fullp = mlprefix + p[1] + "-mesa-dev" + suffix 292 fullp = mlprefix + p[1] + "-mesa-dev" + suffix
290 pkgs = " " + mlprefix + p[1] + "-dev" + suffix 293 pkgs = " " + mlprefix + p[1] + "-dev" + suffix