summaryrefslogtreecommitdiff
path: root/gnu/packages/image-processing.scm
diff options
context:
space:
mode:
authorJake Forster <jakecameron.forster@gmail.com>2025-07-25 23:35:31 +0930
committerAndreas Enge <andreas@enge.fr>2025-07-31 21:18:34 +0200
commit969d58090b4a3438ad4b6b7a0091cd696b3e2998 (patch)
tree93705621b207b6301b950f05f88adbec0e2f63d3 /gnu/packages/image-processing.scm
parent61a1741f3888a8ab3f698c4ed0973789c66c8914 (diff)
gnu: Add insight-toolkit-legacy.
This is a hidden variant of insight-toolkit needed for itk-snap. * gnu/packages/image-processing.scm (insight-toolkit-legacy): New variable. Change-Id: Ief18c1b4241241881b5b632121fc463db5b3c286 Signed-off-by: Andreas Enge <andreas@enge.fr>
Diffstat (limited to 'gnu/packages/image-processing.scm')
-rw-r--r--gnu/packages/image-processing.scm31
1 files changed, 31 insertions, 0 deletions
diff --git a/gnu/packages/image-processing.scm b/gnu/packages/image-processing.scm
index 6c8dc1b8c50..bbd152ed557 100644
--- a/gnu/packages/image-processing.scm
+++ b/gnu/packages/image-processing.scm
@@ -1406,6 +1406,37 @@ the medical environment, a CT scan may be aligned with a MRI scan in order to
1406combine the information contained in both.") 1406combine the information contained in both.")
1407 (license license:asl2.0)))) 1407 (license license:asl2.0))))
1408 1408
1409;; Provide variant of insight-toolkit (ITK) built with ITK_LEGACY_REMOVE=OFF.
1410;; ITK-SNAP version 4.2.2 and 4.4.0-alpha3 require ITK >= 5.4 and for ITK to
1411;; be built this way. Note that enabling Python wrapping forces this option
1412;; to ON, so Python wrapping is not enabled for this build.
1413(define insight-toolkit-legacy
1414 (hidden-package
1415 (package/inherit insight-toolkit
1416 ;; Unfortunately we cannot remove the 'python output because it is
1417 ;; referenced in #:configure-flags below.
1418 (name "insight-toolkit-legacy")
1419 (arguments
1420 (substitute-keyword-arguments (package-arguments insight-toolkit)
1421 ((#:configure-flags cf '())
1422 #~(filter (lambda (flag)
1423 (not (or
1424 ;; Remove these flags to restore the default
1425 ;; ITK_LEGACY_REMOVE=OFF.
1426 (string=? "-DITK_WRAPPING=ON" flag)
1427 (string=? "-DITK_WRAP_PYTHON=ON" flag)
1428 ;; These flags are now unused.
1429 (string-prefix? "-DPY_SITE_PACKAGES_PATH=" flag)
1430 (string-prefix? "-DITK_USE_PYTHON_LIMITED_API=" flag)
1431 (string-prefix? "-DITK_USE_SYSTEM_CASTXML=" flag)
1432 (string-prefix? "-DITK_USE_SYSTEM_SWIG=" flag))))
1433 #$cf))))
1434 (inputs (modify-inputs (package-inputs insight-toolkit)
1435 (delete "python")))
1436 (native-inputs (modify-inputs (package-native-inputs insight-toolkit)
1437 (delete "castxml")
1438 (delete "swig"))))))
1439
1409(define-public insight-toolkit-4 1440(define-public insight-toolkit-4
1410 (package (inherit insight-toolkit) 1441 (package (inherit insight-toolkit)
1411 (version "4.13.2") 1442 (version "4.13.2")