diff options
author | Kyle Guinn <elyk03@gmail.com> | 2010-04-08 20:38:14 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-15 10:26:33 +0200 |
commit | 9ed16e0b2c589a6ca656b9fe7b54a5844bdb8d1e (patch) | |
tree | d162f7cf280e5f685b3ed75a0dc3c4bbf41b2306 | |
parent | bc27ab6eb8eaf519f4989578e219ff3c3e729488 (diff) |
academic/octave: Updated for version 3.2.4.
-rw-r--r-- | academic/octave/README | 10 | ||||
-rw-r--r-- | academic/octave/octave.SlackBuild | 40 | ||||
-rw-r--r-- | academic/octave/octave.info | 8 |
3 files changed, 37 insertions, 21 deletions
diff --git a/academic/octave/README b/academic/octave/README index 91420d137dd4e..75cf4b9cb9e76 100644 --- a/academic/octave/README +++ b/academic/octave/README @@ -4,4 +4,12 @@ linear and nonlinear problems numerically, and for performing other numerical experiments using a language that is mostly compatible with Matlab. It may also be used as a batch-oriented language. -FFTW and HDF5 are optional dependencies; they will be used if found. +These optional dependencies will be used if found: +* BLAS +* LAPACK +* glpk +* FFTW +* qhull +* HDF5 +* ftgl +* fltk diff --git a/academic/octave/octave.SlackBuild b/academic/octave/octave.SlackBuild index f5762cba88eff..72e74b472fd86 100644 --- a/academic/octave/octave.SlackBuild +++ b/academic/octave/octave.SlackBuild @@ -5,7 +5,7 @@ # HDF5 support by Aleksandar Samardzic <asamardzic@matf.bg.ac.yu> PRGNAM="octave" -VERSION="3.0.1" +VERSION=${VERSION:-3.2.4} ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -15,6 +15,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM-$VERSION OUTPUT=${OUTPUT:-/tmp} +DOCS="BUGS COPYING ChangeLog* INSTALL* NEWS* PROJECTS README* ROADMAP SENDING-PATCHES" + if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" LIBDIRSUFFIX="" @@ -37,11 +39,16 @@ cd $PRGNAM-$VERSION chown -R root:root . chmod -R u+w,go+r-w,a-st . -# The HDF5 API changed between versions 1.6.x and 1.8.x. Octave -# currently uses the 1.6.x API, so a compatibility flag is necessary. -CPPFLAGS="-DH5_USE_16_API" \ -CFLAGS="$SLKCFLAGS -fno-strict-aliasing" \ -CXXFLAGS="$SLKCFLAGS -fno-strict-aliasing" \ +# 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" \ +CXXFLAGS="$SLKCFLAGS" \ FFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ @@ -53,12 +60,14 @@ FFLAGS="$SLKCFLAGS" \ --docdir=/usr/doc/$PRGNAM-$VERSION \ --enable-shared \ --disable-static \ - --enable-picky-flags \ + --enable-strict-warning-flags \ --build=$ARCH-slackware-linux make -make install DESTDIR=$PKG +make install-strip DESTDIR=$PKG +# install-strip doesn't strip the files in usr/lib/octave-$VERSION, +# so leave this in for now. ( cd $PKG find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : \ | xargs strip --strip-unneeded 2> /dev/null || true @@ -67,19 +76,18 @@ make install DESTDIR=$PKG ) ( 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 + 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 gzip -9 $PKG/usr/info/* mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a \ - BUGS COPYING ChangeLog* INSTALL* NEWS* PROJECTS README* ROADMAP SENDING-PATCHES THANKS \ - $PKG/usr/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install @@ -87,4 +95,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -p -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/academic/octave/octave.info b/academic/octave/octave.info index 516b31fcd34ec..ae889c8f4c22c 100644 --- a/academic/octave/octave.info +++ b/academic/octave/octave.info @@ -1,10 +1,10 @@ PRGNAM="octave" -VERSION="3.0.1" +VERSION="3.2.4" HOMEPAGE="http://www.gnu.org/software/octave/" -DOWNLOAD="ftp://ftp.octave.org/pub/octave/octave-3.0.1.tar.bz2" -MD5SUM="230f3895a42386ec625bf2593a44c441" +DOWNLOAD="ftp://ftp.octave.org/pub/octave/octave-3.2.4.tar.bz2" +MD5SUM="608196657f4fa010420227b77333bb71" DOWNLOAD_x86_64="" MD5SUM_x86_64="" MAINTAINER="Kyle Guinn" EMAIL="elyk03@gmail.com" -APPROVED="rworkman" +APPROVED="dsomero" |