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