academic/octave: Build bump, various changes.

Signed-off-by: Erik Hanson <erik@slackbuilds.org>
This commit is contained in:
Kyle Guinn 2010-08-30 06:44:08 -05:00 committed by Erik Hanson
parent ac874407e2
commit 093b534a9e
3 changed files with 15 additions and 21 deletions

View file

@ -7,8 +7,18 @@ also be used as a batch-oriented language.
These optional dependencies will be used if found: These optional dependencies will be used if found:
* BLAS * BLAS
* LAPACK * LAPACK
* AMD
* CAMD
* COLAMD
* CCOLAMD
* CHOLMOD
* UMFPACK
* CXSparse
* glpk * glpk
* arpack
* qrupdate
* qhull * qhull
* HDF5 * HDF5
* ftgl
* fltk * fltk
* ftgl
* GraphicsMagick

View file

@ -6,15 +6,13 @@
PRGNAM="octave" PRGNAM="octave"
VERSION=${VERSION:-3.2.4} VERSION=${VERSION:-3.2.4}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$( uname -m )" in case "$( uname -m )" in
i?86) ARCH=i486 ;; i?86) ARCH=i486 ;;
arm*) ARCH=arm ;; arm*) ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;; *) ARCH=$( uname -m ) ;;
esac esac
fi fi
@ -51,14 +49,6 @@ cd $PRGNAM-$VERSION
chown -R root:root . chown -R root:root .
chmod -R u+w,go+r-w,a-st . chmod -R u+w,go+r-w,a-st .
# qhull 2010.1 does not install qhull/qhull.h; this file is for "backwards
# compatibility" and just redirects to qhull/libqhull.h. Octave tries to
# use the old header only to compile a test during ./configure. The test
# fails because the old header doesn't exist, and as a result Octave won't
# use qhull. This line fixes the test, but you may need to comment it out
# if you intend on using an older version of qhull.
sed -i 's/qhull\/qhull\.h/qhull\/libqhull\.h/g' configure aclocal.m4
CFLAGS="$SLKCFLAGS" \ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \
FFLAGS="$SLKCFLAGS" \ FFLAGS="$SLKCFLAGS" \
@ -83,16 +73,10 @@ make install-strip DESTDIR=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
( cd $PKG/usr/man find $PKG/usr/man -type f -exec gzip -9 {} \;
find . -type f -exec gzip -9 {} \;
for i in $(find . -type l); do \
ln -s $(readlink $i).gz $i.gz; \
rm $i; \
done
)
rm -f $PKG/usr/info/dir rm -f $PKG/usr/info/dir
gzip -9 $PKG/usr/info/* gzip -9 $PKG/usr/info/*.info*
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION

View file

@ -7,4 +7,4 @@ DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
MAINTAINER="Kyle Guinn" MAINTAINER="Kyle Guinn"
EMAIL="elyk03@gmail.com" EMAIL="elyk03@gmail.com"
APPROVED="dsomero" APPROVED="Erik Hanson"