diff options
author | Michael Lauer <mickey@vanille-media.de> | 2006-04-22 17:47:00 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2006-04-22 17:47:00 +0000 |
commit | c40c7c561ae82dd2be070aaf80a073d6add46833 (patch) | |
tree | 0a65ddfa68b3f51366754e109f189d2065a4778f /classes | |
parent | ba6aaea0b204aa8e8d27f28abb9ea13b6a59ef37 (diff) |
sdl.bbclass: remove bogus stuff that was present before
first shot at an sdl class to remove the need for seperate
SDL-x11 and SDL-opie bbfiles. For now, it adds an extra package
${PN}-opie that RDEPENDS on ${PN} and adds the necessary opie .desktop glue
Diffstat (limited to 'classes')
-rw-r--r-- | classes/sdl.bbclass | 57 |
1 files changed, 35 insertions, 22 deletions
diff --git a/classes/sdl.bbclass b/classes/sdl.bbclass index 541812ed93..75f6ea8f26 100644 --- a/classes/sdl.bbclass +++ b/classes/sdl.bbclass @@ -1,27 +1,40 @@ -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_install () { - oe_runmake install_vendor +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/${APPIMAGE} + + if [ -e "${APPDESKTOP}" ] + then + install -m 0644 ${APPDESKTOP} ${D}${palmtopdir}/Games/${APPDESKTOP} + 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 + +PACKAGES += "${PN}-opie" +RDEPENDS_${PN}-opie += "${PN}" +FILES_${PN}-opie = "${palmtopdir}" |