Skip to content

Commit

Permalink
Add recipe for mrtrix3
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
  • Loading branch information
martin-g committed Jan 10, 2025
1 parent 31cfa2e commit 0ed2df2
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 0 deletions.
14 changes: 14 additions & 0 deletions recipes/mrtrix3/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash

set -xe

export CFLAGS="-idirafter ${PREFIX}/include"
export LDFLAGS="-L${PREFIX}/lib"
export LINKFLAGS="-L${PREFIX}/lib"
export EIGEN_CFLAGS="-idirafter ${PREFIX}/include/eigen3"

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

./configure -conda
./build
cp -r bin lib share "${PREFIX}"
64 changes: 64 additions & 0 deletions recipes/mrtrix3/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{% 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:
number: 0
run_exports:
- {{ pin_subpackage(name, max_pin='x') }}

requirements:
build:
- {{ compiler('cxx') }}
- pkg-config
host:
- python
- eigen >=3.2
- libtiff >=4.0
- zlib
- fftw >=3.0
- qt >=5.15
- {{ 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]

run:
- qt >=5.15
- zlib
- libtiff >=4.0
- fftw >=3.0

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
- osx-arm64

0 comments on commit 0ed2df2

Please sign in to comment.