2 # (C) Michael 'Mickey' Lauer <mickey@Vanille.de>
5 DEPENDS += "virtual/libsdl libsdl-mixer libsdl-image"
7 APPDESKTOP ?= "${WORKDIR}/${PN}.desktop"
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}" ]
21 echo ${APPDESKTOP} present, using it...
22 install -m 0644 ${APPDESKTOP} ${D}${datadir}/applications/
24 echo ${APPDESKTOP} not present, creating one on-the-fly...
25 cat >${D}${datadir}/applications/${PN}.desktop <<EOF
28 Comment=${DESCRIPTION}
29 Note=Auto Generated by OE SDL bbclass
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}"