blob: 75f6ea8f269d72a65ed30f42cd9a8d3a0067609d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
#
# (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/${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_sdl_install
addtask sdl_install after do_compile before do_populate_staging
PACKAGES += "${PN}-opie"
RDEPENDS_${PN}-opie += "${PN}"
FILES_${PN}-opie = "${palmtopdir}"
|