summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/mesa/mesa-common.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-graphics/mesa/mesa-common.inc')
-rw-r--r--meta/recipes-graphics/mesa/mesa-common.inc13
1 files changed, 11 insertions, 2 deletions
diff --git a/meta/recipes-graphics/mesa/mesa-common.inc b/meta/recipes-graphics/mesa/mesa-common.inc
index e661eee72b..c11d402dce 100644
--- a/meta/recipes-graphics/mesa/mesa-common.inc
+++ b/meta/recipes-graphics/mesa/mesa-common.inc
@@ -12,7 +12,7 @@ SECTION = "x11"
12LICENSE = "MIT" 12LICENSE = "MIT"
13LIC_FILES_CHKSUM = "file://docs/license.html;md5=03ccdc4c379c4289aecfb8892c546f67" 13LIC_FILES_CHKSUM = "file://docs/license.html;md5=03ccdc4c379c4289aecfb8892c546f67"
14 14
15INC_PR = "r6" 15INC_PR = "r7"
16PE = "2" 16PE = "2"
17 17
18DEPENDS = "libxml2-native makedepend-native flex-native bison-native" 18DEPENDS = "libxml2-native makedepend-native flex-native bison-native"
@@ -40,15 +40,20 @@ EXCLUDE_FROM_WORLD = "1"
40PACKAGES =+ "libegl-mesa libegl-mesa-dev \ 40PACKAGES =+ "libegl-mesa libegl-mesa-dev \
41 libosmesa libosmesa-dev \ 41 libosmesa libosmesa-dev \
42 libgl-mesa libgl-mesa-dev \ 42 libgl-mesa libgl-mesa-dev \
43 libdricore libdricore-dev \
43 libglapi libglapi-dev \ 44 libglapi libglapi-dev \
44 libgbm libgbm-dev \ 45 libgbm libgbm-dev \
45 libgles1-mesa libgles1-mesa-dev \ 46 libgles1-mesa libgles1-mesa-dev \
46 libgles2-mesa libgles2-mesa-dev \ 47 libgles2-mesa libgles2-mesa-dev \
48 libgles3-mesa libgles3-mesa-dev \
47 " 49 "
48 50
49do_install_append () { 51do_install_append () {
50 # GLU is now in libglu (this shouldn't be required in Mesa 9.x) 52 # GLU is now in libglu (this shouldn't be required in Mesa 9.x)
51 rm -f ${D}${includedir}/GL/glu* 53 rm -f ${D}${includedir}/GL/glu*
54
55 # Drivers never need libtool .la files
56 rm -f ${D}${libdir}/dri/*.la
52} 57}
53 58
54# For the packages that make up the OpenGL interfaces, inject variables so that 59# For the packages that make up the OpenGL interfaces, inject variables so that
@@ -56,7 +61,8 @@ do_install_append () {
56# RPROVIDEs/RCONFLICTs on the generic libgl name. 61# RPROVIDEs/RCONFLICTs on the generic libgl name.
57python __anonymous() { 62python __anonymous() {
58 for p in (("libegl", "libegl1"), ("libgl", "libgl1"), 63 for p in (("libegl", "libegl1"), ("libgl", "libgl1"),
59 ("libgles1", "libglesv1-cm1"), ("libgles2", "libglesv2-2")): 64 ("libgles1", "libglesv1-cm1"), ("libgles2", "libglesv2-2"),
65 ("libgles3",)):
60 fullp = p[0] + "-mesa" 66 fullp = p[0] + "-mesa"
61 pkgs = " ".join(p) 67 pkgs = " ".join(p)
62 d.setVar("DEBIAN_NOAUTONAME_" + fullp, "1") 68 d.setVar("DEBIAN_NOAUTONAME_" + fullp, "1")
@@ -74,6 +80,7 @@ python __anonymous() {
74} 80}
75 81
76FILES_${PN} = "${sysconfdir}/drirc" 82FILES_${PN} = "${sysconfdir}/drirc"
83FILES_libdricore = "${libdir}/libdricore*.so.*"
77FILES_libegl-mesa = "${libdir}/libEGL.so.*" 84FILES_libegl-mesa = "${libdir}/libEGL.so.*"
78FILES_libgbm = "${libdir}/libgbm.so.*" 85FILES_libgbm = "${libdir}/libgbm.so.*"
79FILES_libgles1-mesa = "${libdir}/libGLESv1*.so.*" 86FILES_libgles1-mesa = "${libdir}/libGLESv1*.so.*"
@@ -83,12 +90,14 @@ FILES_libglapi = "${libdir}/libglapi.so.*"
83FILES_libosmesa = "${libdir}/libOSMesa.so.*" 90FILES_libosmesa = "${libdir}/libOSMesa.so.*"
84 91
85FILES_${PN}-dev = "${libdir}/pkgconfig/dri.pc" 92FILES_${PN}-dev = "${libdir}/pkgconfig/dri.pc"
93FILES_libdricore-dev = "${libdir}/libdricore*.*"
86FILES_libegl-mesa-dev = "${libdir}/libEGL.* ${includedir}/EGL ${includedir}/KHR ${libdir}/pkgconfig/egl.pc" 94FILES_libegl-mesa-dev = "${libdir}/libEGL.* ${includedir}/EGL ${includedir}/KHR ${libdir}/pkgconfig/egl.pc"
87FILES_libgbm-dev = "${libdir}/libgbm.* ${libdir}/pkgconfig/gbm.pc ${includedir}/gbm.h" 95FILES_libgbm-dev = "${libdir}/libgbm.* ${libdir}/pkgconfig/gbm.pc ${includedir}/gbm.h"
88FILES_libgl-mesa-dev = "${libdir}/libGL.* ${includedir}/GL ${libdir}/pkgconfig/gl.pc" 96FILES_libgl-mesa-dev = "${libdir}/libGL.* ${includedir}/GL ${libdir}/pkgconfig/gl.pc"
89FILES_libglapi-dev = "${libdir}/libglapi.*" 97FILES_libglapi-dev = "${libdir}/libglapi.*"
90FILES_libgles1-mesa-dev = "${libdir}/libGLESv1*.* ${includedir}/GLES ${libdir}/pkgconfig/glesv1*.pc" 98FILES_libgles1-mesa-dev = "${libdir}/libGLESv1*.* ${includedir}/GLES ${libdir}/pkgconfig/glesv1*.pc"
91FILES_libgles2-mesa-dev = "${libdir}/libGLESv2.* ${includedir}/GLES2 ${libdir}/pkgconfig/glesv2.pc" 99FILES_libgles2-mesa-dev = "${libdir}/libGLESv2.* ${includedir}/GLES2 ${libdir}/pkgconfig/glesv2.pc"
100FILES_libgles3-mesa-dev = "${includedir}/GLES3"
92FILES_libosmesa-dev = "${libdir}/libOSMesa.* ${includedir}/osmesa.h" 101FILES_libosmesa-dev = "${libdir}/libOSMesa.* ${includedir}/osmesa.h"
93 102
94FILES_${PN}-dbg += "${libdir}/dri/.debug/* ${libdir}/egl/.debug/*" 103FILES_${PN}-dbg += "${libdir}/dri/.debug/* ${libdir}/egl/.debug/*"