Skip to content

Commit

Permalink
parsnp: add aarch64/arm64 builds
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
  • Loading branch information
martin-g committed Oct 1, 2024
1 parent 8fc154f commit b7c9d65
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
6 changes: 4 additions & 2 deletions recipes/parsnp/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

set -xe

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

Expand All @@ -13,7 +15,7 @@ else
sed -i '/bin_PROGRAMS/d' ./libMUSCLE/Makefile.am
./configure --prefix=$PREFIX CXXFLAGS='-fopenmp'
fi
make -j
make -j ${CPU_COUNT}
make install

cd ..
Expand All @@ -24,7 +26,7 @@ cd ..

./autogen.sh
./configure --with-libmuscle=$PREFIX/include
make LDADD="$LDADD -lMUSCLE-3.7"
make -j ${CPU_COUNT} LDADD="$LDADD -lMUSCLE-3.7"
make install

rm -R muscle/libMUSCLE
Expand Down
11 changes: 8 additions & 3 deletions recipes/parsnp/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ source:
sha256: cde5fb488418764e87942afa747002d01d35e80d7c3a44a71bb2d1bd4d69ed0c

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

Expand All @@ -23,11 +23,11 @@ requirements:
host:
- zlib
- llvm-openmp # [osx]
- openmp # [linux]
- libgomp # [linux]
run:
- python >=3.7
- llvm-openmp # [osx]
- openmp # [linux]
- libgomp # [linux]
- biopython
- numpy
- zlib
Expand All @@ -46,3 +46,8 @@ about:
summary: Parsnp is a command-line-tool for efficient microbial core genome alignment and SNP detection.
doc_url: "https://harvest.readthedocs.io/en/latest/content/parsnp/tutorial.html"
dev_url: https://github.com/marbl/parsnp

extra:
additional-platforms:
- linux-aarch64
- osx-arm64

0 comments on commit b7c9d65

Please sign in to comment.