PortSystem 1.0 PortGroup github 1.0 PortGroup compilers 1.0 compilers.setup -clang -fortran categories science maintainers {eborisch @eborisch} openmaintainer description Toolbox for Computational Magnetic Resonance Imaging long_description $description github.setup mrirecon bart 0.8.00 v revision 0 platforms darwin license BSD checksums \ rmd160 a5a8a4e79f6a51904f5257648353fb048b20436a \ sha256 25c0ba9ff2b8ba07ab3aa54566a7be9755a2ea59a6957fcea06b19a899da00da \ size 879025 if { ![c_variant_isset] } { default_variants-append +${compilers.gcc_default} } variant cuda description { Enable CUDA support } { build.env-append CUDA=1 } post-patch { reinplace "s^gcc-mp-10^${configure.cc}^" Makefile reinplace "s^usr/local^${prefix}^" Makefile } patchfiles Makefile.patch use_configure no test.run yes post-build { system -W ${worksrcpath} "make doc/commands.txt" } destroot.keepdirs ${destroot}${prefix}/lib/bart/commands post-destroot { system -W ${worksrcpath} "mkdir -p ${destroot}${prefix}/share/bart" move ${destroot}${prefix}/share/doc/bart ${destroot}${prefix}/share/bart/doc copy ${worksrcpath}/LICENSE ${destroot}${prefix}/share/bart/doc copy ${worksrcpath}/python ${destroot}${prefix}/share/bart/ copy ${worksrcpath}/matlab ${destroot}${prefix}/share/bart/ copy ${worksrcpath}/scripts ${destroot}${prefix}/share/bart/ foreach lib [glob ${worksrcpath}/lib/*.a ] { copy ${lib} ${destroot}${prefix}/lib/bart/ } } depends_lib port:fftw-3 \ port:fftw-3-single \ port:libpng \ port:openblas \ port:flock \ port:python310