1 | # -*- 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 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup active_variants 1.1 |
---|
6 | |
---|
7 | name relax3d |
---|
8 | version 1.0.4 |
---|
9 | categories science gis |
---|
10 | platforms darwin |
---|
11 | license GPL |
---|
12 | maintainers ntu.edu.sg:sbarbot openmaintainer |
---|
13 | description Semi-analytic solver for earthquake modeling. |
---|
14 | long_description Relax evaluates the displacement and stress \ |
---|
15 | in a half space with gravity due to dislocations, \ |
---|
16 | Mogi sources, and surface tractions\; and the nonlinear \ |
---|
17 | time-dependent deformation that follows due to \ |
---|
18 | power-law rheology materials in the bulk and or \ |
---|
19 | rate-strengthening friction faults. |
---|
20 | |
---|
21 | homepage http://www.geodynamics.org/cig/software/relax/ |
---|
22 | master_sites http://www.geodynamics.org/cig/software/relax/macports |
---|
23 | use_bzip2 yes |
---|
24 | checksums rmd160 ed82d798758783657f54cd6d5cc6f274fa381793 \ |
---|
25 | sha256 1b5dd4914256a39c6fb64bc2fd29215f8f0d188c57a057c4c5fcc06a4068e0a9 |
---|
26 | |
---|
27 | depends_lib-append port:fftw-3-single \ |
---|
28 | port:gmt4 \ |
---|
29 | port:proj47 \ |
---|
30 | port:python27 |
---|
31 | depends_run-append port:gmt4 \ |
---|
32 | port:proj47 \ |
---|
33 | port:fftw-3-single |
---|
34 | |
---|
35 | # gmt4 is not universal |
---|
36 | universal_variant no |
---|
37 | |
---|
38 | default_variants +gcc47 |
---|
39 | |
---|
40 | configure.ldflags-append "-L${prefix}/lib -lfftw3 -lfftw3_threads -lfftw3f -lfftw3f_threads" |
---|
41 | |
---|
42 | configure.args --use-fftw \ |
---|
43 | --fftw-dir=${prefix} \ |
---|
44 | --proj-incdir=${prefix}/include \ |
---|
45 | --proj-libdir=${prefix}/lib/proj47/lib \ |
---|
46 | --gmt-dir=${prefix}/lib/gmt4 |
---|
47 | configure.cmd "./waf configure" |
---|
48 | |
---|
49 | build.env-append ${configure.env} |
---|
50 | build.cmd "./waf build" |
---|
51 | build.target "" |
---|
52 | |
---|
53 | destroot { |
---|
54 | xinstall -m 755 ${worksrcpath}/build/relax ${destroot}${prefix}/bin/relax |
---|
55 | xinstall -m 755 ${worksrcpath}/man/man1/relax.1 ${destroot}${prefix}/share/man/man1/relax.1 |
---|
56 | } |
---|
57 | |
---|
58 | variant gcc45 description {build with gfortran from gcc45} conflicts gcc46 gcc47 { |
---|
59 | configure.cc gcc-mp-4.5 |
---|
60 | configure.fc gfortran-mp-4.5 |
---|
61 | depends_build-append port:gcc45 |
---|
62 | require_active_variants fftw-3-single gcc45 |
---|
63 | } |
---|
64 | |
---|
65 | variant gcc46 description {build with gfortran from gcc46} conflicts gcc45 gcc47 { |
---|
66 | configure.cc gcc-mp-4.6 |
---|
67 | configure.fc gfortran-mp-4.6 |
---|
68 | depends_build-append port:gcc46 |
---|
69 | require_active_variants fftw-3-single gcc46 |
---|
70 | } |
---|
71 | |
---|
72 | variant gcc47 description {build with gfortran from gcc47} conflicts gcc45 gcc46 { |
---|
73 | configure.cc gcc-mp-4.7 |
---|
74 | configure.fc gfortran-mp-4.7 |
---|
75 | depends_build-append port:gcc47 |
---|
76 | require_active_variants fftw-3-single gcc47 |
---|
77 | } |
---|