aboutsummaryrefslogtreecommitdiff
path: root/academic/octave/octave.SlackBuild
diff options
context:
space:
mode:
authorKyle Guinn <elyk03@gmail.com>2011-10-09 00:44:49 -0300
committerRobby Workman <rworkman@slackbuilds.org>2011-10-11 21:20:16 -0500
commit5c9469e88f20f765f744d89c2787a8ca700626d0 (patch)
treed277b0060cac46129823f3dd1d03e15fe7941e2a /academic/octave/octave.SlackBuild
parentf7624e6796d0d4f6adb58b7dee1597376a6431b9 (diff)
academic/octave: Updated for version 3.4.2.
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'academic/octave/octave.SlackBuild')
-rw-r--r--academic/octave/octave.SlackBuild14
1 files changed, 11 insertions, 3 deletions
diff --git a/academic/octave/octave.SlackBuild b/academic/octave/octave.SlackBuild
index 744a8dc5ea6a1..57f1ecbfb73ae 100644
--- a/academic/octave/octave.SlackBuild
+++ b/academic/octave/octave.SlackBuild
@@ -4,7 +4,7 @@
# Written by Kyle Guinn <elyk03@gmail.com>
PRGNAM="octave"
-VERSION=${VERSION:-3.4.0}
+VERSION=${VERSION:-3.4.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -18,10 +18,10 @@ fi
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
-PKG=$TMP/package-$PRGNAM-$VERSION
+PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-DOCS="AUTHORS BUGS COPYING ChangeLog* INSTALL* NEWS* PROJECTS README*"
+DOCS="AUTHORS BUGS COPYING ChangeLog INSTALL* NEWS README"
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
@@ -37,6 +37,13 @@ else
LIBDIRSUFFIX=""
fi
+# Default to use ImageMagick (shipped with Slackware) instead of
+# GraphicsMagick so that octave will have at least some sort of image
+# reading capabilities. ImageMagick limits images to 16bpp, but if you're
+# running a multilib environment, it might be easier to accept this limit
+# rather than to compile GraphicsMagick. (thanks to Joni Martikainen)
+WITH_MAGICK=${WITH_MAGICK:-ImageMagick} # alternatively, "GraphicsMagick"
+
set -e
rm -rf $PKG
@@ -76,6 +83,7 @@ FFLAGS="$SLKCFLAGS" \
--enable-shared \
--disable-static \
--enable-strict-warning-flags \
+ --with-magick=$WITH_MAGICK \
--with-amd-includedir=/usr/include/amd \
--build=$ARCH-slackware-linux