diff options
Diffstat (limited to 'meta/recipes-graphics/mesa')
-rw-r--r-- | meta/recipes-graphics/mesa/mesa-common.inc | 12 | ||||
-rw-r--r-- | meta/recipes-graphics/mesa/mesa-dri.inc | 2 |
2 files changed, 12 insertions, 2 deletions
diff --git a/meta/recipes-graphics/mesa/mesa-common.inc b/meta/recipes-graphics/mesa/mesa-common.inc index aac3bbef82..24cc3d08ea 100644 --- a/meta/recipes-graphics/mesa/mesa-common.inc +++ b/meta/recipes-graphics/mesa/mesa-common.inc | |||
@@ -12,7 +12,7 @@ SECTION = "x11" | |||
12 | LICENSE = "MIT" | 12 | LICENSE = "MIT" |
13 | LIC_FILES_CHKSUM = "file://docs/license.html;md5=03ccdc4c379c4289aecfb8892c546f67" | 13 | LIC_FILES_CHKSUM = "file://docs/license.html;md5=03ccdc4c379c4289aecfb8892c546f67" |
14 | 14 | ||
15 | INC_PR = "r0" | 15 | INC_PR = "r1" |
16 | PE = "2" | 16 | PE = "2" |
17 | 17 | ||
18 | 18 | ||
@@ -21,7 +21,7 @@ LIB_DEPS = "virtual/libx11 libxext libxxf86vm libxdamage libxfixes libxml2-nativ | |||
21 | 21 | ||
22 | DEPENDS = "makedepend-native flex-native bison-native ${PROTO_DEPS} ${LIB_DEPS}" | 22 | DEPENDS = "makedepend-native flex-native bison-native ${PROTO_DEPS} ${LIB_DEPS}" |
23 | 23 | ||
24 | PROVIDES = "virtual/libgl" | 24 | PROVIDES = "virtual/libgl virtual/libgles1 virtual/libgles2" |
25 | 25 | ||
26 | # for mesa-dri and mesa-xlib | 26 | # for mesa-dri and mesa-xlib |
27 | FILESEXTRAPATHS_append := "${THISDIR}/mesa:" | 27 | FILESEXTRAPATHS_append := "${THISDIR}/mesa:" |
@@ -34,6 +34,8 @@ EXTRA_OECONF = "--enable-glu \ | |||
34 | --enable-glx-tls \ | 34 | --enable-glx-tls \ |
35 | --enable-shared-glapi" | 35 | --enable-shared-glapi" |
36 | 36 | ||
37 | PACKAGECONFIG ??= "${@base_contains('MACHINE_FEATURES', 'x86', 'gles', '', d)}" | ||
38 | |||
37 | # Multiple virtual/gl providers being built breaks staging | 39 | # Multiple virtual/gl providers being built breaks staging |
38 | EXCLUDE_FROM_WORLD = "1" | 40 | EXCLUDE_FROM_WORLD = "1" |
39 | 41 | ||
@@ -46,10 +48,14 @@ PACKAGES =+ "libegl libegl-dev libegl-dbg \ | |||
46 | libgl libgl-dev \ | 48 | libgl libgl-dev \ |
47 | libglapi libglapi-dev \ | 49 | libglapi libglapi-dev \ |
48 | libgbm libgbm-dev \ | 50 | libgbm libgbm-dev \ |
51 | libgles1 libgles1-dev \ | ||
52 | libgles2 libgles2-dev \ | ||
49 | " | 53 | " |
50 | 54 | ||
51 | FILES_libegl = "${libdir}/libEGL.so.* ${libdir}/egl/*.so" | 55 | FILES_libegl = "${libdir}/libEGL.so.* ${libdir}/egl/*.so" |
52 | FILES_libgbm = "${libdir}/libgbm.so.*" | 56 | FILES_libgbm = "${libdir}/libgbm.so.*" |
57 | FILES_libgles1 = "${libdir}/libGLESv1*.so.*" | ||
58 | FILES_libgles2 = "${libdir}/libGLESv2.so.*" | ||
53 | FILES_libgl = "${libdir}/libGL.so.*" | 59 | FILES_libgl = "${libdir}/libGL.so.*" |
54 | FILES_libglapi = "${libdir}/libglapi.so.*" | 60 | FILES_libglapi = "${libdir}/libglapi.so.*" |
55 | FILES_libglu = "${libdir}/libGLU.so.*" | 61 | FILES_libglu = "${libdir}/libGLU.so.*" |
@@ -59,6 +65,8 @@ FILES_libegl-dev = "${libdir}/libEGL.* ${includedir}/EGL" | |||
59 | FILES_libgbm-dev = "${libdir}/libgbm* ${libdir}/pkgconfig/gbm.pc ${includedir}/gbm.h" | 65 | FILES_libgbm-dev = "${libdir}/libgbm* ${libdir}/pkgconfig/gbm.pc ${includedir}/gbm.h" |
60 | FILES_libgl-dev = "${libdir}/libGL.* ${includedir}/GL ${libdir}/pkgconfig/gl.pc" | 66 | FILES_libgl-dev = "${libdir}/libGL.* ${includedir}/GL ${libdir}/pkgconfig/gl.pc" |
61 | FILES_libglapi-dev = "${libdir}/libglapi.*" | 67 | FILES_libglapi-dev = "${libdir}/libglapi.*" |
68 | FILES_libgles1-dev = "${libdir}/libGLESv1*.* ${includedir}/GLES ${libdir}/pkgconfig/glesv1*.pc" | ||
69 | FILES_libgles2-dev = "${libdir}/libGLESv2.* ${includedir}/GLES2 ${libdir}/pkgconfig/glesv2.pc" | ||
62 | FILES_libglu-dev = "${libdir}/libGLU.* ${includedir}/GL/glu*.h ${libdir}/pkgconfig/glu.pc" | 70 | FILES_libglu-dev = "${libdir}/libGLU.* ${includedir}/GL/glu*.h ${libdir}/pkgconfig/glu.pc" |
63 | FILES_libosmesa-dev = "${libdir}/libOSMesa.* ${includedir}/osmesa.h" | 71 | FILES_libosmesa-dev = "${libdir}/libOSMesa.* ${includedir}/osmesa.h" |
64 | 72 | ||
diff --git a/meta/recipes-graphics/mesa/mesa-dri.inc b/meta/recipes-graphics/mesa/mesa-dri.inc index f8f1fff4cc..32ca4b2146 100644 --- a/meta/recipes-graphics/mesa/mesa-dri.inc +++ b/meta/recipes-graphics/mesa/mesa-dri.inc | |||
@@ -12,6 +12,8 @@ EXTRA_OECONF += "--disable-gallium --without-gallium-drivers" | |||
12 | EXTRA_OECONF += "--enable-dri --with-dri-drivers=${DRIDRIVERS}" | 12 | EXTRA_OECONF += "--enable-dri --with-dri-drivers=${DRIDRIVERS}" |
13 | EXTRA_OECONF += "--disable-egl --enable-gbm" | 13 | EXTRA_OECONF += "--disable-egl --enable-gbm" |
14 | 14 | ||
15 | PACKAGECONFIG[gles] = "--enable-gles1 --enable-gles2, --disable-gles1 --disable-gles2" | ||
16 | |||
15 | python populate_packages_prepend() { | 17 | python populate_packages_prepend() { |
16 | dri_drivers_root = os.path.join(d.getVar('libdir', True), "dri") | 18 | dri_drivers_root = os.path.join(d.getVar('libdir', True), "dri") |
17 | 19 | ||