From 63de6753a286c42fbb77b4ed7926957551ca3758 Mon Sep 17 00:00:00 2001 From: Heinz Wiesinger Date: Wed, 12 Sep 2012 20:52:07 +0200 Subject: academic/celestia: Added patch for gcc 4.7. Signed-off-by: Heinz Wiesinger --- academic/celestia/celestia-1.6.1-gcc47.patch | 22 ++++++++++++++++++++++ academic/celestia/celestia.SlackBuild | 5 ++++- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 academic/celestia/celestia-1.6.1-gcc47.patch diff --git a/academic/celestia/celestia-1.6.1-gcc47.patch b/academic/celestia/celestia-1.6.1-gcc47.patch new file mode 100644 index 0000000000..385f39a205 --- /dev/null +++ b/academic/celestia/celestia-1.6.1-gcc47.patch @@ -0,0 +1,22 @@ +diff -up celestia-1.6.1/src/celengine/frametree.h.gcc47 celestia-1.6.1/src/celengine/frametree.h +--- celestia-1.6.1/src/celengine/frametree.h.gcc47 2012-03-22 12:56:56.096087430 -0400 ++++ celestia-1.6.1/src/celengine/frametree.h 2012-03-22 12:57:04.333022427 -0400 +@@ -13,6 +13,7 @@ + #ifndef _CELENGINE_FRAMETREE_H_ + #define _CELENGINE_FRAMETREE_H_ + ++#include + #include + + class Star; +diff -up celestia-1.6.1/src/celengine/planetgrid.cpp.gcc47 celestia-1.6.1/src/celengine/planetgrid.cpp +--- celestia-1.6.1/src/celengine/planetgrid.cpp.gcc47 2012-03-22 12:53:01.496950513 -0400 ++++ celestia-1.6.1/src/celengine/planetgrid.cpp 2012-03-22 12:53:08.812891865 -0400 +@@ -12,6 +12,7 @@ + + #include + #include ++#include + #include + #include "planetgrid.h" + #include "body.h" diff --git a/academic/celestia/celestia.SlackBuild b/academic/celestia/celestia.SlackBuild index 4c804df18b..ab14f626f1 100644 --- a/academic/celestia/celestia.SlackBuild +++ b/academic/celestia/celestia.SlackBuild @@ -24,7 +24,7 @@ PRGNAM=celestia VERSION=1.6.1 -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -72,6 +72,9 @@ find . \ # Note that the kde frontend will only build with kde3 FRONTEND=${FRONTEND:-gtk} +# Fix incomatibility with gcc 4.7 +patch -p1 -i $CWD/celestia-1.6.1-gcc47.patch + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ -- cgit v1.2.3