Skip to content

Commit

Permalink
infernal: add osx-arm64 build (#50997)
Browse files Browse the repository at this point in the history
* infernal: add osx-arm64 build

* edit typo

* edit typo
  • Loading branch information
mencian authored Sep 27, 2024
1 parent 62f0252 commit d7ed8ce
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
8 changes: 6 additions & 2 deletions recipes/infernal/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@

set -ex

export M4="${BUILD_PREFIX}/bin/m4"
export INCLUDE_PATH="${PREFIX}/include"
export LDFLAGS="${LDFLAGS} -L${PREFIX}/lib"

grep -l -r "/usr/bin/perl" . | xargs sed -i.bak -e 's/usr\/bin\/perl/usr\/bin\/env perl/g'

autoreconf -i
autoreconf -if

case $(uname -m) in
"x86_64")
Expand All @@ -19,6 +23,6 @@ case $(uname -m) in
;;
esac

./configure --prefix="${PREFIX}" "${ARCH_OPTS}"
./configure --prefix="${PREFIX}" CC="${CC}" CFLAGS="${CFLAGS} -O3 -L${PREFIX}/lib" "${ARCH_OPTS}"
make -j${CPU_COUNT}
make install
18 changes: 11 additions & 7 deletions recipes/infernal/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ source:
sha256: ad4ddae02f924ca7c85bc8c4a79c9f875af8df96aeb726702fa985cbe752497f

build:
number: 2
number: 3
run_exports:
- {{ pin_subpackage(name, max_pin="x") }}

Expand All @@ -26,6 +26,9 @@ requirements:
- libgomp # [linux]
- llvm-openmp # [osx]
- wget
run:
- libgomp # [linux]
- llvm-openmp # [osx]

test:
commands:
Expand All @@ -41,18 +44,19 @@ test:
- cmstat -h

about:
home: http://eddylab.org/infernal
license: BSD-3-Clause
home: 'http://eddylab.org/infernal'
license: "BSD-3-Clause"
license_family: BSD
license_file: LICENSE
summary: Infernal is for searching DNA sequence databases for RNA structure and sequence similarities.
description: Infernal ("INFERence of RNA ALignment") is for searching DNA sequence databases for RNA structure and sequence similarities.
doc_url: http://eddylab.org/infernal/Userguide.pdf
dev_url: https://github.com/EddyRivasLab/infernal
summary: "Infernal is for searching DNA sequence databases for RNA structure and sequence similarities."
description: "Infernal (INFERence of RNA ALignment) is for searching DNA sequence databases for RNA structure and sequence similarities."
doc_url: "http://eddylab.org/infernal/Userguide.pdf"
dev_url: "https://github.com/EddyRivasLab/infernal"

extra:
additional-platforms:
- linux-aarch64
- osx-arm64
identifiers:
- doi:10.1093/bioinformatics/btt509
- biotools:infernal

0 comments on commit d7ed8ce

Please sign in to comment.