aboutsummaryrefslogtreecommitdiff
path: root/academic/stellarium
diff options
context:
space:
mode:
authorMichael Bueker <414N@slacky.it>2010-05-11 22:21:36 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-11 22:21:36 +0200
commitab35680a8162b2060d1f4c3c2584f023995891f1 (patch)
treebff3b6c002ff4f85b34c4b354428db711408b392 /academic/stellarium
parent47d26f6fd331b8e4dd049ebba225078f7a200422 (diff)
academic/stellarium: Updated for version 0.9.1
Diffstat (limited to 'academic/stellarium')
-rw-r--r--academic/stellarium/README20
-rw-r--r--academic/stellarium/boost1.36.patch183
-rw-r--r--academic/stellarium/stellarium.SlackBuild61
-rw-r--r--academic/stellarium/stellarium.info10
4 files changed, 242 insertions, 32 deletions
diff --git a/academic/stellarium/README b/academic/stellarium/README
index c4dd8fbf2ef5b..bdbcd7dfd20b7 100644
--- a/academic/stellarium/README
+++ b/academic/stellarium/README
@@ -1,7 +1,15 @@
-Stellarium shows a realistic sky in 3D, just like what
-you see with the naked eye, binoculars or a telescope.
-It is being used in planetarium projectors. Just set
-your coordinates and go.
+Stellarium shows a realistic sky in 3D, just like what you see with the
+naked eye, binoculars or a telescope. It is being used in planetarium
+projectors. Just set your coordinates and go.
-For reasonable performance, you will want to have some
-kind of 3D acceleration.
+For reasonable performance, you will want to have some kind of 3D
+acceleration.
+
+Starting from version 0.9.1, stellarium REQUIRES qt4 be installed. The
+build system has gone through a bit of changes too cmake is now used
+instead of the configure script. Cmake will search for qmake and other qt4
+executables so, if they're not already present inside the PATH variable,
+you will have to tell cmake where it can find it, using the QT4PATH variable
+inside the script.
+
+Requiers: qt4 and boost both of which you can find at slackbuilds.org \ No newline at end of file
diff --git a/academic/stellarium/boost1.36.patch b/academic/stellarium/boost1.36.patch
new file mode 100644
index 0000000000000..bb83c607f53db
--- /dev/null
+++ b/academic/stellarium/boost1.36.patch
@@ -0,0 +1,183 @@
+diff -Naur stellarium-0.9.1.orig/src/StelApp.cpp stellarium-0.9.1/src/StelApp.cpp
+--- stellarium-0.9.1.orig/src/StelApp.cpp 2008-01-17 09:15:35.000000000 -0500
++++ stellarium-0.9.1/src/StelApp.cpp 2008-09-01 14:12:51.000000000 -0400
+@@ -141,7 +141,7 @@
+ {
+ Translator::init(stelFileMgr->findFile("data/iso639-1.utf8"));
+ }
+- catch (exception& e)
++ catch (std::exception& e)
+ {
+ cerr << "ERROR while loading translations: " << e.what() << endl;
+ }
+@@ -180,7 +180,7 @@
+ {
+ fontMapFile = stelFileMgr->findFile(QFile::decodeName("data/fontmap.dat"));
+ }
+- catch(exception& e)
++ catch(std::exception& e)
+ {
+ cerr << "ERROR when locating font map file: " << e.what() << endl;
+ }
+@@ -243,7 +243,7 @@
+ {
+ iconPath = stelFileMgr->findFile("data/icon.bmp");
+ }
+- catch(exception& e)
++ catch(std::exception& e)
+ {
+ cerr << "ERROR when trying to locate icon file: " << e.what() << endl;
+ }
+@@ -425,7 +425,7 @@
+ stelFileMgr->findFile("landscapes/" + *i + "/landscape.ini");
+ cout << (*i).toUtf8().data() << endl;
+ }
+- catch(exception& e){}
++ catch(std::exception& e){}
+ }
+ exit(0);
+ }
+@@ -434,7 +434,7 @@
+ {
+ setConfigFile(qPrintable(argsGetOptionWithArg<QString>(argList, "-c", "--config-file", "config.ini")));
+ }
+- catch(exception& e)
++ catch(std::exception& e)
+ {
+ cerr << "ERROR: while looking for --config-file option: " << e.what() << ". Using \"config.ini\"" << endl;
+ setConfigFile("config.ini");
+@@ -463,7 +463,7 @@
+ projectionType = argsGetOptionWithArg<QString>(argList, "", "--projection-type", "");
+
+ }
+- catch (exception& e)
++ catch (std::exception& e)
+ {
+ cerr << "ERROR while checking command line options: " << e.what() << endl;
+ exit(0);
+@@ -746,7 +746,7 @@
+ configFile = stelFileMgr->findFile(configName, StelFileMgr::FLAGS(StelFileMgr::WRITABLE|StelFileMgr::FILE));
+ return;
+ }
+- catch(exception& e)
++ catch(std::exception& e)
+ {
+ //cerr << "DEBUG StelApp::setConfigFile could not locate writable config file " << configName << endl;
+ }
+@@ -756,7 +756,7 @@
+ configFile = stelFileMgr->findFile(configName, StelFileMgr::FILE);
+ return;
+ }
+- catch(exception& e)
++ catch(std::exception& e)
+ {
+ //cerr << "DEBUG StelApp::setConfigFile could not find read only config file " << configName << endl;
+ }
+@@ -767,7 +767,7 @@
+ //cerr << "DEBUG StelApp::setConfigFile found NEW file path: " << configFile << endl;
+ return;
+ }
+- catch(exception& e)
++ catch(std::exception& e)
+ {
+ cerr << "ERROR StelApp::setConfigFile could not find or create configuration file " << configName.toUtf8().data() << endl;
+ exit(1);
+@@ -781,7 +781,7 @@
+ {
+ defaultConfigFilePath = stelFileMgr->findFile("data/default_config.ini");
+ }
+- catch(exception& e)
++ catch(std::exception& e)
+ {
+ cerr << "ERROR (copyDefaultConfigFile): failed to locate data/default_config.ini. Please check your installation." << endl;
+ exit(1);
+diff -Naur stellarium-0.9.1.orig/src/stel_command_interface.cpp stellarium-0.9.1/src/stel_command_interface.cpp
+--- stellarium-0.9.1.orig/src/stel_command_interface.cpp 2008-01-17 09:15:35.000000000 -0500
++++ stellarium-0.9.1/src/stel_command_interface.cpp 2008-09-01 14:16:11.000000000 -0400
+@@ -436,7 +436,7 @@
+ image_filename = stapp->getFileMgr().findFile(image_filename);
+ script_images->load_image(image_filename, args["name"].c_str(), img_pos);
+ }
+- catch(exception& e)
++ catch(std::exception& e)
+ {
+ cerr << "ERROR finding script: " << e.what() << endl;
+ debug_message = _("Unable to open file: ") + image_filename.toStdWString();
+@@ -511,7 +511,7 @@
+ audio = new Audio(QFile::encodeName(audioFilePath).constData(), "default track", StelUtils::stringToLong(args["output_rate"]));
+ audio->play(args["loop"]=="on");
+ }
+- catch(exception& e)
++ catch(std::exception& e)
+ {
+ cerr << "ERROR while trying to play audio file: " << args["filename"] << " : " << e.what() << endl;
+ }
+diff -Naur stellarium-0.9.1.orig/src/stel_ui_conf.cpp stellarium-0.9.1/src/stel_ui_conf.cpp
+--- stellarium-0.9.1.orig/src/stel_ui_conf.cpp 2008-01-17 09:15:35.000000000 -0500
++++ stellarium-0.9.1/src/stel_ui_conf.cpp 2008-09-01 14:17:51.000000000 -0400
+@@ -620,7 +620,7 @@
+ {
+ fileName = StelApp::getInstance().getFileMgr().findFile(QString("data/cities_") + planetEnglishName.c_str() + ".fab");
+ }
+- catch (exception& e)
++ catch (std::exception& e)
+ {
+ cerr << "INFO StelUI::load_cities " << e.what() << endl;
+ return;
+diff -Naur stellarium-0.9.1.orig/src/stel_ui_tuiconf.cpp stellarium-0.9.1/src/stel_ui_tuiconf.cpp
+--- stellarium-0.9.1.orig/src/stel_ui_tuiconf.cpp 2008-01-17 09:15:35.000000000 -0500
++++ stellarium-0.9.1/src/stel_ui_tuiconf.cpp 2008-09-01 14:19:10.000000000 -0400
+@@ -155,7 +155,7 @@
+ {
+ tui_time_settmz = new s_tui::Time_zone_item(QFile::encodeName(app->getFileMgr().findFile("data/zone.tab")).constData(), wstring(L"2.2 "));
+ }
+- catch(exception &e)
++ catch(std::exception &e)
+ {
+ cerr << "ERROR locating zone file: " << e.what() << endl;
+ }
+@@ -520,7 +520,7 @@
+ cmd = "script action play filename \"" + SelectedScript
+ + "\" path \"" + QFile::encodeName(theParent).constData() + "/\"";
+ }
+- catch(exception& e)
++ catch(std::exception& e)
+ {
+ cerr << "ERROR while executing script " << SelectedScript << ": " << e.what() << endl;
+ }
+@@ -677,7 +677,7 @@
+ {
+ saveCurrentConfig(app->getConfigFilePath());
+ }
+- catch(exception& e)
++ catch(std::exception& e)
+ {
+ cerr << "ERROR: could not save config.ini file: " << e.what() << endl;
+ }
+@@ -686,7 +686,7 @@
+ {
+ system( QFile::encodeName(app->getFileMgr().findFile("data/script_save_config ")).constData());
+ }
+- catch(exception& e)
++ catch(std::exception& e)
+ {
+ cerr << "ERROR while calling script_save_config: " << e.what() << endl;
+ }
+@@ -699,7 +699,7 @@
+ {
+ system( QFile::encodeName(app->getFileMgr().findFile("data/script_internet_update ")).constData());
+ }
+- catch(exception& e)
++ catch(std::exception& e)
+ {
+ cerr << "ERROR while calling script_internet_update: " << e.what() << endl;
+ }
+@@ -713,7 +713,7 @@
+ {
+ system( QFile::encodeName(app->getFileMgr().findFile("data/script_shutdown ")).constData());
+ }
+- catch(exception& e)
++ catch(std::exception& e)
+ {
+ cerr << "ERROR while calling script_shutdown: " << e.what() << endl;
+ }
diff --git a/academic/stellarium/stellarium.SlackBuild b/academic/stellarium/stellarium.SlackBuild
index e355725a45170..7259293f260c0 100644
--- a/academic/stellarium/stellarium.SlackBuild
+++ b/academic/stellarium/stellarium.SlackBuild
@@ -1,8 +1,9 @@
#!/bin/sh
# Slackware build script for stellarium
-
-# Copyright 2007 Michael Bueker <m.bueker@berlin.de>
+# Copyright 2008 Alan Alberghini <414N@slacky.it>
+#
+# Based on slackbuild by Michael Bueker <m.bueker@berlin.de>
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
@@ -24,21 +25,33 @@
set -e
PRGNAM=stellarium
-VERSION=0.8.2
+VERSION=0.9.1
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-CWD=`pwd`
+
+CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+# The path containg qt4. It will be added to PATH.
+# CMake needs qt4 qmake.
+# You have to specify it only if you do not have qt4 executables already inside PATH and
+# cmake fails to find qt4.
+
+QT4PATH=""
+
+# CFLAGS adjustment.
+
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
elif [ "$ARCH" = "athlonxp" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=athlon-xp"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
fi
rm -rf $PKG
@@ -47,30 +60,36 @@ cd $TMP
rm -rf $PRGNAM-$VERSION
tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz
+patch -p0 < $CWD/boost1.36.patch
+
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R a-s,u+w,go+r-w .
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=/usr \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --mandir=/usr/man
-
-make
-make install-strip DESTDIR=$PKG
-
-if [ -d $PKG/usr/man ]; then
- ( cd $PKG/usr/man
- find . -type f -exec gzip -9 {} \;
- for i in `find . -type l` ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
- )
+if [ "$QT4PATH" ]
+then
+ CFLAGS="$SLKCFLAGS" \
+ CXXFLAGS="$SLKCFLAGS" \
+ PATH="$QT4PATH/bin":"$PATH" \
+ cmake -DCMAKE_INSTALL_PREFIX=/usr .
+else
+ CFLAGS="$SLKCFLAGS" \
+ CXXFLAGS="$SLKCFLAGS" \
+ cmake -DCMAKE_INSTALL_PREFIX=/usr .
fi
+make
+make install DESTDIR=$PKG
+
+# Strip executables
+
+( cd "$PKG"
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+)
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL NEWS README TODO doc/developer_guide.tex $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING ChangeLog INSTALL README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/academic/stellarium/stellarium.info b/academic/stellarium/stellarium.info
index 54fa9d3bbe439..44c194e77095a 100644
--- a/academic/stellarium/stellarium.info
+++ b/academic/stellarium/stellarium.info
@@ -1,8 +1,8 @@
PRGNAM="stellarium"
-VERSION="0.8.2"
+VERSION="0.9.1"
HOMEPAGE="http://www.stellarium.org"
-DOWNLOAD="http://dl.sourceforge.net/stellarium/stellarium-0.8.2.tar.gz"
-MD5SUM="8f4bcfcf6ad74ab57f1a9fc4f3927527"
+DOWNLOAD="http://downloads.sourceforge.net/stellarium/stellarium-0.9.1.tar.gz"
+MD5SUM="d0d55cb1ff5acd08a4d3b27d953579c0"
MAINTAINER="Michael Bueker"
-EMAIL="m.bueker@berlin.de"
-APPROVED="BP{kn}"
+EMAIL="414N@slacky.it"
+APPROVED="David Somero" \ No newline at end of file