aboutsummaryrefslogtreecommitdiff
path: root/system/mpich/mpich.SlackBuild
diff options
context:
space:
mode:
authorChristoph Willing <chris.willing@iinet.net.au>2016-08-05 14:20:38 +1000
committerDavid Spencer <idlemoor@slackbuilds.org>2016-08-05 18:10:49 +0100
commit6310a43dfe8bf17fb459b767f51882e876661d31 (patch)
tree32f6499c581122164a227c24f2bea1370ee56a75 /system/mpich/mpich.SlackBuild
parent7002c7841487cd3049f89359e229b9ba84b630b6 (diff)
system/mpich: Updated for version 3.2 + new maintainer
Signed-off-by: Christoph Willing <chris.willing@iinet.net.au>
Diffstat (limited to 'system/mpich/mpich.SlackBuild')
-rw-r--r--system/mpich/mpich.SlackBuild45
1 files changed, 34 insertions, 11 deletions
diff --git a/system/mpich/mpich.SlackBuild b/system/mpich/mpich.SlackBuild
index c956464e1a90..50b18742efea 100644
--- a/system/mpich/mpich.SlackBuild
+++ b/system/mpich/mpich.SlackBuild
@@ -2,16 +2,36 @@
# Slackware build script for mpich
-# Written by Wainamoinen <wainamoinen@gmail.com>
+# Earlier version written by Wainamoinen <wainamoinen@gmail.com>
+#
+# Copyright 2016 Christoph Willing Brisbane, Australia
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=mpich
-VERSION=${VERSION:-3.1.4}
+VERSION=${VERSION:-3.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -22,8 +42,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -60,10 +80,12 @@ CXXFLAGS="$SLKCFLAGS" \
--localstatedir=/var \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
- --build=$ARCH-slackware-linux \
- --enable-static=no \
- --enable-g=none \
- --enable-fast=O2,ndebug
+ --disable-static \
+ --enable-fortran \
+ --enable-cxx \
+ --enable-threads=multiple \
+ --enable-fast \
+ --build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
@@ -75,8 +97,9 @@ find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a CHANGES COPYRIGHT README README.envvar RELEASE_NOTES $PKG/usr/doc/$PRGNAM-$VERSION
-
+cp -a \
+ CHANGES COPYRIGHT README README.envvar RELEASE_NOTES \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install