diff options
| -rw-r--r-- | meta/recipes-graphics/mesa/mesa.inc | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc index d8b36bd536..012104cef9 100644 --- a/meta/recipes-graphics/mesa/mesa.inc +++ b/meta/recipes-graphics/mesa/mesa.inc | |||
| @@ -274,27 +274,27 @@ python __anonymous() { | |||
| 274 | 274 | ||
| 275 | d.setVar("DEBIAN_NOAUTONAME:%slibopencl-mesa%s" % (mlprefix, suffix), "1") | 275 | d.setVar("DEBIAN_NOAUTONAME:%slibopencl-mesa%s" % (mlprefix, suffix), "1") |
| 276 | 276 | ||
| 277 | for p in (("egl", "libegl", "libegl1"), | 277 | if 'glvnd' not in pkgconfig: |
| 278 | ("opengl", "libgl", "libgl1"), | 278 | for p in (("egl", "libegl", "libegl1"), |
| 279 | ("glvnd", "libglx",), | 279 | ("opengl", "libgl", "libgl1"), |
| 280 | ("gles", "libgles1", "libglesv1-cm1"), | 280 | ("gles", "libgles1", "libglesv1-cm1"), |
| 281 | ("gles", "libgles2", "libglesv2-2", "libgles3")): | 281 | ("gles", "libgles2", "libglesv2-2", "libgles3")): |
| 282 | if not p[0] in pkgconfig: | 282 | if not p[0] in pkgconfig: |
| 283 | continue | 283 | continue |
| 284 | fullp = mlprefix + p[1] + "-mesa" + suffix | 284 | fullp = mlprefix + p[1] + "-mesa" + suffix |
| 285 | pkgs = " " + " ".join(mlprefix + x + suffix for x in p[1:]) | 285 | pkgs = " " + " ".join(mlprefix + x + suffix for x in p[1:]) |
| 286 | d.setVar("DEBIAN_NOAUTONAME:" + fullp, "1") | 286 | d.setVar("DEBIAN_NOAUTONAME:" + fullp, "1") |
| 287 | d.appendVar("RREPLACES:" + fullp, pkgs) | 287 | d.appendVar("RREPLACES:" + fullp, pkgs) |
| 288 | d.appendVar("RPROVIDES:" + fullp, pkgs) | 288 | d.appendVar("RPROVIDES:" + fullp, pkgs) |
| 289 | d.appendVar("RCONFLICTS:" + fullp, pkgs) | 289 | d.appendVar("RCONFLICTS:" + fullp, pkgs) |
| 290 | 290 | ||
| 291 | # 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 |
| 292 | fullp = mlprefix + p[1] + "-mesa-dev" + suffix | 292 | fullp = mlprefix + p[1] + "-mesa-dev" + suffix |
| 293 | pkgs = " " + mlprefix + p[1] + "-dev" + suffix | 293 | pkgs = " " + mlprefix + p[1] + "-dev" + suffix |
| 294 | d.setVar("DEBIAN_NOAUTONAME:" + fullp, "1") | 294 | d.setVar("DEBIAN_NOAUTONAME:" + fullp, "1") |
| 295 | d.appendVar("RREPLACES:" + fullp, pkgs) | 295 | d.appendVar("RREPLACES:" + fullp, pkgs) |
| 296 | d.appendVar("RPROVIDES:" + fullp, pkgs) | 296 | d.appendVar("RPROVIDES:" + fullp, pkgs) |
| 297 | d.appendVar("RCONFLICTS:" + fullp, pkgs) | 297 | d.appendVar("RCONFLICTS:" + fullp, pkgs) |
| 298 | } | 298 | } |
| 299 | 299 | ||
| 300 | python mesa_populate_packages() { | 300 | python mesa_populate_packages() { |
