diff options
author | David Batzle <dbatzle@dcbcyber.com> | 2009-06-30 15:55:23 +0200 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2009-06-30 15:55:23 +0200 |
commit | 5b5a19ac0378bee6786d5365ada8f849429f26be (patch) | |
tree | 9747be8035f7816d023ed9a831ce898e0014dd8d /recipes/irrlicht/irrlicht-examples-gles.bb | |
parent | 62e92c381d66bc78c81f540714368e8f13912c1f (diff) |
irrlicht: add recipe to build irrlicht demos against a GLES1.1 lib
Diffstat (limited to 'recipes/irrlicht/irrlicht-examples-gles.bb')
-rw-r--r-- | recipes/irrlicht/irrlicht-examples-gles.bb | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/recipes/irrlicht/irrlicht-examples-gles.bb b/recipes/irrlicht/irrlicht-examples-gles.bb new file mode 100644 index 0000000000..6de692ec0e --- /dev/null +++ b/recipes/irrlicht/irrlicht-examples-gles.bb @@ -0,0 +1,42 @@ +DESCRIPTION = "Irrlicht 3D rendering engine " +LICENSE = "zlib" +DEPENDS = "virtual/libx11 libxxf86vm virtual/egl" + +SRCREV = "2409" +PV = "1.6+svnr${SRCREV}" + +SRC_URI = "svn://irrlicht.svn.sourceforge.net/svnroot/irrlicht/branches;module=ogl-es;proto=https \ + file://irrlicht_beagle.diff;patch=1;pnum=0 \ + " + +TARGET_CC_ARCH += "${LDFLAGS}" + +S = "${WORKDIR}/ogl-es" + +do_compile(){ + cd ${WORKDIR}/ogl-es/source/Irrlicht + oe_runmake + cd ${WORKDIR}/ogl-es/examples + oe_runmake +} + +EXTRA_OEMAKE = -I${WORKDIR}/egl-es/include + +do_stage() { + install ${S}/lib/Linux/libIrrlicht.a ${STAGING_LIBDIR} +} + +do_install() { + install -d ${D}${datadir}/irrlicht/bin + install -d ${D}${libdir} + install ${S}/lib/Linux/libIrrlicht.a ${D}${libdir} + cp -a ${S}/bin/Linux ${D}${datadir}/irrlicht/bin/ + mkdir ${D}${datadir}/irrlicht/media + cp ${S}/media/* ${D}${datadir}/irrlicht/media/ + find ${D} -name ".svn" | xargs rm -rf +} + +FILES_${PN} = "${datadir}/irrlicht/" +FILES_${PN}-dbg += "${datadir}/irrlicht/bin/Linux/.debug" +FILES_${PN} += "${libdir}/" + |