summaryrefslogtreecommitdiff
path: root/academic/qhull/qhull.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'academic/qhull/qhull.SlackBuild')
-rw-r--r--academic/qhull/qhull.SlackBuild20
1 files changed, 14 insertions, 6 deletions
diff --git a/academic/qhull/qhull.SlackBuild b/academic/qhull/qhull.SlackBuild
index d6e67a9d54..39d79e0b9a 100644
--- a/academic/qhull/qhull.SlackBuild
+++ b/academic/qhull/qhull.SlackBuild
@@ -3,13 +3,13 @@
# Slackware build script for qhull
# Written by Chris Abela <chris.abela@maltats.com>
-# April 2009
+# 2010.03.19
PRGNAM=qhull
-VERSION=${VERSION:-2003.1}
+VERSION=${VERSION:-2010.1}
ARCH=${ARCH:-i486}
-BUILD=${BUILD:-2}
-TAG=${TAG:-_SBo}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
@@ -33,7 +33,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION-src.tgz
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
@@ -42,11 +42,19 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+cd src
+# Amongst other things, this caters for the octave SlackBuild
+patch -Np0 -i $CWD/Make-config.sh.patch Make-config.sh
+./Make-config.sh
+cd -
+
CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
+ --datarootdir=/usr \
+ --docdir=/usr \
--disable-static \
--build=$ARCH-slackware-linux