From 7f7dca85d0c48f914fdf6ec3f31e0d71ac7e03e7 Mon Sep 17 00:00:00 2001 From: mencian Date: Thu, 26 Sep 2024 15:33:29 -0500 Subject: [PATCH] infernal: add osx-arm64 build --- recipes/infernal/build.sh | 8 ++++++-- recipes/infernal/meta.yaml | 16 ++++++++++------ 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/recipes/infernal/build.sh b/recipes/infernal/build.sh index 96e0f326ebabc..712789d396a1e 100644 --- a/recipes/infernal/build.sh +++ b/recipes/infernal/build.sh @@ -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") @@ -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 diff --git a/recipes/infernal/meta.yaml b/recipes/infernal/meta.yaml index 0bb3322d57752..b417e6e8c1c8d 100644 --- a/recipes/infernal/meta.yaml +++ b/recipes/infernal/meta.yaml @@ -10,7 +10,7 @@ source: sha256: ad4ddae02f924ca7c85bc8c4a79c9f875af8df96aeb726702fa985cbe752497f build: - number: 2 + number: 3 run_exports: - {{ pin_subpackage(name, max_pin="x") }} @@ -26,6 +26,9 @@ requirements: - libgomp # [linux] - llvm-openmp # [osx] - wget + run: + - libgomp # [linux] + - llvm-openmp # [osx] test: commands: @@ -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 + 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