mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-06 08:26:50 +01:00
academic/hyphy/: update for version 2.5.31
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
91059909c5
commit
f242439635
2 changed files with 18 additions and 15 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="hyphy"
|
||||
VERSION="2.3.14"
|
||||
VERSION="2.5.31"
|
||||
HOMEPAGE="https://veg.github.io/hyphy-site/"
|
||||
DOWNLOAD="https://github.com/veg/hyphy/archive/2.3.14/hyphy-2.3.14.tar.gz"
|
||||
MD5SUM="d82809929d213e236078ed4853ea3962"
|
||||
DOWNLOAD="https://github.com/veg/hyphy/archive/2.5.31/hyphy-2.5.31.tar.gz"
|
||||
MD5SUM="f4d6e48aa47b657810e29dacf183860b"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES="openmpi"
|
||||
|
|
Loading…
Reference in a new issue