diff options
Diffstat (limited to 'system/mpich/mpich.SlackBuild')
-rw-r--r-- | system/mpich/mpich.SlackBuild | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/system/mpich/mpich.SlackBuild b/system/mpich/mpich.SlackBuild index 24f9e08683..6b43d619a4 100644 --- a/system/mpich/mpich.SlackBuild +++ b/system/mpich/mpich.SlackBuild @@ -1,10 +1,10 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for mpich # Earlier version written by Wainamoinen <wainamoinen@gmail.com> # -# Copyright 2016-2019 Christoph Willing Brisbane, Australia +# Copyright 2016-2023 Christoph Willing Brisbane, Australia # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,10 +24,13 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=mpich -VERSION=${VERSION:-3.3.2} +VERSION=${VERSION:-4.1.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -37,7 +40,11 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -71,6 +78,9 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +# Workaround for gfortran-10.x: https://github.com/pmodels/mpich/issues/4300 +FC="gfortran" \ +FFLAGS="-fallow-argument-mismatch" \ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -85,6 +95,7 @@ CXXFLAGS="$SLKCFLAGS" \ --enable-cxx \ --enable-threads=multiple \ --enable-fast \ + --with-device=ch3 \ --build=$ARCH-slackware-linux make @@ -102,8 +113,10 @@ cp -a \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +rm -f $PKG/usr/lib*/*.la + mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -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 |