Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add recipe for ANTs #23005

Merged
merged 5 commits into from
Jun 22, 2023
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions recipes/ants/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
mkdir build
if errorlevel 1 exit 1
cd build
if errorlevel 1 exit 1

cmake -G Ninja ^
%CMAKE_ARGS% ^
-DCMAKE_INSTALL_LIBDIR:STRING=%LIBRARY_LIB% ^
-DCMAKE_INSTALL_PREFIX:STRING=%LIBRARY_PREFIX% ^
-DCMAKE_PREFIX_PATH:STRING=%LIBRARY_PREFIX% ^
-DBUILD_SHARED_LIBS:BOOL=ON ^
-DANTS_SUPERBUILD:BOOL=OFF ^
-DUSE_SYSTEM_ITK:BOOL=ON ^
%SRC_DIR%
if errorlevel 1 exit 1

cmake --build . --config RelWithDebInfo --parallel %CPU_COUNT% --target install
if errorlevel 1 exit 1
ocefpaf marked this conversation as resolved.
Show resolved Hide resolved
18 changes: 18 additions & 0 deletions recipes/ants/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env bash

set -ex

mkdir build
cd build

cmake -G Ninja \
${CMAKE_ARGS} \
-DCMAKE_INSTALL_LIBDIR:STRING=lib \
-DCMAKE_INSTALL_PREFIX:STRING=${PREFIX} \
-DCMAKE_PREFIX_PATH:STRING=${PREFIX} \
-DBUILD_SHARED_LIBS:BOOL=ON \
-DANTS_SUPERBUILD:BOOL=OFF \
-DUSE_SYSTEM_ITK:BOOL=ON \
${SRC_DIR}

cmake --build . --config RelWithDebInfo --parallel ${CPU_COUNT} --target install
ghisvail marked this conversation as resolved.
Show resolved Hide resolved
43 changes: 43 additions & 0 deletions recipes/ants/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{% set name = "ANTs" %}
{% set version = "2.4.4" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://github.com/ANTsX/ANTs/archive/v{{ version }}.tar.gz
sha256: 3a872ae60f00665c7b77b5d3727b1f9e5edaf33fe96024abb3289cee917e11d6

build:
number: 0
skip: true # [win]

requirements:
build:
- {{ compiler('cxx') }}
- cmake >=3.16.3
- ninja
host:
- boost-cpp
- libitk-devel
run:
- libitk

test:
commands:
- antsRegistration --help

about:
home: http://stnava.github.io/ANTs/
license: BSD-3-Clause
license_family: BSD
license_file: COPYING.txt
summary: >
ANTs computes high-dimensional mappings to capture the statistics of brain structure and function
doc_url: http://stnava.github.io/ANTsDoc
dev_url: https://github.com/ANTsX/ANTs/wiki

extra:
recipe-maintainers:
- ghisvail