1515 #:use-module (gnu packages tbb)
1616 #:use-module (gnu packages xiph) ; Theora lib.
1717 #:use-module (gnu packages xml) ; libxml2, expat
18+ #:use-module (gnu packages) ; libxml2, expat
1819 #:use-module (guix build-system cmake)
1920 #:use-module (guix download)
21+ #:use-module (guix gexp)
2022 #:use-module ((guix licenses)
2123 #:prefix license:)
2224 #:use-module (guix packages)
2325 #:use-module (guix-systole packages itk)
2426 #:use-module (guix-systole packages maths)
25- #:use-module (guix-systole packages vtk))
27+ #:use-module (guix-systole packages vtk)
28+ #:use-module (guix-systole packages))
2629
2730; ; --------------------------- CTK ---------------------------
2831(define-public ctk
2932 (package
30- (name " ctk" )
31- (version " 0.1" )
32- (source
33- (origin
34- (method url-fetch)
35- (uri
36- " https://github.com/commontk/CTK/archive/82cae5781621845486bad2697aed095f04cfbe76.tar.gz" )
37- (sha256
38- (base32 " 1g2jv4hjimf4baqbmpmc29ara2f8gk8604g1v8k243x882f0ls9z" ))))
39- (build-system cmake-build-system)
40- (arguments
41- ' (#:tests? #f
42- #:parallel-build? #t ; Scheme building using multiple threads.
43- #:configure-flags
44- (list ; ; --------------------------- Build Flags ---------------------------
45- " -DCTK_USE_GIT_PROTOCOL:BOOL=OFF" ; turning off git protocol, as it is not supported by modern GitHub
46- " -DCTK_SUPERBUILD:BOOL=OFF" ; Disable Superbuild
47- " -DBUILD_TESTING:BOOL=OFF"
48- " -DCTK_INSTALL_LIB_DIR=lib" ; Hardcoded path for CTK install directory. Fix for CTK-Widgets.
33+ (name " ctk" )
34+ (version " 0.1" )
35+ (source
36+ (origin
37+ (method url-fetch)
38+ (uri
39+ " https://github.com/commontk/CTK/archive/82cae5781621845486bad2697aed095f04cfbe76.tar.gz" )
40+ (sha256
41+ (base32 " 1g2jv4hjimf4baqbmpmc29ara2f8gk8604g1v8k243x882f0ls9z" ))
42+ (patches (search-patches
43+ " 0001-ENH-Fix-locating-DCMTK-when-using-CTK.patch" ))
44+ ))
45+ (build-system cmake-build-system)
46+ (arguments
47+ (list #:tests? #f
48+ #:parallel-build? #t ; Scheme building using multiple threads.
49+ #:configure-flags
50+ #~(list ; ; --------------------------- Build Flags ---------------------------
51+ " -DCTK_USE_GIT_PROTOCOL:BOOL=OFF" ; turning off git protocol, as it is not supported by modern GitHub
52+ " -DCTK_SUPERBUILD:BOOL=OFF" ; Disable Superbuild
53+ " -DBUILD_TESTING:BOOL=OFF"
54+ " -DCTK_INSTALL_LIB_DIR=lib" ; Hardcoded path for CTK install directory. Fix for CTK-Widgets.
4955
50- ; ; NOTE: (from Slicer) These may need to change in the future.
51- " -DCTK_BUILD_QTDESIGNER_PLUGINS:BOOL=ON"
52- ; ; "-DCTK_BUILD_QTDESIGNER_PLUGINS:BOOL=${Slicer_BUILD_QT_DESIGNER_PLUGINS}"
53- ; ; "-DCTK_INSTALL_QTPLUGIN_DIR:STRING=${Slicer_INSTALL_QtPlugins_DIR}"
54- ; ; -------------------------- CTKdata flags --------------------------
55- ; ; NOTE: Testing should be reviewed and added at some point
56- " -DCTK_ENABLE_CTKDATA:BOOL=OFF" ; CTKData is only needed for testing
57- ; ; ---------------------------- VTK flags ----------------------------
58- " -DCTK_USE_SYSTEM_VTK:BOOL=ON"
59- ; ; ---------------------------- ITK flags ----------------------------
60- " -DCTK_USE_SYSTEM_ITK:BOOL=ON"
61- ; ; --------------------------- DICOM Flags ---------------------------
62- " -DCTK_USE_SYSTEM_DCMTK:BOOL=ON"
63- " -DCTK_APP_ctkDICOM:BOOL=ON"
64- " -DCTK_LIB_DICOM/Core:BOOL=ON"
65- " -DCTK_LIB_DICOM/Widgets:BOOL=ON"
66- ; ; ------------------------ CTK Widgets Flags-------------------------
67- " -DCTK_LIB_Widgets:BOOL=ON"
68- " -DCTK_LIB_Visualization/VTK/Widgets:BOOL=ON" ; \
69- " -DCTK_LIB_Visualization/VTK/Widgets_USE_TRANSFER_FUNCTION_CHARTS:BOOL=ON" ; -> Needs GuiSupportQT
70- " -DCTK_LIB_ImageProcessing/ITK/Core:BOOL=ON" ; /
71- " -DCTK_LIB_PluginFramework:BOOL=OFF"
72- " -DCTK_PLUGIN_org.commontk.eventbus:BOOL=OFF"
73- ; ; ---------------------- PythonQt wrapping ----------------------
74- " -DCTK_LIB_Scripting/Python/Core:BOOL=OFF"
75- " -DCTK_LIB_Scripting/Python/Core_PYTHONQT_USE_VTK:BOOL=OFF"
76- " -DCTK_LIB_Scripting/Python/Core_PYTHONQT_WRAP_QTCORE:BOOL=OFF"
77- " -DCTK_LIB_Scripting/Python/Core_PYTHONQT_WRAP_QTGUI:BOOL=OFF"
78- " -DCTK_LIB_Scripting/Python/Core_PYTHONQT_WRAP_QTUITOOLS:BOOL=OFF"
79- " -DCTK_LIB_Scripting/Python/Core_PYTHONQT_WRAP_QTNETWORK:BOOL=OFF"
80- " -DCTK_LIB_Scripting/Python/Core_PYTHONQT_WRAP_QTMULTIMEDIA:BOOL=OFF"
81- " -DCTK_LIB_Scripting/Python/Core_PYTHONQT_WRAP_QTWEBKIT:BOOL=OFF"
82- " -DCTK_LIB_Scripting/Python/Widgets:BOOL=OFF"
83- " -DCTK_ENABLE_Python_Wrapping:BOOL=OFF" )))
84- (inputs
85- (list qtbase-5
86- qttools-5
87- qtsvg-5
88- dcmtk
89- vtk-slicer
90- itk-slicer
56+ ; ; NOTE: (from Slicer) These may need to change in the future.
57+ " -DCTK_BUILD_QTDESIGNER_PLUGINS:BOOL=ON"
58+ ; ; "-DCTK_BUILD_QTDESIGNER_PLUGINS:BOOL=${Slicer_BUILD_QT_DESIGNER_PLUGINS}"
59+ ; ; "-DCTK_INSTALL_QTPLUGIN_DIR:STRING=${Slicer_INSTALL_QtPlugins_DIR}"
60+ ; ; -------------------------- CTKdata flags --------------------------
61+ ; ; NOTE: Testing should be reviewed and added at some point
62+ " -DCTK_ENABLE_CTKDATA:BOOL=OFF" ; CTKData is only needed for testing
63+ ; ; ---------------------------- VTK flags ----------------------------
64+ " -DCTK_USE_SYSTEM_VTK:BOOL=ON"
65+ ; ; ---------------------------- ITK flags ----------------------------
66+ " -DCTK_USE_SYSTEM_ITK:BOOL=ON"
67+ ; ; --------------------------- DICOM Flags ---------------------------
68+ " -DCTK_USE_SYSTEM_DCMTK:BOOL=ON"
69+ " -DCTK_APP_ctkDICOM:BOOL=ON"
70+ " -DCTK_LIB_DICOM/Core:BOOL=ON"
71+ " -DCTK_LIB_DICOM/Widgets:BOOL=ON"
72+ ; ; ------------------------ CTK Widgets Flags-------------------------
73+ " -DCTK_LIB_Widgets:BOOL=ON"
74+ " -DCTK_LIB_Visualization/VTK/Widgets:BOOL=ON" ; \
75+ " -DCTK_LIB_Visualization/VTK/Widgets_USE_TRANSFER_FUNCTION_CHARTS:BOOL=ON" ; -> Needs GuiSupportQT
76+ " -DCTK_LIB_ImageProcessing/ITK/Core:BOOL=ON" ; /
77+ " -DCTK_LIB_PluginFramework:BOOL=OFF"
78+ " -DCTK_PLUGIN_org.commontk.eventbus:BOOL=OFF"
79+ ; ; ---------------------- PythonQt wrapping ----------------------
80+ " -DCTK_LIB_Scripting/Python/Core:BOOL=OFF"
81+ " -DCTK_LIB_Scripting/Python/Core_PYTHONQT_USE_VTK:BOOL=OFF"
82+ " -DCTK_LIB_Scripting/Python/Core_PYTHONQT_WRAP_QTCORE:BOOL=OFF"
83+ " -DCTK_LIB_Scripting/Python/Core_PYTHONQT_WRAP_QTGUI:BOOL=OFF"
84+ " -DCTK_LIB_Scripting/Python/Core_PYTHONQT_WRAP_QTUITOOLS:BOOL=OFF"
85+ " -DCTK_LIB_Scripting/Python/Core_PYTHONQT_WRAP_QTNETWORK:BOOL=OFF"
86+ " -DCTK_LIB_Scripting/Python/Core_PYTHONQT_WRAP_QTMULTIMEDIA:BOOL=OFF"
87+ " -DCTK_LIB_Scripting/Python/Core_PYTHONQT_WRAP_QTWEBKIT:BOOL=OFF"
88+ " -DCTK_LIB_Scripting/Python/Widgets:BOOL=OFF"
89+ " -DCTK_ENABLE_Python_Wrapping:BOOL=OFF"
90+ (string-append " -DDCMTK_DIR:PATH="
91+ #$(this-package-input " dcmtk" )
92+ " /lib/cmake/dcmtk" )
93+ )))
94+ (inputs
95+ (list qtbase-5
96+ qttools-5
97+ qtsvg-5
98+ dcmtk
99+ vtk-slicer
100+ itk-slicer
91101 ; --- Libraries for Visualization VTK widgets and ITK core ---
92102 hdf5-1.10
93103 python
111121 (home-page " github.com/commontk/CTK" )
112122 (synopsis " A set of common support code for medical imaging, surgical
113123navigation, and related purposes. " )
114- (description
115- " The goal of CTK is to support biomedical image computing. CTK
124+ (description
125+ " The goal of CTK is to support biomedical image computing. CTK
116126code is licensed under Apache 2.0. This means that users of CTK are allowed to
117127use the code for academic, commercial, or other purposes without paying license
118128fees or being restricted in their ability to redistribute their code or keep it
@@ -122,30 +132,30 @@ CTK works on topics that are not covered by existing toolkits that support the
122132mutual interest and needs of the CTK community. The main scope of current CTK
123133efforts includes the topics DICOM, DICOM Application Hosting, Widgets, and
124134Plugin Framework." )
125- (license license:asl2.0)))
135+ (license license:asl2.0)))
126136
127137(define-public ctkapplauncher
128138 (package
129- (name " ctkapplauncher" )
130- (version " 0.1" )
131- (source
132- (origin
133- (method url-fetch)
134- (uri
135- " https://github.com/commontk/AppLauncher/archive/8759e03985738b8a8f3eb74ab516ba4e8ef29988.tar.gz" )
136- (sha256
137- (base32 " 1lrrcg9s39n357z2dhfhv8ff99biivdnwwxaggwvnpv9knppaz83" ))))
138- (build-system cmake-build-system)
139- (arguments
140- ' (#:tests? #f
141- #:configure-flags (list " -DBUILD_TESTING=OFF"
142- " -DCTKAppLauncher_QT_VERSION=5"
143- " -DCTKAppLauncher_INSTALL_LauncherLibrary=ON"
144- )))
145- (inputs (list qtbase-5))
146- (home-page " http://www.commontk.org/" )
147- (synopsis
148- " Simple and small program allowing to set the environment of any executable." )
149- (description
150- " Simple and small program allowing to set the environment of any executable." )
151- (license license:asl2.0)))
139+ (name " ctkapplauncher" )
140+ (version " 0.1" )
141+ (source
142+ (origin
143+ (method url-fetch)
144+ (uri
145+ " https://github.com/commontk/AppLauncher/archive/8759e03985738b8a8f3eb74ab516ba4e8ef29988.tar.gz" )
146+ (sha256
147+ (base32 " 1lrrcg9s39n357z2dhfhv8ff99biivdnwwxaggwvnpv9knppaz83" ))))
148+ (build-system cmake-build-system)
149+ (arguments
150+ ' (#:tests? #f
151+ #:configure-flags (list " -DBUILD_TESTING=OFF"
152+ " -DCTKAppLauncher_QT_VERSION=5"
153+ " -DCTKAppLauncher_INSTALL_LauncherLibrary=ON"
154+ )))
155+ (inputs (list qtbase-5))
156+ (home-page " http://www.commontk.org/" )
157+ (synopsis
158+ " Simple and small program allowing to set the environment of any executable." )
159+ (description
160+ " Simple and small program allowing to set the environment of any executable." )
161+ (license license:asl2.0)))
0 commit comments