From 6f3ac448f2bbf1801f9798472d7484794debe2a4 Mon Sep 17 00:00:00 2001 From: Martin Tzvetanov Grigorov Date: Fri, 15 Mar 2024 12:03:06 +0200 Subject: [PATCH] raxml: add linux-aarch64 build Signed-off-by: Martin Tzvetanov Grigorov --- recipes/raxml/build.sh | 7 +++++++ recipes/raxml/meta.yaml | 6 ++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/recipes/raxml/build.sh b/recipes/raxml/build.sh index 7a51b016595ca8..6dd87062457514 100644 --- a/recipes/raxml/build.sh +++ b/recipes/raxml/build.sh @@ -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 diff --git a/recipes/raxml/meta.yaml b/recipes/raxml/meta.yaml index 87550af90f5829..997479c656163e 100644 --- a/recipes/raxml/meta.yaml +++ b/recipes/raxml/meta.yaml @@ -3,7 +3,7 @@ package: version: "8.2.13" build: - number: 0 + number: 1 run_exports: - {{ pin_subpackage('raxml', max_pin="x") }} @@ -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: @@ -31,6 +31,8 @@ about: summary: Phylogenetics - Randomized Axelerated Maximum Likelihood. extra: + additional-platforms: + - linux-aarch64 identifiers: - biotools:raxml - doi:10.1093/bioinformatics/btu033