summaryrefslogtreecommitdiff
path: root/openembedded/classes/sdl.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2006-05-09 16:10:46 +0000
committerRichard Purdie <richard@openedhand.com>2006-05-09 16:10:46 +0000
commit189b9a916b845c90db5e51f62496a13f60936d36 (patch)
treee9227d9f63eea070317afffd41cbcdfed018753f /openembedded/classes/sdl.bbclass
parent8d41bd1c8f4c36ed9c1c73e0586031af8a0f292c (diff)
downloadopenembedded-core-189b9a916b845c90db5e51f62496a13f60936d36.tar.gz
openembedded-core-189b9a916b845c90db5e51f62496a13f60936d36.tar.bz2
openembedded-core-189b9a916b845c90db5e51f62496a13f60936d36.tar.xz
openembedded-core-189b9a916b845c90db5e51f62496a13f60936d36.zip
Sync bbclass files with OE
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@374 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'openembedded/classes/sdl.bbclass')
-rw-r--r--openembedded/classes/sdl.bbclass61
1 files changed, 39 insertions, 22 deletions
diff --git a/openembedded/classes/sdl.bbclass b/openembedded/classes/sdl.bbclass
index 541812ed9..c0b21427a 100644
--- a/openembedded/classes/sdl.bbclass
+++ b/openembedded/classes/sdl.bbclass
@@ -1,27 +1,44 @@
-FILES_${PN} += '${libdir}/perl5'
+#
+# (C) Michael 'Mickey' Lauer <mickey@Vanille.de>
+#
-sdl_do_configure () {
- if [ -x ${S}/configure ] ; then
- cfgcmd="${S}/configure \
- -GL -GLU"
- oenote "Running $cfgcmd..."
- $cfgcmd || oefatal "oe_runconf failed"
- if [ "${BUILD_SYS}" != "${HOST_SYS}" ]; then
- . ${STAGING_DIR}/${TARGET_SYS}/perl/config.sh
- sed -e "s:\(SITELIBEXP = \).*:\1${sitelibexp}:; s:\(SITEARCHEXP = \).*:\1${sitearchexp}:; s:\(INSTALLVENDORLIB = \).*:\1${D}${libdir}/perl5:; s:\(INSTALLVENDORARCH = \).*:\1${D}${libdir}/perl5:" < Makefile > Makefile.new
- mv Makefile.new Makefile
- fi
- else
- oefatal "no configure script found"
- fi
-}
+DEPENDS += "virtual/libsdl libsdl-mixer libsdl-image"
-sdl_do_compile () {
- oe_runmake PASTHRU_INC="${CFLAGS}"
-}
+APPDESKTOP ?= "${PN}.desktop"
+APPNAME ?= "${PN}"
+APPIMAGE ?= "${PN}.png"
+
+sdl_do_sdl_install() {
+ install -d ${D}${palmtopdir}/bin
+ install -d ${D}${palmtopdir}/pics
+ install -d ${D}${palmtopdir}/apps/Games
+ ln -sf ${bindir}/${APPNAME} ${D}${palmtopdir}/bin/${APPNAME}
+ install -m 0644 ${APPIMAGE} ${D}${palmtopdir}/pics/${PN}.png
-sdl_do_install () {
- oe_runmake install_vendor
+ if [ -e "${APPDESKTOP}" ]
+ then
+ echo ${APPDESKTOP} present, installing to palmtopdir...
+ install -m 0644 ${APPDESKTOP} ${D}${palmtopdir}/apps/Games/${PN}.desktop
+ else
+ echo ${APPDESKTOP} not present, creating one on-the-fly...
+ cat >${D}${palmtopdir}/apps/Games/${PN}.desktop <<EOF
+[Desktop Entry]
+Note=Auto Generated... this may be not what you want
+Comment=${DESCRIPTION}
+Exec=${APPNAME}
+Icon=${APPIMAGE}
+Type=Application
+Name=${PN}
+EOF
+ fi
}
-EXPORT_FUNCTIONS do_configure do_compile do_install
+EXPORT_FUNCTIONS do_sdl_install
+addtask sdl_install after do_compile before do_populate_staging
+
+SECTION = "x11/games"
+SECTION_${PN}-opie = "opie/games"
+
+PACKAGES += "${PN}-opie"
+RDEPENDS_${PN}-opie += "${PN}"
+FILES_${PN}-opie = "${palmtopdir}"