diff options
Diffstat (limited to 'academic/octave/octave.SlackBuild')
-rw-r--r-- | academic/octave/octave.SlackBuild | 26 |
1 files changed, 8 insertions, 18 deletions
diff --git a/academic/octave/octave.SlackBuild b/academic/octave/octave.SlackBuild index 0e2b9552c921d..3f857213177cd 100644 --- a/academic/octave/octave.SlackBuild +++ b/academic/octave/octave.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for octave -# Copyright 2012 Kyle Guinn <elyk03@gmail.com>, USA +# Copyright 2012-2013 Kyle Guinn <elyk03@gmail.com>, USA # 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=octave -VERSION=${VERSION:-3.6.3} +VERSION=${VERSION:-3.6.4} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -67,6 +67,10 @@ fi # Larger values will make your Magick package slower and use more memory. WITH_MAGICK=${WITH_MAGICK:-ImageMagick} # alternatively, "GraphicsMagick" +# umfpack.h includes amd.h, which may be installed outside of the standard +# search dirs if you use the SBo packages. This ensures UMFPACK is found. +WITH_AMD_INCLUDEDIR=${WITH_AMD_INCLUDEDIR:-/usr/include/amd} + set -e rm -rf $PKG @@ -76,21 +80,7 @@ rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 cd $PRGNAM-$VERSION chown -R root:root . -chmod -R u+w,go+r-w,a-st . - -# Several configure checks look for headers in the 'amd' directory -# instead of 'cxsparse', 'camd', 'colamd', and 'ccolamd' directories -# as liboctave/oct-sparse.h expects. Fix the typos and reconfigure. -# Note that camd.h doesn't appear to be included anywhere, but is used -# to determine if the CAMD library is present. -sed -i -e 's| amd/cs\.h| cxsparse/cs.h|' \ - -e 's| amd/camd\.h| camd/camd.h|' \ - -e 's| amd/colamd\.h| colamd/colamd.h|' \ - -e 's| amd/ccolamd\.h| ccolamd/ccolamd.h|' configure.ac -autoreconf -vif -# If you have amd.h in some non-default location (e.g. /usr/include/amd/amd.h) -# now the check for umfpack.h will fail because umfpack.h includes "amd.h" -# instead of "amd/amd.h". The --with-amd-includedir option below fixes this. +chmod -R u+w,go-w,a+rX-st . CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -107,7 +97,7 @@ FFLAGS="$SLKCFLAGS" \ --disable-static \ --enable-strict-warning-flags \ --with-magick=$WITH_MAGICK \ - --with-amd-includedir=/usr/include/amd \ + --with-amd-includedir=$WITH_AMD_INCLUDEDIR \ --build=$ARCH-slackware-linux make |