summaryrefslogtreecommitdiff
path: root/packages/kobodeluxe/kobodeluxe_0.5.1.bb
diff options
context:
space:
mode:
authorRobert Schuster <thebohemian@gmx.net>2008-02-12 00:30:46 +0000
committerRobert Schuster <thebohemian@gmx.net>2008-02-12 00:30:46 +0000
commit4a0a8f2bbfcec5145178091c5703be7f5dfc034c (patch)
treefe94109b28c038c46ce5d0320b8cbc7ed31e1785 /packages/kobodeluxe/kobodeluxe_0.5.1.bb
parent9a5744657866150cbaf433bd3b32253fe26421ea (diff)
kobodeluxe: Fixed and patches.
- provide default configuration file - added patch that makes use of a default config file - wire device screen size into default config file - added a patch that allows complete game control with touchscreen - added a patch that automatically swaps display dimensions at startup
Diffstat (limited to 'packages/kobodeluxe/kobodeluxe_0.5.1.bb')
-rw-r--r--packages/kobodeluxe/kobodeluxe_0.5.1.bb26
1 files changed, 23 insertions, 3 deletions
diff --git a/packages/kobodeluxe/kobodeluxe_0.5.1.bb b/packages/kobodeluxe/kobodeluxe_0.5.1.bb
index 25f2f3ceb6..cc3f85bd19 100644
--- a/packages/kobodeluxe/kobodeluxe_0.5.1.bb
+++ b/packages/kobodeluxe/kobodeluxe_0.5.1.bb
@@ -5,7 +5,7 @@ LICENSE = "GPL"
AUTHOR = "David Olofson <david@olofson.net>"
HOMEPAGE = "http://olofson.net/kobodl"
-PR = "r1"
+PR = "r3"
DEPENDS = "libsdl-image virtual/libsdl"
@@ -13,7 +13,11 @@ RDEPENDS_${PN} = "${PN}-data"
SRC_URI = "http://olofson.net/kobodl/download/KoboDeluxe-${PV}.tar.bz2 \
file://debian-kobo.patch;patch=1 \
- file://buildfix.patch;patch=1 \
+ file://kobodeluxe-putenv.patch;patch=1 \
+ file://kobodeluxe-sysconf-support.patch;patch=1 \
+ file://kobodeluxe-menu-pointer.patch;patch=1 \
+ file://kobodeluxe-dimension-autoswap.patch;patch=1 \
+ file://default-config \
"
S = "${WORKDIR}/KoboDeluxe-${PV}"
@@ -22,10 +26,26 @@ inherit autotools
export SDL_CONFIG = "${STAGING_BINDIR_CROSS}/sdl-config"
-EXTRA_OECONF = "--disable-opengl --disable-sdltest"
+EXTRA_OECONF = "--disable-opengl --disable-sdltest --enable-touchscreen"
+
+do_configure_prepend() {
+ sed -i \
+ -e "s|width WIDTH_HERE|width ${MACHINE_DISPLAY_WIDTH_PIXELS}|" \
+ -e "s|height HEIGHT_HERE|height ${MACHINE_DISPLAY_HEIGHT_PIXELS}|" \
+ ${WORKDIR}/default-config
+}
+
+do_install_append() {
+ # Provide a default (working) configuration file
+ install -d ${D}${sysconfdir}/kobo-deluxe
+ install -m 755 ${WORKDIR}/default-config ${D}${sysconfdir}/kobo-deluxe
+}
PACKAGES += "${PN}-data"
+FILES_${PN} += "${sysconfdir}"
+CONFFILES_${PN} = "${sysconfdir}/kobo-deluxe/default-config"
+
FILES_${PN}-data = "${datadir}"
PACKAGE_ARCH_${PN}-data = "all"