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 mrtrix3 #53168

Merged
merged 21 commits into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
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
24 changes: 24 additions & 0 deletions recipes/mrtrix3/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/usr/bin/env bash

set -x

export RPATH="${PREFIX}/lib"
export CXXFLAGS="${CXXFLAGS} -idirafter ${PREFIX}/include"
export LDFLAGS="${LDFLAGS} -L${PREFIX}/lib -lxcb"
export LINKFLAGS="-L${PREFIX}/lib -lxcb"
export LINKLIB_FLAGS="${LINKFLAGS}"
export EIGEN_CFLAGS="-idirafter ${PREFIX}/include/eigen3"

mkdir -p "${PREFIX}"/{bin,lib,share}

ln -s ${CC} ${CONDA_PREFIX}/bin/gcc
ln -s ${CXX} ${CONDA_PREFIX}/bin/g++

ARCH=native CFLAGS="${CXXFLAGS}" ./configure -conda -openmp || (cat configure.log && exit 123)

./build

cp -r bin lib share "${PREFIX}"

unlink ${CONDA_PREFIX}/bin/g++
unlink ${CONDA_PREFIX}/bin/gcc
70 changes: 70 additions & 0 deletions recipes/mrtrix3/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{% set name = "mrtrix3" %}
{% set version = "3.0.4" %}

package:
name: {{ name }}
version: {{ version }}

source:
url: https://github.com/MRtrix3/mrtrix3/archive/refs/tags/{{ version }}.tar.gz
sha256: f1d1aa289cfc3e46e3a8eca93594b23d061c6d50a0cd03727433a7e2cd14f71a

build:
skip: True # [osx]
number: 0
run_exports:
- {{ pin_subpackage(name, max_pin='x') }}

requirements:
build:
- {{ compiler('cxx') }}
- pkg-config
- {{ cdt('xorg-x11-proto-devel') }} # [linux]
- {{ cdt('libx11-devel') }} # [linux]
- {{ cdt('libxext-devel') }} # [linux]
- {{ cdt('libxrender-devel') }} # [linux]
- {{ cdt('mesa-libgl-devel') }} # [linux]
- {{ cdt('mesa-libegl-devel') }} # [linux]
- {{ cdt('mesa-dri-drivers') }} # [linux]
- {{ cdt('libxau-devel') }} # [linux]
- {{ cdt('libselinux-devel') }} # [linux]
- {{ cdt('libxdamage') }} # [linux]
- {{ cdt('libxdamage-devel') }} # [linux]
- {{ cdt('libxfixes') }} # [linux]
- {{ cdt('libxfixes-devel') }} # [linux]
- {{ cdt('libxxf86vm') }} # [linux]
- {{ cdt('libxxf86vm-devel') }} # [linux]
- qt >=5.15
- python
- libgomp # [linux]
- llvm-openmp # [osx]
host:
- eigen >=3.2
- libtiff >=4.0
- zlib
- fftw >=3.0
- libxcb
run:
- qt >=5.15
- zlib
- libtiff >=4.0
- fftw >=3.0

test:
commands:
- mrconvert --help

about:
home: https://www.mrtrix.org
license: MPL-2.0
license_family: MOZILLA
license_file: LICENCE.txt
summary: A set of tools to perform various advanced diffusion MRI analyses,
including constrained spherical deconvolution (CSD), probabilistic tractography,
track-density imaging, and apparent fibre density
dev_url: https://github.com/MRtrix3/mrtrix3
doc_url: https://www.mrtrix.org/documentation/

extra:
additional-platforms:
- linux-aarch64
Loading