summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-graphics/mesa/mesa-common.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-graphics/mesa/mesa-common.inc')
-rw-r--r--meta-oe/recipes-graphics/mesa/mesa-common.inc53
1 files changed, 53 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/mesa/mesa-common.inc b/meta-oe/recipes-graphics/mesa/mesa-common.inc
new file mode 100644
index 000000000..4073d6ffe
--- /dev/null
+++ b/meta-oe/recipes-graphics/mesa/mesa-common.inc
@@ -0,0 +1,53 @@
1SECTION = "x11"
2
3DESCRIPTION = "An open source implementation of the OpenGL spec"
4HOMEPAGE = "http://mesa3d.org"
5LICENSE = "MIT"
6LIC_FILES_CHKSUM = "file://docs/license.html;md5=7a3373c039b6b925c427755a4f779c1d"
7
8INC_PR = "r11"
9PE = "2"
10
11PROTO_DEPS = "xf86driproto glproto"
12LIB_DEPS = "virtual/libx11 libxext libxxf86vm libxdamage libxfixes"
13
14DEPENDS = "${PROTO_DEPS} ${LIB_DEPS}"
15
16SRC_URI = "ftp://ftp.freedesktop.org/pub/mesa/${PV}/MesaLib-${PV}.tar.bz2;name=archive \
17 "
18S = "${WORKDIR}/Mesa-${PV}"
19
20PROVIDES = "virtual/libgl"
21
22inherit autotools pkgconfig
23
24EXTRA_OECONF = "--enable-glu \
25 --disable-glw \
26 --disable-glut \
27 "
28
29inherit glx-use-tls
30
31# Package contents vary according to ${MACHINE_DRI_MODULES}.
32PACKAGE_ARCH = "${MACHINE_ARCH}"
33
34PACKAGES =+ "libegl libegl-dev libegl-dbg libglu libglu-dev libosmesa libosmesa-dev libgl libgl-dev"
35FILES_${PN} += "${libdir}/dri/*.so"
36FILES_libegl = "${libdir}/libEGL.so.* ${libdir}/egl/*.so"
37FILES_libgl = "${libdir}/libGL.so.*"
38FILES_libglu = "${libdir}/libGLU.so.*"
39FILES_libosmesa = "${libdir}/libOSMesa.so.*"
40
41FILES_libegl-dev = "${libdir}/libEGL.* ${includedir}/EGL"
42FILES_libgl-dev = "${libdir}/libGL.* ${includedir}/GL"
43FILES_libglu-dev = "${libdir}/libGLU.* ${includedir}/GL/glu*.h"
44FILES_libosmesa-dev = "${libdir}/libOSMesa.* ${includedir}/osmesa.h"
45
46FILES_${PN}-dbg += "${libdir}/dri/.debug/*"
47FILES_libegl-dbg += "${libdir}/egl/.debug/*"
48
49NATIVE_INSTALL_WORKS = "1"
50do_install_append () {
51 install -d ${D}/${includedir}/GL
52 cp -pPr ${S}/include/GL/internal* ${D}/${includedir}/GL
53}