summaryrefslogtreecommitdiff
path: root/academic/maxima/maxima.SlackBuild
diff options
context:
space:
mode:
authorJoĆ£o Medeiros <ignotus21@gmail.com>2010-05-12 17:36:41 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-12 17:36:41 +0200
commit2dcd5885104853cf55bc3402003d6b1c6fc92dcf (patch)
treefd01d0c16aba8d16601d843443bf3a0749b2eb98 /academic/maxima/maxima.SlackBuild
parent73af4652afaa763e15685757176dae751fe1e3b4 (diff)
downloadslackbuilds-2dcd5885104853cf55bc3402003d6b1c6fc92dcf.tar.gz
academic/maxima: Updated for version 5.18.1
Diffstat (limited to 'academic/maxima/maxima.SlackBuild')
-rw-r--r--academic/maxima/maxima.SlackBuild46
1 files changed, 29 insertions, 17 deletions
diff --git a/academic/maxima/maxima.SlackBuild b/academic/maxima/maxima.SlackBuild
index 75c03afc35..78fa0adce9 100644
--- a/academic/maxima/maxima.SlackBuild
+++ b/academic/maxima/maxima.SlackBuild
@@ -24,12 +24,14 @@
# Modified by Joćo Medeiros as needed to build maxima instead of octave
# Modified by the SlackBuilds.org project
+# Modified by Ken Milmore 2009
PRGNAM=maxima
-VERSION=5.10.0
+VERSION=5.18.1
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -37,45 +39,55 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
+set -e # Exit on most errors
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
-cd $TMP || exit 1
+cd $TMP
rm -rf $PRGNAM-$VERSION
-tar -zxvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
-cd $PRGNAM-$VERSION || exit 1
+tar -zxvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
chown -R root:root .
-chmod -R a-s,u+w,go+r-w .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
- --localstatedir=/var \
- || exit 1
+ --localstatedir=/var
-make || exit 1
-make install DESTDIR=$PKG || exit 1
+make -j1
+make -j1 install DESTDIR=$PKG
( cd $PKG
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
- find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
)
-if [ -d $PKG/usr/man ]; then
( 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
)
-fi
-if [ -d $PKG/usr/info ]; then
- gzip -9 $PKG/usr/info/*.info*
- rm -rf $PKG/usr/info/dir
-fi
+
+# NOTE: Do not compress the info pages; they are needed by Maxima's help facility.
+rm -rf $PKG/usr/info/dir
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING ChangeLog* INSTALL* NEWS README* \