Ticket #38522: Portfile

File Portfile, 3.1 KB (added by sylbar.vainbot@…, 11 years ago)

Portfile

Line 
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
4PortSystem                1.0
5PortGroup                 active_variants 1.1
6
7name                      relax3d
8version                   1.0.4
9categories                science gis
10platforms                 darwin
11license                   GPL
12maintainers               ntu.edu.sg:sbarbot openmaintainer
13description               Semi-analytic solver for earthquake modeling.
14long_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
21homepage                  http://www.geodynamics.org/cig/software/relax/
22master_sites              http://www.geodynamics.org/cig/software/relax/macports
23use_bzip2                 yes
24checksums                 rmd160 ed82d798758783657f54cd6d5cc6f274fa381793 \
25                          sha256 1b5dd4914256a39c6fb64bc2fd29215f8f0d188c57a057c4c5fcc06a4068e0a9
26
27depends_lib-append        port:fftw-3-single \
28                          port:gmt4 \
29                          port:proj47 \
30                          port:python27
31depends_run-append        port:gmt4 \
32                          port:proj47 \
33                          port:fftw-3-single
34
35# gmt4 is not universal
36universal_variant no
37
38default_variants          +gcc47
39
40configure.ldflags-append  "-L${prefix}/lib -lfftw3 -lfftw3_threads -lfftw3f -lfftw3f_threads"
41
42configure.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
47configure.cmd             "./waf configure"
48
49build.env-append          ${configure.env}
50build.cmd                 "./waf build"
51build.target              ""
52
53destroot {
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
58variant 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
65variant 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
72variant 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}