diff options
Diffstat (limited to 'academic/getfem/getfem.SlackBuild')
-rw-r--r-- | academic/getfem/getfem.SlackBuild | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/academic/getfem/getfem.SlackBuild b/academic/getfem/getfem.SlackBuild index d4567aa2e7..cfb5da7dc0 100644 --- a/academic/getfem/getfem.SlackBuild +++ b/academic/getfem/getfem.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for GetFEM # -# Copyright 2022, Fellype do Nascimento, Guaratingueta - Brazil +# Copyright 2022-2025, Fellype do Nascimento, Guaratingueta - Brazil # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=getfem -VERSION=${VERSION:-5.4.2} +VERSION=${VERSION:-5.4.4} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -79,11 +79,18 @@ 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 {} \; +# Add $BLAS variable to allow users to pass openblas to the script +BLAS=${BLAS:-blas} + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --docdir=/usr/share/doc \ --with-pic \ + --with-blas=$BLAS \ + --enable-superlu \ --enable-python \ --enable-shared \ --enable-static=no \ @@ -93,6 +100,10 @@ find -L . \ make make install DESTDIR=$PKG +# some EFL libraries (.so) may not have been converted to executable during the +# build/install process, so, do it manually here +find $PKG -iname "*.so" | xargs chmod +x + find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true |