summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2006-05-16 21:53:04 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-05-16 21:53:04 +0000
commite0392802cf95d1992986323be9596edfad6aefa5 (patch)
tree7c6a3cf42d6dbc4bdf8b0714f0a6da77919e378b
parent487930053e7f2d515c80e6d7de0e4cb4705e96b0 (diff)
pipepanic: fix datadir to look in /usr/share/pipepanic, ship pixmaps
-rw-r--r--packages/pipepanic/files/.mtn2git_empty0
-rw-r--r--packages/pipepanic/files/fix-datadir.patch16
-rw-r--r--packages/pipepanic/pipepanic_0.1.1.bb7
3 files changed, 22 insertions, 1 deletions
diff --git a/packages/pipepanic/files/.mtn2git_empty b/packages/pipepanic/files/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/pipepanic/files/.mtn2git_empty
diff --git a/packages/pipepanic/files/fix-datadir.patch b/packages/pipepanic/files/fix-datadir.patch
new file mode 100644
index 0000000000..b7df38a3fb
--- /dev/null
+++ b/packages/pipepanic/files/fix-datadir.patch
@@ -0,0 +1,16 @@
+
+#
+# Patch managed by http://www.holgerschurig.de/patcher.html
+#
+
+--- pipepanic-0.1.1-source/main.h~fix-datadir
++++ pipepanic-0.1.1-source/main.h
+@@ -20,7 +20,7 @@
+ #define FALSE 0
+ #define TRUE 1
+ #define VERSION "0.1.1"
+-#define DATADIR "/opt/QtPalmtop/share/pipepanic/"
++#define DATADIR "/usr/share"
+ #define DIGITS24BMP "digits24.bmp"
+ #define DIGITS48BMP "digits48.bmp"
+ #define TILES24BMP "tiles24.bmp"
diff --git a/packages/pipepanic/pipepanic_0.1.1.bb b/packages/pipepanic/pipepanic_0.1.1.bb
index ac54f119a4..9538f8b547 100644
--- a/packages/pipepanic/pipepanic_0.1.1.bb
+++ b/packages/pipepanic/pipepanic_0.1.1.bb
@@ -3,8 +3,10 @@ Connect as many different shaped pipes together as possible within the time give
HOMEPAGE = "http://www.users.waitrose.com/~thunor/pipepanic/"
LICENSE = "GPL"
MAINTAINER = "Michael 'Mickey' Lauer <mickey@Vanille.de>"
+PR = "r1"
-SRC_URI = "http://www.users.waitrose.com/~thunor/pipepanic/dload/pipepanic-${PV}-source.tar.gz"
+SRC_URI = "http://www.users.waitrose.com/~thunor/pipepanic/dload/pipepanic-${PV}-source.tar.gz \
+ file://fix-datadir.patch;patch=1"
S = "${WORKDIR}/pipepanic-0.1.1-source"
APPIMAGE = "zaurus/pipepanic.png"
@@ -19,5 +21,8 @@ do_compile() {
do_install() {
install -d ${D}${bindir}
install -m 0755 pipepanic ${D}${bindir}
+
+ install -d ${D}${datadir}/pipepanic
+ install -m 0644 *.bmp ${D}${datadir}/pipepanic/
}