diff options
author | Koen Kooi <k-kooi@ti.com> | 2010-03-26 13:33:25 +0100 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2010-04-12 19:43:30 +0200 |
commit | f3a0fae8ea873099a17dc93939a9941306582bfe (patch) | |
tree | 6f351bb94daffe0e808cac380221ba1ee233db05 /recipes/powervr-drivers/bc-cube_0.2.0.bb | |
parent | 815e3891d829d6c8f29a32362e615683c4552fcf (diff) | |
download | openembedded-f3a0fae8ea873099a17dc93939a9941306582bfe.tar.gz |
bc-cube: add 0.2.0 with desktop file to launch it using a GUI
Diffstat (limited to 'recipes/powervr-drivers/bc-cube_0.2.0.bb')
-rw-r--r-- | recipes/powervr-drivers/bc-cube_0.2.0.bb | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/recipes/powervr-drivers/bc-cube_0.2.0.bb b/recipes/powervr-drivers/bc-cube_0.2.0.bb new file mode 100644 index 0000000000..01b6f94588 --- /dev/null +++ b/recipes/powervr-drivers/bc-cube_0.2.0.bb @@ -0,0 +1,45 @@ +DESCRIPTION = "TI Texture streaming using bufferclass API demo (spinning video cube)" +LICENSE = "TI-BSD/GPLv2" +DEPENDS = "virtual/egl" + +SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/apps_processors/OMAP35x_AM35x_Video_Texture_Streaming/1_0/exports/bc-cat-${PV}.tar.gz;name=bccat \ + file://bc-cat-0.2.0.patch;patch=1 \ + file://bc-cube.desktop \ +" + +SRC_URI[bccat.md5sum] = "4d6f2e637f57ee6cf5f85b024ac88741" +SRC_URI[bccat.sha256sum] = "5c486590d843da6ac38fe8c6cfcb851de94ac496cf4f3b4b3092092656bf727a" + +S = "${WORKDIR}/bc-cat-${PV}" + +CFLAGS += " -DGLES_20 -DLINUX -I../include -I${STAGING_INCDIR}/services4/3rdparty/bufferclass_ti/ -I${STAGING_INCDIR}/include4" +LDFLAGS += "-lGLESv2 -lEGL" + +# build both fb and x11 version +do_compile() { + cd test + sed -i -e s:video3:video0:g webcam.c + oe_runmake GLES_20=1 -e clean + oe_runmake GLES_20=1 -e + mv gles2_bc_mmap gles2_bc_mmap-fb + mv gles2_bc_webcam gles2_bc_webcam-fb + + oe_runmake GLES_20=1 -e clean + CFLAGS="${CFLAGS} -DX11" oe_runmake -e GLES_20=1 X11BUILD=1 + mv gles2_bc_webcam gles2_bc_webcam-x11 + +} + +do_install() { + install -d ${D}${bindir} + install -m 0755 ${S}/test/gles2_bc_mmap-* ${D}${bindir} + install -m 0755 ${S}/test/gles2_bc_webcam-* ${D}${bindir} + + install -d ${D}${datadir}/applications + install -m 0644 ${WORKDIR}/bc-cube.desktop ${D}${datadir}/applications/ +} + +PACKAGES =+ "${PN}-fb ${PN}-x11" +FILES_${PN}-x11 = "${bindir}/*x11 ${datadir}/applications" +FILES_${PN}-fb = "${bindir}/*fb" + |