Skip to content

Commit

Permalink
clustalw: add arm64 build (#53702)
Browse files Browse the repository at this point in the history
  • Loading branch information
mencian authored Feb 5, 2025
1 parent f6370ac commit 55d7f74
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 124 deletions.
19 changes: 15 additions & 4 deletions recipes/clustalw/build.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
#!/bin/bash

export M4="${BUILD_PREFIX}/bin/m4"
export CFLAGS="${CFLAGS} -O3"
export CXXFLAGS="${CXXFLAGS} -O3 -std=c++14"
export CPPFLAGS="${CPPFLAGS} -I${PREFIX}/include"
export LDFLAGS="${LDFLAGS} -L${PREFIX}/lib"

# use newer config.guess and config.sub that support linux-aarch64
cp ${RECIPE_DIR}/config.* .
cp -rf ${RECIPE_DIR}/config.* .

autoreconf -if
./configure --prefix="${PREFIX}" --disable-option-checking \
--enable-silent-rules --disable-dependency-tracking \
CC="${CC}" CXX="${CXX}" CFLAGS="${CFLAGS}" \
CXXFLAGS="${CXXFLAGS}" CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"

mkdir -p ${PREFIX}
./configure --prefix=$PREFIX
make -j"${CPU_COUNT}"
make install
ln -s ${PREFIX}/bin/clustalw2 ${PREFIX}/bin/clustalw
ln -sf ${PREFIX}/bin/clustalw2 ${PREFIX}/bin/clustalw
106 changes: 0 additions & 106 deletions recipes/clustalw/build_failure.osx-64.yaml

This file was deleted.

39 changes: 25 additions & 14 deletions recipes/clustalw/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,40 +1,51 @@
{% set name = "clustalw" %}
{% set version = "2.1" %}

package:
name: clustalw
version: 2.1
name: {{ name }}
version: {{ version }}

source:
url: http://www.clustal.org/download/current/clustalw-2.1.tar.gz
md5: 144df8440a0ae083d5167616c8ceeb41
url: http://www.clustal.org/download/current/{{ name }}-{{ version }}.tar.gz
sha256: e052059b87abfd8c9e695c280bfba86a65899138c82abccd5b00478a80f49486
patches:
- patch # [osx]

build:
number: 11
number: 12
run_exports:
- {{ pin_subpackage('clustalw', max_pin="x.x") }}

- {{ pin_subpackage('clustalw', max_pin="x") }}

requirements:
build:
- make
- {{ compiler('cxx') }}
- autoconf
- automake
- libtool

test:
commands:
- clustalw2 H 2>&1 | grep "CLUSTAL 2.1"
- clustalw H 2>&1 | grep "CLUSTAL 2.1"

about:
home: http://www.clustal.org/clustal2/
license: "GNU Lesser GPL"
summary: ClustalW2 is a general purpose multiple sequence alignment program for DNA or proteins.
home: "http://www.clustal.org/clustal2"
license: "LGPL-3.0-or-later"
license_family: LGPL
license_file: "COPYING.LESSER"
summary: "ClustalW2 is a general purpose multiple sequence alignment program for DNA or proteins."
doc_url: "http://www.clustal.org/download/clustalw_help.txt"

extra:
additional-platforms:
- linux-aarch64
skip-lints:
- should_not_be_noarch_source
- osx-arm64
identifiers:
- biotools:trinity
- doi:10.1038/nbt.1883
- biotools:clustalw_biolib
- biotools:ClustalW2_Phylogeny_API_EBI
- biotools:clustalw2_phylogeny_ebi
- biotools:clustalw2_ebi
- doi:10.1093/bioinformatics/btm404
- doi:10.1093/nar/22.22.4673
- usegalaxy-eu:clustalw

0 comments on commit 55d7f74

Please sign in to comment.