mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
80 lines
2.6 KiB
Tcl
80 lines
2.6 KiB
Tcl
# -*- 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.20250506 v
|
|
github.tarball_from archive
|
|
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
|
|
|
|
checksums \
|
|
rmd160 589a542696d936ce6c8a09a794adbc4823c9a874 \
|
|
sha256 1b24658678b6c24141e58760dbea9fe2786ffdd736bcc37a36d9cdabc731bafa \
|
|
size 536544
|
|
|
|
variant docs description {Install man pages} {
|
|
depends_build-append port:py313-sphinx \
|
|
port:py313-sphinxcontrib-applehelp \
|
|
port:py313-sphinxcontrib-devhelp \
|
|
port:py313-sphinxcontrib-htmlhelp \
|
|
port:py313-sphinxcontrib-jsmath \
|
|
port:py313-sphinxcontrib-qthelp \
|
|
port:py313-sphinxcontrib-serializinghtml
|
|
configure.args-append -DBUILD_DOCS=ON
|
|
}
|
|
|
|
default_variants +docs
|
|
|
|
depends_lib-append port:openjpeg \
|
|
port:yaml-cpp \
|
|
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=System \
|
|
-DBATCH_VERSION=ON \
|
|
-DZLIB_IMPLEMENTATION=System \
|
|
-DYAML-CPP_IMPLEMENTATION=System
|
|
|
|
# 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.13/" 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}
|
|
}
|
|
|