generic-poky/meta/classes/sdl.bbclass
Richard Purdie b772c8cde5 bitbake.conf/base.bbclass: Rename the staging directory to sysroots and the populate_staging task to populate_sysroot
This change makes the purpose of the staging directory more obvious and
the taskname more true to what it now actually does.

The layout version number is increased due to the change in layout
but code to convert existing directories and insert a symlink for
backwards compatibility is included.

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-13 12:15:42 +00:00

45 lines
1.1 KiB
Text

#
# (C) Michael 'Mickey' Lauer <mickey@Vanille.de>
#
DEPENDS += "virtual/libsdl libsdl-mixer libsdl-image"
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
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=${PN}.png
Type=Application
Name=${PN}
EOF
fi
}
EXPORT_FUNCTIONS do_sdl_install
addtask sdl_install after do_compile before do_populate_sysroot
SECTION = "x11/games"
SECTION_${PN}-opie = "opie/games"
PACKAGES += "${PN}-opie"
RDEPENDS_${PN}-opie += "${PN}"
FILES_${PN}-opie = "${palmtopdir}"