/
Portfile
61 lines (50 loc) · 1.78 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
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