Skip to content

Commit

Permalink
remove patch
Browse files Browse the repository at this point in the history
  • Loading branch information
mencian committed Nov 4, 2024
1 parent 038349b commit c193948
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 570 deletions.
11 changes: 8 additions & 3 deletions recipes/cmaple/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,16 @@ set -ex
sed -i.bak 's/-mavx/-mno-avx -mno-avx2 -march=nocona -mtune=haswell/' CMakeLists.txt

DCMAKE_ARGS=""
if [ "$(uname)" == Darwin ]; then
if [[ "$(uname)" == Darwin ]]; then
CC=$(which "$CC")
CXX=$(which "$CXX")
AR=$(which "$AR")
RANLIB=$(which "$RANLIB")
DCMAKE_ARGS=(-DCMAKE_C_COMPILER="${CC}" -DCMAKE_CXX_COMPILER="${CXX}"
-DCMAKE_CXX_COMPILER_AR="${AR}" -DCMAKE_CXX_COMPILER_RANLIB="${RANLIB}")
export CONFIG_ARGS="-DCMAKE_FIND_FRAMEWORK=NEVER -DCMAKE_FIND_APPBUNDLE=NEVER"
else
export CONFIG_ARGS=""
fi

case $(uname -m) in
Expand All @@ -27,10 +30,12 @@ aarch64)
esac

mkdir build
cmake -S . -B build -DCMAKE_INSTALL_PREFIX="${PREFIX}" -G Ninja \
cmake -S . -B build -DCMAKE_INSTALL_PREFIX="${PREFIX}" \
-DCMAKE_BUILD_TYPE=Release -G Ninja \
"${DCMAKE_ARGS[@]}" \
-DBUILD_GMOCK=OFF -DINSTALL_GTEST=OFF \
-Wno-dev -Wno-deprecated --no-warn-unused-cli
-Wno-dev -Wno-deprecated --no-warn-unused-cli \
"${CONFIG_ARGS}"

VERBOSE=1 cmake --build build --target install -j ${JOBS}

Expand Down
12 changes: 8 additions & 4 deletions recipes/cmaple/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
{% set name = "cmaple" %}
{% set version = "1.1.0" %}
{% set sha256 = "72079ac3881840ce6a6d45603202a2ab9a399aa8ebaf51fbdcd85337696e4435" %}

package:
name: {{ name }}
version: {{ version | replace("-", "_") }}

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

source:
- url: https://github.com/iqtree/{{ name }}/archive/refs/tags/v{{ version }}.tar.gz
sha256: {{ sha256 }}
# Patch necessary to build on arm, can be removed with next release
patches:
- patch

requirements:
build:
- {{ compiler('c') }}
Expand All @@ -24,6 +25,7 @@ requirements:
host:
- libgomp # [linux]
- llvm-openmp # [osx]

test:
source_files:
- example/input.fa
Expand All @@ -33,14 +35,16 @@ test:
- cmaple-aa
# Mulled builds don't work with source_files
- cmaple -aln example/input.fa # [osx]

about:
home: "https://github.com/iqtree/cmaple"
dev_url: "https://github.com/iqtree/cmaple"
doc_url: "https://github.com/iqtree/cmaple/wiki"
license: "GPL-2.0"
license_family: GPL2
license_file: LICENSE
summary: "MAximum Parsimonious Likelihood Estimation in C/C++"
summary: "MAximum Parsimonious Likelihood Estimation in C/C++."

extra:
additional-platforms:
- linux-aarch64
Expand Down
Loading

0 comments on commit c193948

Please sign in to comment.