kstars-embedded_0.8.5.bb: Fix complilation with gcc 4.5
authorKhem Raj <raj.khem@gmail.com>
Tue, 26 Oct 2010 23:41:01 +0000 (16:41 -0700)
committerKhem Raj <raj.khem@gmail.com>
Tue, 26 Oct 2010 23:43:08 +0000 (16:43 -0700)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
recipes/kstars/kstars-embedded-0.8.5/gcc45-compilation-fixes.patch [new file with mode: 0644]
recipes/kstars/kstars-embedded_0.8.5.bb

diff --git a/recipes/kstars/kstars-embedded-0.8.5/gcc45-compilation-fixes.patch b/recipes/kstars/kstars-embedded-0.8.5/gcc45-compilation-fixes.patch
new file mode 100644 (file)
index 0000000..4004ede
--- /dev/null
@@ -0,0 +1,34 @@
+Index: kstars/kstars.cpp
+===================================================================
+--- kstars.orig/kstars.cpp
++++ kstars/kstars.cpp
+@@ -37,9 +37,9 @@
+ #include <qpe/mimetype.h>
+ #include <qpe/applnk.h>
+-#include <stdio.h>
+-#include <stdlib.h>
+-#include <stream.h>
++#include <cstdio>
++#include <cstdlib>
++#include <iostream>
+ #include "timedialog.h"
+ #include "locationdialog.h"
+Index: kstars/skymap.cpp
+===================================================================
+--- kstars.orig/skymap.cpp
++++ kstars/skymap.cpp
+@@ -36,9 +36,9 @@
+ #include <qpe/mimetype.h>
+ #include <qpe/applnk.h>
+-#include <math.h>
+-#include <stdlib.h>
+-#include <stream.h>
++#include <cmath>
++#include <cstdlib>
++#include <iostream>
+ #include <unistd.h>
+ #include "kstars.h"
index 8dac901..a792972 100644 (file)
@@ -5,9 +5,11 @@ LICENSE = "GPL"
 APPNAME = "kstars"
 APPTYPE = "binary"
 APPDESKTOP = "${WORKDIR}/apps/Applications"
-PR = "r1"
+PR = "r2"
 
-SRC_URI = "http://kstars.sourceforge.net/kstars-embedded-${PV}.tar.gz"
+SRC_URI = "http://kstars.sourceforge.net/kstars-embedded-${PV}.tar.gz \
+           file://gcc45-compilation-fixes.patch \
+          "
 S = "${WORKDIR}/kstars"
 
 inherit opie