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_build-append port:gcc47 |
---|
28 | depends_lib-append port:fftw-3-single \ |
---|
29 | port:gcc47 \ |
---|
30 | port:gmt4 \ |
---|
31 | port:proj47 \ |
---|
32 | port:python27 |
---|
33 | depends_run-append port:gmt4 \ |
---|
34 | port:proj47 \ |
---|
35 | port:fftw-3-single \ |
---|
36 | port:gcc47 |
---|
37 | |
---|
38 | # gmt4 is not universal |
---|
39 | universal_variant no |
---|
40 | |
---|
41 | # I think the following is what Sylvain was going for with his original "port:fftw-3-single:gcc47" dependencies |
---|
42 | require_active_variants fftw-3-single gcc47 |
---|
43 | |
---|
44 | configure.cc gcc-mp-4.7 |
---|
45 | configure.fc gfortran-mp-4.7 |
---|
46 | configure.ldflags-append "-L${prefix}/lib -lfftw3 -lfftw3_threads -lfftw3f -lfftw3f_threads" |
---|
47 | |
---|
48 | configure.args --use-fftw \ |
---|
49 | --fftw-dir=${prefix} \ |
---|
50 | --proj-incdir=${prefix}/include \ |
---|
51 | --proj-libdir=${prefix}/lib/proj47/lib \ |
---|
52 | --gmt-dir=${prefix}/lib/gmt4 |
---|
53 | configure.cmd "./waf configure" |
---|
54 | |
---|
55 | build.env-append ${configure.env} |
---|
56 | build.cmd "./waf build" |
---|
57 | build.target "" |
---|
58 | |
---|
59 | destroot { |
---|
60 | xinstall -m 755 ${worksrcpath}/build/relax ${destroot}${prefix}/bin/relax |
---|
61 | xinstall -m 755 ${worksrcpath}/man/man1/relax.1 ${destroot}${prefix}/share/man/man1/relax.1 |
---|
62 | } |
---|
63 | |
---|
64 | #TODO: Add compiler variants |
---|