Skip to content

Commit

Permalink
raxml: add linux-aarch64 build
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
  • Loading branch information
martin-g committed Mar 22, 2024
1 parent 64c9126 commit 6f3ac44
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 7 additions & 0 deletions recipes/raxml/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,17 @@ Linux) SUF=.gcc;;
*) echo "Unknown architecture"; exit 1;;
esac

ARCH=$(uname -m)

mkdir -p $PREFIX/bin

for PTHREADS in "" .PTHREADS; do
for OPT in "" .SSE3 .AVX2; do

if [ "${ARCH}" == "aarch64" -a "${OPT}" == ".AVX2" ]; then
continue
fi

echo "######## Building Flags opt=$OPT pthread=$PTHREADS os=$SUF ######"
MAKEFILE=Makefile${OPT}${PTHREADS}
if [ -e ${MAKEFILE}${SUF} ]; then
Expand Down
6 changes: 4 additions & 2 deletions recipes/raxml/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package:
version: "8.2.13"

build:
number: 0
number: 1
run_exports:
- {{ pin_subpackage('raxml', max_pin="x") }}

Expand All @@ -22,7 +22,7 @@ test:
- raxmlHPC-PTHREADS -h > /dev/null
- raxmlHPC-SSE3 -h > /dev/null
- raxmlHPC-PTHREADS-SSE3 -h > /dev/null
- raxmlHPC-AVX2 -h > /dev/null
- '[ "$(uname -m)" != "aarch64" ] && raxmlHPC-AVX2 -h > /dev/null'
- raxmlHPC-PTHREADS-AVX2 -h > /dev/null

about:
Expand All @@ -31,6 +31,8 @@ about:
summary: Phylogenetics - Randomized Axelerated Maximum Likelihood.

extra:
additional-platforms:
- linux-aarch64
identifiers:
- biotools:raxml
- doi:10.1093/bioinformatics/btu033
Expand Down

0 comments on commit 6f3ac44

Please sign in to comment.