summaryrefslogtreecommitdiffstats
path: root/meta/classes/sdl.bbclass
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2012-02-14 13:22:26 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-02-21 17:00:46 +0000
commit362fd558feb35c46b865022f843bd5e5a62e3a13 (patch)
treee69bb30910d5d591833176a6488ee68d7c823aa0 /meta/classes/sdl.bbclass
parent8a31618c3588761aef5b0ccbbcea481462d724e8 (diff)
downloadpoky-362fd558feb35c46b865022f843bd5e5a62e3a13.tar.gz
classes/sdl: remove Opie-specific desktop file/packaging
This code will not work without palmtopdir being defined, and is better kept in meta-opie in any case (where we already have the OE-Classic version of this class). (From OE-Core rev: e45b0672e28d19cfb66c9e57e153ef15e004dcaf) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/sdl.bbclass')
-rw-r--r--meta/classes/sdl.bbclass38
1 files changed, 0 insertions, 38 deletions
diff --git a/meta/classes/sdl.bbclass b/meta/classes/sdl.bbclass
index a412ccbe0e..cc31288f61 100644
--- a/meta/classes/sdl.bbclass
+++ b/meta/classes/sdl.bbclass
@@ -3,42 +3,4 @@
3# 3#
4 4
5DEPENDS += "virtual/libsdl libsdl-mixer libsdl-image" 5DEPENDS += "virtual/libsdl libsdl-mixer libsdl-image"
6
7APPDESKTOP ?= "${PN}.desktop"
8APPNAME ?= "${PN}"
9APPIMAGE ?= "${PN}.png"
10
11sdl_do_sdl_install() {
12 install -d ${D}${palmtopdir}/bin
13 install -d ${D}${palmtopdir}/pics
14 install -d ${D}${palmtopdir}/apps/Games
15 ln -sf ${bindir}/${APPNAME} ${D}${palmtopdir}/bin/${APPNAME}
16 install -m 0644 ${APPIMAGE} ${D}${palmtopdir}/pics/${PN}.png
17
18 if [ -e "${APPDESKTOP}" ]
19 then
20 echo ${APPDESKTOP} present, installing to palmtopdir...
21 install -m 0644 ${APPDESKTOP} ${D}${palmtopdir}/apps/Games/${PN}.desktop
22 else
23 echo ${APPDESKTOP} not present, creating one on-the-fly...
24 cat >${D}${palmtopdir}/apps/Games/${PN}.desktop <<EOF
25[Desktop Entry]
26Note=Auto Generated... this may be not what you want
27Comment=${DESCRIPTION}
28Exec=${APPNAME}
29Icon=${PN}.png
30Type=Application
31Name=${PN}
32EOF
33 fi
34}
35
36EXPORT_FUNCTIONS do_sdl_install
37addtask sdl_install after do_compile before do_populate_sysroot
38
39SECTION = "x11/games" 6SECTION = "x11/games"
40SECTION_${PN}-opie = "opie/games"
41
42PACKAGES += "${PN}-opie"
43RDEPENDS_${PN}-opie += "${PN}"
44FILES_${PN}-opie = "${palmtopdir}"