[oe-commits] Koen Kooi : ogre-egl: build samples against a modern toolkit and package them

GIT User account git at amethyst.openembedded.net
Wed Feb 11 08:40:38 UTC 2009


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 1eda21e3378f83206c8f00f9a698e836824cf98c
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=1eda21e3378f83206c8f00f9a698e836824cf98c

Author: Koen Kooi <koen at openembedded.org>
Date:   Wed Feb 11 09:38:33 2009 +0100

ogre-egl: build samples against a modern toolkit and package them

---

 packages/ogre/ogre-egl_svn.bb |   21 +++++++++++++++++----
 1 files changed, 17 insertions(+), 4 deletions(-)

diff --git a/packages/ogre/ogre-egl_svn.bb b/packages/ogre/ogre-egl_svn.bb
index 61d2429..9ca9e8f 100644
--- a/packages/ogre/ogre-egl_svn.bb
+++ b/packages/ogre/ogre-egl_svn.bb
@@ -1,8 +1,8 @@
 DESCRIPTION = "OGRE (Object-Oriented Graphics Rendering Engine) is a scene-oriented, flexible 3D engine "
 LICENSE = "LGPL"
-DEPENDS = "zziplib boost freeimage freetype virtual/libx11 virtual/egl"
+DEPENDS = "gtk+ wgois cppunit zziplib boost freeimage freetype virtual/libx11 virtual/egl"
 
-PR = "r1"
+PR = "r3"
 
 SRCREV = "8310"
 PV = "1.6.1+svnr${SRCREV}"
@@ -14,7 +14,7 @@ SRC_URI = "svn://ogre.svn.sourceforge.net/svnroot/ogre;module=trunk;proto=https
 inherit autotools_stage
 
 # This is the EGL version
-EXTRA_OECONF = " --with-allocator=std --enable-threading=no --disable-cg --enable-gles "
+EXTRA_OECONF = " --with-gui=gtk --disable-freetypetest --enable-ogre-demos --with-allocator=std --enable-threading=no --disable-cg --enable-gles "
 
 S = "${WORKDIR}/trunk"
 
@@ -25,7 +25,20 @@ do_configure_prepend() {
 	sed -i -e /OGRE_DETECT_ENDIAN/d ${S}/configure.in
 }
 
-FILES_${PN}-dbg += "${libdir}/OGRE/.debug"
+do_install_append() {
+	install -d ${D}${datadir}/ogre3d/samples
+	mv ${D}${S}/Samples/* ${D}${datadir}/ogre3d/samples/
+	cp ${S}/Samples/Common/bin/Release/*cfg ${D}${datadir}/ogre3d/samples/Common/bin
+
+	install -d ${D}${datadir}/ogre3d/Media 
+	cp -r ${S}/Samples/Media/* ${D}${datadir}/ogre3d/Media/
+	find ${D} -name ".svn" | xargs rm -rf
+}
+
+PACKAGES += "${PN}-samples"
+
+FILES_${PN}-samples = "${datadir}/ogre3d/"
+FILES_${PN}-dbg += "${libdir}/OGRE/.debug ${datadir}/ogre3d/samples/*/*/.debug"
 FILES_${PN}-dev += "${libdir}/OGRE/*.la"
 FILES_${PN} += "${libdir}/libOgreMain-*.so ${libdir}/OGRE/*.so"
 





More information about the Openembedded-commits mailing list