summaryrefslogtreecommitdiff
path: root/academic/celestia/celestia.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'academic/celestia/celestia.SlackBuild')
-rw-r--r--academic/celestia/celestia.SlackBuild19
1 files changed, 12 insertions, 7 deletions
diff --git a/academic/celestia/celestia.SlackBuild b/academic/celestia/celestia.SlackBuild
index ce7ba55f81..f5a889536b 100644
--- a/academic/celestia/celestia.SlackBuild
+++ b/academic/celestia/celestia.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for celestia
-# Copyright 2008 Heinz Wiesinger <hmwiesinger@gmx.at>
+# Copyright 2008-2009 Heinz Wiesinger <pprkut@liwjatan.at>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=celestia
-VERSION=1.5.1
+VERSION=1.6.0
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -35,10 +35,13 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
set -e
@@ -57,15 +60,17 @@ find . \
-exec chmod 644 {} \;
# Celestia can only be built with one frontend enabled. The
-# Default one is kde, but you are free to choose glut, gtk and
-# gnome as well, though they may require additional dependencies.
-FRONTEND=${FRONTEND:-kde}
+# Default one is gtk, but you are free to choose glut, gnome and
+# kde as well, though they may require additional dependencies.
+# Note that the kde frontend will only build with kde3
+FRONTEND=${FRONTEND:-gtk}
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--sysconfdir=/etc \
+ --libdir=/usr/lib$LIBDIRSUFFIX \
--localstatedir=/var \
--with-$FRONTEND \
--build=$ARCH-slackware-linux \
@@ -75,7 +80,7 @@ make
make install-strip DESTDIR=$PKG
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a ABOUT-NLS AUTHORS ChangeLog COPYING INSTALL README TODO TRANSLATORS \
+cp -a ABOUT-NLS AUTHORS ChangeLog COPYING INSTALL NEWS README TRANSLATORS \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
@@ -84,4 +89,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}