Ticket #38522: Portfile.2

File Portfile.2, 2.7 KB (added by cooljeanius (Eric Gallager), 11 years ago)

my version of the 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_build-append      port:gcc47
28depends_lib-append        port:fftw-3-single \
29                          port:gcc47 \
30                          port:gmt4 \
31                          port:proj47 \
32                          port:python27
33depends_run-append        port:gmt4 \
34                          port:proj47 \
35                          port:fftw-3-single \
36                          port:gcc47
37
38# gmt4 is not universal
39universal_variant no
40
41# I think the following is what Sylvain was going for with his original "port:fftw-3-single:gcc47" dependencies
42require_active_variants fftw-3-single gcc47
43
44configure.cc              gcc-mp-4.7
45configure.fc              gfortran-mp-4.7
46configure.ldflags-append  "-L${prefix}/lib -lfftw3 -lfftw3_threads -lfftw3f -lfftw3f_threads"
47
48configure.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
53configure.cmd             "./waf configure"
54
55build.env-append          ${configure.env}
56build.cmd                 "./waf build"
57build.target              ""
58
59destroot {
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