source: trunk/dports/science/relax3d/Portfile

Last change on this file was 146428, checked in by petr@…, 19 months ago

revert commit r146427, too many changes included

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
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: Portfile 146428 2016-03-07 13:23:08Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           compilers 1.0
6PortGroup           waf 1.0
7
8name                relax3d
9version             1.0.5
10categories          science gis
11platforms           darwin
12license             GPL
13maintainers         ntu.edu.sg:sbarbot openmaintainer
14
15description         Semi-analytic solver for earthquake modeling.
16long_description    \
17    Relax evaluates the displacement and stress in a half space with gravity \
18    due to dislocations, Mogi sources, and surface tractions\; and the \
19    nonlinear time-dependent deformation that follows due to power-law \
20    rheology materials in the bulk and or rate-strengthening friction faults.
21
22homepage            http://www.geodynamics.org/cig/software/relax/
23master_sites        ${homepage}/macports
24use_bzip2           yes
25
26checksums           rmd160  10603dd3ecb0fa4ba743dc75db6accc566327caf \
27                    sha256  ed9ad14472c4bf794c2023f480c32bb09f96cc23f46cf6efc2a066ae7f2cf2ce
28
29depends_lib-append  port:fftw-3-single \
30                    port:gmt4 \
31                    port:proj47 \
32                    port:python27
33
34# gmt4 is not universal
35universal_variant   no
36
37compilers.choose    fc
38compilers.setup     require_fortran -g95
39compilers.enforce_fortran fftw-3-single
40# note: openmp is always used; hence g95 cannot be
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.ldflags-append \
48    "-L${prefix}/lib -lfftw3 -lfftw3_threads -lfftw3f -lfftw3f_threads"
49
50build.env-append          ${configure.env}
51
52destroot {
53    xinstall -m 755 ${worksrcpath}/build/relax \
54        ${destroot}${prefix}/bin/relax
55    xinstall -m 644 ${worksrcpath}/man/man1/relax.1 \
56        ${destroot}${prefix}/share/man/man1/relax.1
57}
58
Note: See TracBrowser for help on using the repository browser.