summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Darwin <bcdarwin@gmail.com>2021-05-20 17:36:06 -0400
committerGitHub <noreply@github.com>2021-05-20 21:36:06 +0000
commitfcb8942c884add2c837e8e4d324d767c8d8049bb (patch)
treee2bff15e7f05814acfec60db673eb80dbbbe4d70
parent30991cd9cdafd782dcbeadebc2341b7718dffa0e (diff)
downloadspack-fcb8942c884add2c837e8e4d324d767c8d8049bb.tar.gz
spack-fcb8942c884add2c837e8e4d324d767c8d8049bb.tar.bz2
spack-fcb8942c884add2c837e8e4d324d767c8d8049bb.tar.xz
spack-fcb8942c884add2c837e8e4d324d767c8d8049bb.zip
minc-toolkit: new package (#23818)
-rw-r--r--var/spack/repos/builtin/packages/minc-toolkit/package.py35
1 files changed, 35 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/minc-toolkit/package.py b/var/spack/repos/builtin/packages/minc-toolkit/package.py
new file mode 100644
index 0000000000..bce163e2eb
--- /dev/null
+++ b/var/spack/repos/builtin/packages/minc-toolkit/package.py
@@ -0,0 +1,35 @@
+# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+
+
+class MincToolkit(CMakePackage):
+ """Bundles multiple MINC-related packages"""
+
+ homepage = "https://github.com/BIC-MNI/minc-toolkit-v2"
+ git = "https://github.com/BIC-MNI/minc-toolkit-v2.git"
+
+ version('1.9.18.1', commit="38597c464b6e93eda680ab4a9e903366d53d7737",
+ submodules=True)
+
+ variant('visualisation', default=False,
+ description="Build visual tools (Display, register, etc.)")
+
+ depends_on('perl')
+ depends_on('flex', type='build')
+ depends_on('bison', type='build')
+ depends_on('zlib', type='link')
+ depends_on('freeglut', when="+visualisation")
+
+ def cmake_args(self):
+ return [self.define_from_variant('MT_BUILD_VISUAL_TOOLS', 'visualisation'),
+ # newer ANTs packaged separately
+ "-DMT_BUILD_ANTS=OFF",
+ # build error; should package newer c3d separately
+ "-DMT_BUILD_C3D=OFF",
+ # should be packaged separately with newer ITK
+ "-DMT_BUILD_ELASTIX=OFF"
+ ]