diff options
author | Petar Petrov <slackalaxy@gmail.com> | 2021-05-18 16:25:15 +0300 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-05-18 23:40:10 +0700 |
commit | f24243963545eeceb0a83756f89764e0a6e61b3b (patch) | |
tree | f749e41aa023148eaeb8713c7d156efce3e485d5 /academic/hyphy/hyphy.SlackBuild | |
parent | 91059909c55d99090d019014374a4be668f19e29 (diff) |
academic/hyphy/: update for version 2.5.31
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic/hyphy/hyphy.SlackBuild')
-rw-r--r-- | academic/hyphy/hyphy.SlackBuild | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/academic/hyphy/hyphy.SlackBuild b/academic/hyphy/hyphy.SlackBuild index e22cf3435a1e5..f7039bb235fce 100644 --- a/academic/hyphy/hyphy.SlackBuild +++ b/academic/hyphy/hyphy.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for hyphy -# Copyright 2017-2018 Petar Petrov slackalaxy@gmail.com +# Copyright 2017-2021 Petar Petrov slackalaxy@gmail.com # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=hyphy -VERSION=${VERSION:-2.3.14} +VERSION=${VERSION:-2.5.31} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -71,11 +71,18 @@ find -L . \ # Fix the libraries path on 64 systems and use our compiler flags sed -i "s:lib/hyphy:lib${LIBDIRSUFFIX}/hyphy:g" CMakeLists.txt -sed -i "s:-msse3:$SLKCFLAGS:g" CMakeLists.txt -sed -i "s:-march=corei7-avx -mtune=corei7-avx:$SLKCFLAGS:g" CMakeLists.txt -sed -i "s:-mno-avx:$SLKCFLAGS:g" CMakeLists.txt -sed -i "s:-mno-sse3:$SLKCFLAGS:g" CMakeLists.txt -sed -i "s:-fsigned-char -O3:$SLKCFLAGS:g" CMakeLists.txt + +# Use our flags +sed -i "s:-fsigned-char -O3:$SLKCFLAGS -fsigned-char:g" CMakeLists.txt + +# Use _only_ our flags. You may wish to comment out the lines below to +# enable flags automatically set for you architecture. +sed -i "s:-march=native -mtune=native -mavx::g" CMakeLists.txt +sed -i "s:-mavx::g" CMakeLists.txt +sed -i "s:-mfma::g" CMakeLists.txt +sed -i "s:-msse3::g" CMakeLists.txt +sed -i "s:-mno-avx::g" CMakeLists.txt +sed -i "s:-mno-sse3::g" CMakeLists.txt mkdir -p build cd build @@ -93,12 +100,8 @@ cd .. 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 -# Include a few examples -mkdir -p $PKG/usr/share/$PRGNAM -cp -a Examples $PKG/usr/share/$PRGNAM - mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a help/*.pdf LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION +cp -a LICENSE README.md CONTRIBUTING.md $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild cat $CWD/References > $PKG/usr/doc/$PRGNAM-$VERSION/References |