python-wpactrl: add 1.0.1
[openembedded.git] / classes / sdl.bbclass
blobdc4cd8ffa2fc2ad5f22276a2b2ee57e584dcd5af
2 # (C) Michael 'Mickey' Lauer <mickey@Vanille.de>
5 DEPENDS += "virtual/libsdl libsdl-mixer libsdl-image"
7 APPDESKTOP ?= "${WORKDIR}/${PN}.desktop"
8 APPNAME ?= "${PN}"
9 APPIMAGE ?= "${WORKDIR}/${PN}.png"
11 export SDL_CONFIG = "${STAGING_BINDIR_CROSS}/sdl-config"
13 sdl_do_sdl_install() {
14         install -d ${D}${datadir}/applications
15         install -d ${D}${datadir}/pixmaps
17         install -m 0644 ${APPIMAGE} ${D}${datadir}/pixmaps/${PN}.png
19         if [ -e "${APPDESKTOP}" ]
20         then
21                 echo ${APPDESKTOP} present, using it...
22                 install -m 0644 ${APPDESKTOP} ${D}${datadir}/applications/
23         else
24                 echo ${APPDESKTOP} not present, creating one on-the-fly...
25                 cat >${D}${datadir}/applications/${PN}.desktop <<EOF
26 [Desktop Entry]
27 Name=${PN}
28 Comment=${DESCRIPTION}
29 Note=Auto Generated by OE SDL bbclass
30 Exec=${APPNAME}
31 Icon=${PN}.png
32 Type=Application
33 Categories=Games
34 EOF
35         fi
38 EXPORT_FUNCTIONS do_sdl_install
39 addtask sdl_install after do_install before do_package
41 #SECTION = "x11/games"
42 #SECTION_${PN}-opie = "opie/games"
44 #PACKAGES += "${PN}-opie"
45 #RDEPENDS_${PN}-opie += "${PN}"
46 #FILES_${PN}-opie = "${palmtopdir}"