/
Portfile
57 lines (46 loc) · 1.97 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
# -*- 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 compilers 1.0
PortGroup github 1.0
PortGroup waf 1.0
github.setup geodynamics relax 1.0.7
revision 0
checksums rmd160 168414b2c8ebf9a55ad071daa7b6a9979476a7ea \
sha256 72606dee72f4284b94348e8d12fbf1ccf55122e1eeecd3e4305f623519829ae9 \
size 32378197
name relax3d
categories science gis
platforms darwin
maintainers nomaintainer
license GPL-3+
description Semi-analytic solver for earthquake modeling.
long_description \
Relax evaluates the displacement and stress in a half space with gravity \
due to dislocations, Mogi sources, and surface tractions\; and the \
nonlinear time-dependent deformation that follows due to power-law \
rheology materials in the bulk and or rate-strengthening friction faults.
homepage https://geodynamics.org/cig/software/relax/
master_sites ${homepage}
distfiles Relax-[string map {. _} ${version}].tgz
depends_lib-append port:fftw-3-single \
port:gmt4 \
port:proj7 \
port:python27
# gmt4 is not universal
universal_variant no
compilers.choose fc
compilers.setup require_fortran -g95
compilers.enforce_fortran fftw-3-single
# note: openmp is always used; hence g95 cannot be
configure.args --use-fftw \
--fftw-dir=${prefix} \
--gmt-dir=${prefix}/lib/gmt4 \
--proj-dir=${prefix}/lib/proj7
configure.cflags-append \
-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H
destroot {
xinstall -m 0755 ${worksrcpath}/build/relax \
${destroot}${prefix}/bin
xinstall -m 0644 ${worksrcpath}/man/man1/relax.1 \
${destroot}${prefix}/share/man/man1
}