libgles2d: Bump SRCREV and define _PANDORA_ in the build.
[openpandora.oe.git] / recipes / libgles2d / libgles2d_git.bb
1 DESCRIPTION = "An openGL-ES 2D library for OMAP3 SGX based systems"
2 LICENSE = "GPL"
3
4 DEPENDS = "virtual/libsdl libgles-omap3"
5
6 PR = "r4"
7
8 PARALLEL_MAKE = ""
9
10 SRC_URI = " \
11   git://github.com/Cpasjuste/GLES2D.git;protocol=git;branch=master \
12 "
13
14 SRCREV = "0abc732054cbe3cc3da38a6a7503d9d37b02d164"
15
16 S = "${WORKDIR}/git/src"
17
18 TARGET_CC_ARCH += "${LDFLAGS}"
19 TARGET_CFLAGS += "-Wall -I./include"
20
21 CFLAGS += "-D_PANDORA_"
22
23 do_compile_prepend() {
24           cd ${S}/
25 }
26
27 do_compile() {
28           oe_runmake 
29           oe_runmake deploy
30 }
31
32 do_install() {
33           install -d ${D}${libdir}/
34           install -m 0644 ${S}/deployment/usr/lib/libGLES2D* ${D}${libdir}/
35
36           install -d ${D}${includedir}/GLES2D
37           install -m 0644 ${S}/deployment/usr/include/GLES2D/* ${D}${includedir}/GLES2D
38 }
39
40 FILES_${PN} += "${libdir}/libGLES2D.so*"
41 FILES_${PN}-dev += "${libdir}/libGLES2D.a ${includedir}/GLES2D/*"