summaryrefslogtreecommitdiff
path: root/graphics/povray/povray.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/povray/povray.SlackBuild')
-rw-r--r--graphics/povray/povray.SlackBuild18
1 files changed, 8 insertions, 10 deletions
diff --git a/graphics/povray/povray.SlackBuild b/graphics/povray/povray.SlackBuild
index 4ee3b6d2f6..f770277221 100644
--- a/graphics/povray/povray.SlackBuild
+++ b/graphics/povray/povray.SlackBuild
@@ -26,7 +26,7 @@
# revision date 2013/03/26
PRGNAM=povray
-VERSION=${VERSION:-3.7.0.RC7}
+VERSION=${VERSION:-3.7.0.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -68,18 +68,16 @@ set -e
rm -rf $TMP/$PRGNAM-$VERSION $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+if [ -f $CWD/v$VERSION.tar.?z* ]; then
+ tar xvf $CWD/v$VERSION.tar.?z*
+else
+ tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
+fi
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
-# Need to specify boost_thread for 64-bits
-# (upstream is aware of this glitch)
-if [ "$ARCH" = "x86_64" ]; then
- BOOST64="--with-boost-thread=boost_thread"
-else
- BOOST64=""
-fi
+( cd unix; sh ./prebuild.sh )
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -89,7 +87,7 @@ CXXFLAGS="$SLKCFLAGS" \
--localstatedir=/var \
--mandir=/usr/man \
--build=$ARCH-slackware-linux \
- $BOOST64 \
+ LIBS="-lboost_system -lboost_thread" \
COMPILED_BY="$POVRAY_BUILDER"
make