diff options
Diffstat (limited to 'academic/harminv/harminv.SlackBuild')
-rw-r--r-- | academic/harminv/harminv.SlackBuild | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/academic/harminv/harminv.SlackBuild b/academic/harminv/harminv.SlackBuild index 2dbbcbc71d..7bbd8433bf 100644 --- a/academic/harminv/harminv.SlackBuild +++ b/academic/harminv/harminv.SlackBuild @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=harminv -VERSION=${VERSION:-1.4.1} +VERSION=${VERSION:-1.4.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -64,13 +64,13 @@ else LIBDIRSUFFIX="" fi +set -e + # change annoying underscores into hyphens SVERSION=$(echo $VERSION | tr '_' '-') # make a custom list of doc files in advance DOCFILES="COPYING COPYRIGHT NEWS.md README.md doc/*.md " -set -e - rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP @@ -89,7 +89,20 @@ if [ ! -f ./configure ] ; then ./autogen.sh fi -LOCALCONFIGS="--enable-shared --with-blas=atlas" + +LOCALCONFIGS="--enable-shared --enable-static=no " + + +# check for the Atlas replacement for blas; if the libraries are found, +# add the configure option accordingly + +if [ -f /usr/lib/libatlas.a ] ; then + if [ -f /usr/lib/libatlas.so ] ; then + echo "NOTICE: libatlas was found, configure --with-blas=atlas" + LOCALCONFIGS=${LOCALCONFIGS}" --with-blas=atlas" + fi +fi + CFLAGS="$SLKCFLAGS" \ CPPFLAGS="$SLKCFLAGS" \ @@ -99,12 +112,14 @@ CPPFLAGS="$SLKCFLAGS" \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --docdir=/usr/doc/$PRGNAM-$VERSION \ --build=$ARCH-slackware-linux \ - --enable-static=no \ $LOCALCONFIGS make make install DESTDIR=$PKG +# Don't ship .la files: +rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la + 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 |