Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build raxml for osx-arm64 #49098

Merged
merged 8 commits into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 16 additions & 7 deletions recipes/raxml/build.sh
Original file line number Diff line number Diff line change
@@ -1,19 +1,28 @@
#!/bin/bash

case `uname` in
Darwin) SUF=.mac;;
Linux) SUF=.gcc;;
*) echo "Unknown architecture"; exit 1;;
set -exo pipefail

case $(uname) in
Darwin) SUF=.mac ;;
Linux) SUF=.gcc ;;
*)
echo "Unknown architecture"
exit 1
;;
esac

ARCH=$(uname -m)

mkdir -p $PREFIX/bin
mkdir -p "$PREFIX"/bin

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

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

if [[ ${ARCH} == "arm64" && ("${OPT}" == ".AVX2" || "${OPT}" == ".SSE3" || "${PTHREADS}" == ".PTHREADS") ]]; then
continue
fi

Expand All @@ -25,7 +34,7 @@ for PTHREADS in "" .PTHREADS; do
MAKEFILE=${MAKEFILE}.gcc
fi
make -f ${MAKEFILE} CC=$CC
martin-g marked this conversation as resolved.
Show resolved Hide resolved
mv raxmlHPC* $PREFIX/bin
mv raxmlHPC* "$PREFIX"/bin
make -f ${MAKEFILE} clean
done
done
13 changes: 7 additions & 6 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: 1
number: 2
run_exports:
- {{ pin_subpackage('raxml', max_pin="x") }}

Expand All @@ -19,11 +19,11 @@ requirements:
test:
commands:
- raxmlHPC -h > /dev/null
- raxmlHPC-PTHREADS -h > /dev/null
- raxmlHPC-SSE3 -h > /dev/null
- raxmlHPC-PTHREADS-SSE3 -h > /dev/null
- 'raxmlHPC-AVX2 -h > /dev/null' # [not aarch64]
- 'raxmlHPC-PTHREADS-AVX2 -h > /dev/null' # [not aarch64]
- raxmlHPC-PTHREADS -h > /dev/null # [not arm64]
- raxmlHPC-SSE3 -h > /dev/null # [not arm64]
- raxmlHPC-PTHREADS-SSE3 -h > /dev/null # [not arm64]
- 'raxmlHPC-AVX2 -h > /dev/null' # [not (aarch64 or arm64)]
- 'raxmlHPC-PTHREADS-AVX2 -h > /dev/null' # [not (aarch64 or arm64)]

about:
home: http://sco.h-its.org/exelixis/web/software/raxml/index.html
Expand All @@ -33,6 +33,7 @@ about:
extra:
additional-platforms:
- linux-aarch64
- osx-arm64
identifiers:
- biotools:raxml
- doi:10.1093/bioinformatics/btu033
Expand Down