summaryrefslogtreecommitdiff
path: root/packages/insttrain
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2005-06-30 08:19:37 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-06-30 08:19:37 +0000
commitc8e5702127e507e82e6f68a4b8c546803accea9d (patch)
tree00583491f40ecc640f2b28452af995e3a63a09d7 /packages/insttrain
parent87ec8ca4d2e2eb4d1c1e1e1a6b46a395d56805b9 (diff)
import clean BK tree at cset 1.3670
Diffstat (limited to 'packages/insttrain')
-rw-r--r--packages/insttrain/.mtn2git_empty0
-rw-r--r--packages/insttrain/files/.mtn2git_empty0
-rw-r--r--packages/insttrain/files/gcc3.patch33
-rw-r--r--packages/insttrain/insttrain_1.0.5.bb20
4 files changed, 53 insertions, 0 deletions
diff --git a/packages/insttrain/.mtn2git_empty b/packages/insttrain/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/insttrain/.mtn2git_empty
diff --git a/packages/insttrain/files/.mtn2git_empty b/packages/insttrain/files/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/insttrain/files/.mtn2git_empty
diff --git a/packages/insttrain/files/gcc3.patch b/packages/insttrain/files/gcc3.patch
index e69de29bb2..c2e2af0c5e 100644
--- a/packages/insttrain/files/gcc3.patch
+++ b/packages/insttrain/files/gcc3.patch
@@ -0,0 +1,33 @@
+
+#
+# Patch managed by http://www.holgerschurig.de/patcher.html
+#
+
+--- src/top.cpp~gcc3
++++ src/top.cpp
+@@ -18,6 +18,7 @@
+ //static char rcsid[] = "$Id: top.cpp,v 1.1 2002/10/06 04:17:00 bjj Rel $";
+
+ #include "top.h"
++#include <qapplication.h>
+ #include <qmenubar.h>
+ #include <qpopupmenu.h>
+ #include <qframe.h>
+@@ -90,7 +91,7 @@
+ }
+
+
+-Top::Top(QWidget *parent = 0, const char *name = 0, WFlags f = WType_TopLevel)
++Top::Top(QWidget *parent, const char *name, WFlags f)
+ : QMainWindow(parent, name, f)
+ {
+ setCaption("Instrument Trainer");
+@@ -172,7 +173,7 @@
+ void
+ Top::Exit()
+ {
+- exit(0);
++ qApp->quit();
+ }
+
+ void
diff --git a/packages/insttrain/insttrain_1.0.5.bb b/packages/insttrain/insttrain_1.0.5.bb
index e69de29bb2..7c163cbac3 100644
--- a/packages/insttrain/insttrain_1.0.5.bb
+++ b/packages/insttrain/insttrain_1.0.5.bb
@@ -0,0 +1,20 @@
+DESCRIPTION = "Simulates any 2 of: DG, CDI for VOR1, CDI for VOR2, ADF, RMI \
+while you drag an NDB, 2 VORs and an airplane around in an overhead view."
+SECTION = "opie/applications"
+LICENSE = "GPL"
+APPTYPE = "binary"
+APPDESKTOP = "../Qtopia/opt/QtPalmtop/apps/Applications"
+
+inherit opie
+
+SRC_URI = "http://www.Vanille.de/mirror/insttrain-${PV}.tgz \
+ file://gcc3.patch;patch=1"
+S = "${WORKDIR}/insttrain-${PV}/src"
+
+QMAKE_PROFILES = "rmi.pro"
+
+do_install() {
+ install -d ${D}${palmtopdir}/pics/
+ install -m 0644 ../Qtopia/opt/QtPalmtop/pics/*.png ${D}${palmtopdir}/pics/
+}
+