summaryrefslogtreecommitdiff
path: root/packages/nonworking/gnuboy
diff options
context:
space:
mode:
Diffstat (limited to 'packages/nonworking/gnuboy')
-rw-r--r--packages/nonworking/gnuboy/.mtn2git_empty0
-rw-r--r--packages/nonworking/gnuboy/qtopiagnuboy-1.0.3/.mtn2git_empty0
-rw-r--r--packages/nonworking/gnuboy/qtopiagnuboy-1.0.3/gcc3.patch71
-rw-r--r--packages/nonworking/gnuboy/qtopiagnuboy-1.0.3/qtopiagnuboyl-hwkeys.patch63
-rw-r--r--packages/nonworking/gnuboy/qtopiagnuboy_1.0.3.bb33
5 files changed, 167 insertions, 0 deletions
diff --git a/packages/nonworking/gnuboy/.mtn2git_empty b/packages/nonworking/gnuboy/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/nonworking/gnuboy/.mtn2git_empty
diff --git a/packages/nonworking/gnuboy/qtopiagnuboy-1.0.3/.mtn2git_empty b/packages/nonworking/gnuboy/qtopiagnuboy-1.0.3/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/nonworking/gnuboy/qtopiagnuboy-1.0.3/.mtn2git_empty
diff --git a/packages/nonworking/gnuboy/qtopiagnuboy-1.0.3/gcc3.patch b/packages/nonworking/gnuboy/qtopiagnuboy-1.0.3/gcc3.patch
index e69de29bb2..4743863d6e 100644
--- a/packages/nonworking/gnuboy/qtopiagnuboy-1.0.3/gcc3.patch
+++ b/packages/nonworking/gnuboy/qtopiagnuboy-1.0.3/gcc3.patch
@@ -0,0 +1,71 @@
+
+#
+# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
+#
+
+--- gnuboy/gnuboy-1.0.3-qtopia2/loader.c~gcc3 2001-12-06 06:51:21.000000000 +0100
++++ gnuboy/gnuboy-1.0.3-qtopia2/loader.c 2003-12-07 21:29:56.000000000 +0100
+@@ -11,8 +11,6 @@
+ #include <stdlib.h>
+ #include <string.h>
+
+-char *strdup();
+-
+ static int mbc_table[256] =
+ {
+ 0, 1, 1, 1, 0, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 3,
+--- gnuboy/gnuboy-1.0.3-qtopia2/main.c~gcc3 2001-09-24 02:17:56.000000000 +0200
++++ gnuboy/gnuboy-1.0.3-qtopia2/main.c 2003-12-07 21:29:56.000000000 +0100
+@@ -7,9 +7,6 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+-
+-char *strdup();
+-
+ #include <stdarg.h>
+ #include <signal.h>
+
+--- gnuboy/gnuboy-1.0.3-qtopia2/rckeys.c~gcc3 2001-09-23 19:58:48.000000000 +0200
++++ gnuboy/gnuboy-1.0.3-qtopia2/rckeys.c 2003-12-07 21:29:56.000000000 +0100
+@@ -4,8 +4,6 @@
+ #include <stdlib.h>
+ #include <string.h>
+
+-char *strdup();
+-
+ #include "defs.h"
+ #include "rc.h"
+ #include "input.h"
+--- gnuboy/gnuboy-1.0.3-qtopia2/rcvars.c~gcc3 2001-09-23 19:59:02.000000000 +0200
++++ gnuboy/gnuboy-1.0.3-qtopia2/rcvars.c 2003-12-07 21:29:56.000000000 +0100
+@@ -5,8 +5,6 @@
+ #include <stdlib.h>
+ #include <string.h>
+
+-char *strdup();
+-
+ #include "defs.h"
+ #include "rc.h"
+
+--- gnuboy/gnuboy-1.0.3-qtopia2/path.c~gcc3 2001-09-23 19:58:42.000000000 +0200
++++ gnuboy/gnuboy-1.0.3-qtopia2/path.c 2003-12-07 21:29:56.000000000 +0100
+@@ -5,8 +5,6 @@
+ #include <stdlib.h>
+ #include <string.h>
+
+-char *strdup();
+-
+ #ifdef ALT_PATH_SEP
+ #define SEP ';'
+ #else
+--- gnuboy/gnuboy-1.0.3-qtopia2/sys/oss/oss.c~gcc3 2001-09-23 20:01:10.000000000 +0200
++++ gnuboy/gnuboy-1.0.3-qtopia2/sys/oss/oss.c 2003-12-07 21:30:43.000000000 +0100
+@@ -2,7 +2,6 @@
+
+ #include <stdlib.h>
+ #include <string.h>
+-char *strdup();
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <fcntl.h>
diff --git a/packages/nonworking/gnuboy/qtopiagnuboy-1.0.3/qtopiagnuboyl-hwkeys.patch b/packages/nonworking/gnuboy/qtopiagnuboy-1.0.3/qtopiagnuboyl-hwkeys.patch
index e69de29bb2..ef47e56e63 100644
--- a/packages/nonworking/gnuboy/qtopiagnuboy-1.0.3/qtopiagnuboyl-hwkeys.patch
+++ b/packages/nonworking/gnuboy/qtopiagnuboy-1.0.3/qtopiagnuboyl-hwkeys.patch
@@ -0,0 +1,63 @@
+--- gnuboy/qtopiagnuboyl/main.cpp~qtopiagnuboyl-hwkeys 2002-02-19 22:06:57.000000000 -0600
++++ gnuboy/qtopiagnuboyl/main.cpp 2003-04-03 08:57:35.000000000 -0600
+@@ -8,6 +8,14 @@
+ QtopiaGnuboyL mainWin(NULL, "mainWin");
+
+ app.showMainWidget(&mainWin);
+-
+- return app.exec();
++ app.grabKeyboard();
++ if (app.exec()) {
++ app.grabKeyboard();
++ app.ungrabKeyboard();
++ return 1;
++ } else {
++ app.grabKeyboard();
++ app.ungrabKeyboard();
++ return 0;
++ }
+ }
+--- gnuboy/gnuboy-1.0.3-qtopia2/sys/qtopia/mainwindow.cpp~qtopiagnuboyl-hwkeys 2001-12-27 07:46:03.000000000 -0600
++++ gnuboy/gnuboy-1.0.3-qtopia2/sys/qtopia/mainwindow.cpp 2003-04-03 08:58:52.000000000 -0600
+@@ -2,6 +2,8 @@
+
+ #include <qevent.h>
+
++#include <qpe/qpeapplication.h>
++
+ #include "mainwidget.h"
+ #include "mainwindow.h"
+
+@@ -12,6 +14,8 @@
+
+ m_DisplayWidget->setBackgroundColor(black);
+ m_DisplayWidget->setFocus();
++
++ QPEApplication::grabKeyboard();
+
+ setCentralWidget(m_DisplayWidget);
+ }
+@@ -24,6 +28,8 @@
+ {
+ if (m_DisplayWidget)
+ m_DisplayWidget->close();
++
++ QPEApplication::ungrabKeyboard();
+
+ e->ignore();
+ QMainWindow::closeEvent(e);
+--- gnuboy/gnuboy-1.0.3-qtopia2/sys/qtopia/mainwidget.cpp~qtopiagnuboyl-hwkeys 2001-12-27 07:46:03.000000000 -0600
++++ gnuboy/gnuboy-1.0.3-qtopia2/sys/qtopia/mainwidget.cpp 2003-04-03 08:58:52.000000000 -0600
+@@ -16,9 +16,9 @@
+ m_Keymap[(int)Qt::Key_Up] = K_UP;
+ m_Keymap[(int)Qt::Key_Down] = K_DOWN;
+ m_Keymap[(int)Qt::Key_Enter] = K_ENTER;
+- m_Keymap[(int)Qt::Key_Return] = K_ENTER; // start
+- m_Keymap[Qt::Key_L] = (int)'s'; // b
+- m_Keymap[Qt::Key_J] = (int)'d'; // a
++ m_Keymap[(int)Qt::Key_F12] = K_ENTER; // start
++ m_Keymap[Qt::Key_F10] = (int)'s'; // b
++ m_Keymap[Qt::Key_F9] = (int)'d'; // a
+ m_Keymap[Qt::Key_Space] = K_SPACE; // select
+ }
+
diff --git a/packages/nonworking/gnuboy/qtopiagnuboy_1.0.3.bb b/packages/nonworking/gnuboy/qtopiagnuboy_1.0.3.bb
index e69de29bb2..d93fc7f217 100644
--- a/packages/nonworking/gnuboy/qtopiagnuboy_1.0.3.bb
+++ b/packages/nonworking/gnuboy/qtopiagnuboy_1.0.3.bb
@@ -0,0 +1,33 @@
+DESCRIPTION = "GameBoy Emulator based on SDL, QtE based Palmtop Environments Edition"
+SECTION = "base"
+PRIORITY = "optional"
+DEPENDS = "libsdl-qpe"
+
+SRC_URI = "http://www.warmi.net/zaurus/files/gnuboy-${PV}-qtopia3.tar.gz \
+ file://qtopiagnuboyl-hwkeys.patch;patch=1 \
+ file://gcc3.patch;patch=1"
+S = "${WORKDIR}/gnuboy"
+
+FILES = ""
+FILES_${PN} = "${palmtopdir}/"
+
+inherit qmake-base
+
+qtopiadir = "${S}/gnuboy-${PV}-qtopia2"
+
+do_compile() {
+ cd ${qtopiadir}
+ oe_runmake -f Makefile.qtopia SYS_INCS="-DQWS -I${qtopiadir}/sys/nix" CXXFLAGS="${CXXFLAGS} -DQWS -fno-rtti -fno-exceptions" \
+ QTOPIA_LIBS="-L${STAGING_LIBDIR} -Wl,-rpath-link,${STAGING_LIBDIR} -lqpe -lqte" LD="${CC}"
+ cd ${S}/qtopiagnuboyl
+ ${QMAKE} -spec ${QMAKESPEC} -after ${EXTRA_QMAKEVARS_POST} qtopiagnuboyl.pro
+ oe_runmake CXXFLAGS="${CXXFLAGS} -DQWS -fno-rtti -fno-exceptions"
+}
+
+do_install() {
+ install -m 755 -d ${D}${palmtopdir}/
+ install -m 755 -D qpe/bin/qtopiagnuboy ${D}${palmtopdir}/bin/qtopiagnuboy
+ install -m 755 -D qpe/bin/qtopiagnuboyl ${D}${palmtopdir}/bin/qtopiagnuboyl
+ install -m 644 -D qpe/pics/Gnuboy.png ${D}${palmtopdir}/pics/Gnuboy.png
+ install -m 644 -D qpe/apps/Games/qtopiagnuboy.desktop ${D}${palmtopdir}/Games/qtopiagnuboy.desktop
+}