# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 PortSystem 1.0 PortGroup cmake 1.1 PortGroup github 1.0 github.setup rordenlab dcm2niix 1.0.20220720 v version ${github.version} revision 0 categories science maintainers {eborisch @eborisch} openmaintainer description DICOM to NifTI converter long_description dcm2niix is a designed to convert neuroimaging data from \ the DICOM format to the NIfTI format license BSD MIT platforms darwin checksums \ rmd160 a16a3b41fb8422844bd60b7449a61554d149ce9b \ sha256 54fc31c9a17d19818fc85f3bc6b71b3e6da4105ad5ef02180c8d3df769ddda4b \ size 432763 variant docs description {Install man pages} { depends_build-append port:py310-sphinx \ port:py310-sphinxcontrib-applehelp \ port:py310-sphinxcontrib-devhelp \ port:py310-sphinxcontrib-htmlhelp \ port:py310-sphinxcontrib-jsmath \ port:py310-sphinxcontrib-qthelp \ port:py310-sphinxcontrib-serializinghtml configure.args-append -DBUILD_DOCS=ON } depends_lib-append port:openjpeg \ port:zlib depends_build-append port:pkgconfig if {${os.major} <= 10} { # Lion+ (with Xcode 4.1+) have git; earlier need to bring their own depends_build-append port:git } compiler.cxx_standard 2011 # Linking with yaml-cpp currently broken; haven't chased down; revisit later. # Disabling BATCH_VERSION until this is resolved. configure.args-append -DUSE_OPENJPEG=ON \ -DBATCH_VERSION=OFF \ -DZLIB_IMPLEMENTATION=custom \ -DZLIB_ROOT=${prefix} # cmake re-runs during build; retain configured CC and CXX (Only an issue in # the default configuration on <= 10.6 where we are not using system clang.) build.env-append "CC=${configure.cc} [get_canonical_archflags cc]" \ "CXX=${configure.cxx} [get_canonical_archflags cxx]" patch { reinplace "/NAMES/s/$/ sphinx-build-3.10/" docs/CMakeLists.txt } post-destroot { set docdir ${prefix}/share/doc/${subport} xinstall -d ${destroot}${docdir} xinstall -m 0644 -W ${worksrcpath} \ README.md \ VERSIONS.md \ license.txt \ ${destroot}${docdir} }