summaryrefslogtreecommitdiff
path: root/powermanga
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openembedded.org>2004-09-17 13:40:21 +0000
committerMarcin Juszkiewicz <hrw@openembedded.org>2004-09-17 13:40:21 +0000
commit07cf8a03436aafd3ed3177fbbb44994b7c2dd9b2 (patch)
tree4f0bba9519b7d2d3b87ec2541a4ffef30dd83d5c /powermanga
parent5419165190f46335cc9a2dce9dd582d22dedf03e (diff)
Merge bk://openembedded@openembedded.bkbits.net/packages
into marcinj.local:/home/hrw/zaurus/oe/packages 2004/09/17 15:40:05+02:00 local!hrw powermanga: workaround \r strip BKrev: 414ae945-4OVuZsq9ybOS0jJT9sdCQ
Diffstat (limited to 'powermanga')
-rw-r--r--powermanga/powermanga-0.79/linuxroutines.cpp0
-rw-r--r--powermanga/powermanga-0.79/pda-tweaks.patch15
-rw-r--r--powermanga/powermanga_0.79.oe37
3 files changed, 37 insertions, 15 deletions
diff --git a/powermanga/powermanga-0.79/linuxroutines.cpp b/powermanga/powermanga-0.79/linuxroutines.cpp
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/powermanga/powermanga-0.79/linuxroutines.cpp
diff --git a/powermanga/powermanga-0.79/pda-tweaks.patch b/powermanga/powermanga-0.79/pda-tweaks.patch
index bf88a3003a..971eff9216 100644
--- a/powermanga/powermanga-0.79/pda-tweaks.patch
+++ b/powermanga/powermanga-0.79/pda-tweaks.patch
@@ -1,18 +1,3 @@
-# \r\n is important sometime
-#
-# Patch managed by http://www.holgerschurig.de/patcher.html
-#
-
---- powermanga-0.79/src/linuxroutines.cpp~pda-tweaks
-+++ powermanga-0.79/src/linuxroutines.cpp
-@@ -440,6 +440,7 @@
- //------------------------------------------------------------------------------
- static const char *data_directories[]=
- { ".", // Normally unused, except when running from the source directory...
-+ "/opt/QtPalmtop/share/games/powermanga/",
- 0 // Special value meaning "$(PREFIX)/share/games/powermanga/"
- // Also marks end of list
- };
--- powermanga-0.79/src/main.cpp~pda-tweaks
+++ powermanga-0.79/src/main.cpp
@@ -211,8 +211,8 @@
diff --git a/powermanga/powermanga_0.79.oe b/powermanga/powermanga_0.79.oe
index e69de29bb2..c3580bc45b 100644
--- a/powermanga/powermanga_0.79.oe
+++ b/powermanga/powermanga_0.79.oe
@@ -0,0 +1,37 @@
+DESCRIPTION = "Powermanga is an arcade 2D shoot-em-up game with 41 levels and more than 200 sprites."
+SECTION = "opie/games"
+PRIORITY = "optional"
+MAINTAINER = "Chris Lord <cwiiis@handhelds.org>"
+LICENSE = "GPL"
+DEPENDS = "virtual/libsdl libsdl-mixer"
+
+SRC_URI = "http://linux.tlk.fr/games/Powermanga/download/powermanga-0.79.tgz \
+ file://linuxroutines.cpp \
+ file://pda-tweaks.patch;patch=1 \
+ file://powermanga.pro \
+ file://powermanga.png \
+ file://powermanga.desktop"
+
+S = ${WORKDIR}/${PN}-${PV}/
+
+inherit palmtop
+
+do_configure_prepend() {
+ mv ${WORKDIR}/linuxroutines.cpp ${S}/src/
+ mv ${WORKDIR}/powermanga.pro ${S}/
+ rm -f `find ${S}/ -name Makefile\*`
+ rm -f `find ${S}/ -name config\*`
+}
+
+do_install() {
+ install -d ${D}/${palmtopdir}/bin \
+ ${D}/${palmtopdir}/pics \
+ ${D}/${palmtopdir}/apps/Games \
+ ${D}/${palmtopdir}/share/games/powermanga/graphics \
+ ${D}/${palmtopdir}/share/games/powermanga/sounds
+ install -m 0755 ${S}/src/powermanga ${D}${palmtopdir}/bin/powermanga
+ install -m 0644 ${WORKDIR}/powermanga.png ${D}${palmtopdir}/pics/powermanga.png
+ install -m 0644 ${WORKDIR}/powermanga.desktop ${D}${palmtopdir}/apps/Games/powermanga.desktop
+ install -m 0644 ${S}/graphics/* ${D}${palmtopdir}/share/games/powermanga/graphics/
+ install -m 0644 ${S}/sounds/* ${D}${palmtopdir}/share/games/powermanga/sounds/
+}