diff options
Diffstat (limited to 'meta/packages/mesa/mesa-mesa.inc')
-rw-r--r-- | meta/packages/mesa/mesa-mesa.inc | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/meta/packages/mesa/mesa-mesa.inc b/meta/packages/mesa/mesa-mesa.inc deleted file mode 100644 index d794f0c097..0000000000 --- a/meta/packages/mesa/mesa-mesa.inc +++ /dev/null | |||
@@ -1,41 +0,0 @@ | |||
1 | include mesa-common.inc | ||
2 | |||
3 | PACKAGES =+ "libglu libglu-dev libosmesa libosmesa-dev libgl libgl-dev" | ||
4 | |||
5 | FILES_libgl = "${libdir}/libGL.so.*" | ||
6 | FILES_libglu = "${libdir}/libGLU.so.*" | ||
7 | FILES_libosmesa = "${libdir}/libOSMesa.so.*" | ||
8 | |||
9 | FILES_libgl-dev = "${libdir}/libGL.* ${includedir}/GL" | ||
10 | FILES_libglu-dev = "${libdir}/libGLU.* ${includedir}/GL/glu*.h" | ||
11 | FILES_libosmesa-dev = "${libdir}/libOSMesa.* ${includedir}/osmesa.h" | ||
12 | |||
13 | do_configure() { | ||
14 | cd configs | ||
15 | |||
16 | cp linux current | ||
17 | sed -e "s%CC *= *.*%CC = ${CC}%" -i current | ||
18 | sed -e "s%CXX *= *.*%CXX = ${CXX}%" -i current | ||
19 | sed -e "s%LD *= *.*%LD = ${LD}%" -i current | ||
20 | sed -e "s%OPT_FLAGS *= *.*%OPT_FLAGS = ${TARGET_CFLAGS}%" -i current | ||
21 | sed -e "s%X11_INCLUDES *= *.*%X11_INCLUDES = -I${STAGING_INCDIR}/X11%" -i current | ||
22 | sed -e "s%EXTRA_LIB_PATH *= *.*%EXTRA_LIB_PATH = ${LDFLAGS}%" -i current | ||
23 | sed -i s:\$\(CC\):gcc:g ../src/mesa/x86/Makefile | ||
24 | echo "SRC_DIRS = mesa glu glut/glx" >> current | ||
25 | } | ||
26 | |||
27 | do_compile() { | ||
28 | oe_runmake default | ||
29 | } | ||
30 | |||
31 | do_install() { | ||
32 | install -d ${D}${libdir} | ||
33 | cp -pP lib/* ${D}${libdir}/ | ||
34 | install -d ${D}${includedir} | ||
35 | cp -R include/GL ${D}${includedir}/ | ||
36 | } | ||
37 | |||
38 | do_stage() { | ||
39 | cp -pP lib/* ${STAGING_LIBDIR}/ | ||
40 | cp -R include/GL ${STAGING_INCDIR}/ | ||
41 | } | ||