aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/pipepanic
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/pipepanic')
-rw-r--r--recipes/pipepanic/files/fix-datadir.patch16
-rw-r--r--recipes/pipepanic/pipepanic_0.1.1.bb27
2 files changed, 43 insertions, 0 deletions
diff --git a/recipes/pipepanic/files/fix-datadir.patch b/recipes/pipepanic/files/fix-datadir.patch
new file mode 100644
index 0000000000..479b266efe
--- /dev/null
+++ b/recipes/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/pipepanic/"
+ #define DIGITS24BMP "digits24.bmp"
+ #define DIGITS48BMP "digits48.bmp"
+ #define TILES24BMP "tiles24.bmp"
diff --git a/recipes/pipepanic/pipepanic_0.1.1.bb b/recipes/pipepanic/pipepanic_0.1.1.bb
new file mode 100644
index 0000000000..91d53b9524
--- /dev/null
+++ b/recipes/pipepanic/pipepanic_0.1.1.bb
@@ -0,0 +1,27 @@
+DESCRIPTION = "Pipepanic is a pipe connecting game using libSDL. \
+Connect as many different shaped pipes together as possible within the time given."
+HOMEPAGE = "http://www.users.waitrose.com/~thunor/pipepanic/"
+LICENSE = "GPL"
+PR = "r2"
+
+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"
+APPDESKTOP = "zaurus/pipenaic.desktop"
+
+inherit sdl
+
+do_compile() {
+ oe_runmake CC="${CC}" CFLAGS="${CFLAGS}" LINK="${CCLD}" LDFLAGS="${LDFLAGS} -Wl,-rpath-link,${STAGING_LIBDIR}/../qt2/lib"
+}
+
+do_install() {
+ install -d ${D}${bindir}
+ install -m 0755 pipepanic ${D}${bindir}
+
+ install -d ${D}${datadir}/pipepanic
+ install -m 0644 *.bmp ${D}${datadir}/pipepanic/
+}
+