[cig-commits] commit: add the macports Portfile for installation with 'port install relax3d'.
Mercurial
hg at geodynamics.org
Sun Mar 24 18:15:26 PDT 2013
changeset: 194:d957addc24ac
tag: tip
user: Sylvain Barbot <sbarbot at caltech.edu>
date: Sun Mar 24 18:14:51 2013 -0700
files: release/ports/science/relax3d/Portfile
description:
add the macports Portfile for installation with 'port install relax3d'.
diff -r 0a55eeab2e78 -r d957addc24ac release/ports/science/relax3d/Portfile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/release/ports/science/relax3d/Portfile Sun Mar 24 18:14:51 2013 -0700
@@ -0,0 +1,43 @@
+# -*- 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
+# $Id$
+PortSystem 1.0
+name relax3d
+version 1.0.4
+categories science
+platforms darwin
+license GPL
+maintainers Sylvain Barbot \
+ ntu.edu.sg:sbarbot
+description Semi-analytic solver for earthquake modeling.
+long_description Relax evaluates the displacement and stress \
+ in a half space with gravity due to dislocations, \
+ Mogi sources, and surface tractions\; and the nonlinear \
+ time-dependent deformation that follows due to \
+ power-law rheology materials in the bulk and or \
+ rate-strengthening friction faults.
+homepage http://www.geodynamics.org/cig/software/relax/
+master_sites http://www.geodynamics.org/cig/software/relax/macports
+use_bzip2 yes
+checksums rmd160 ed82d798758783657f54cd6d5cc6f274fa381793 \
+ sha256 1b5dd4914256a39c6fb64bc2fd29215f8f0d188c57a057c4c5fcc06a4068e0a9
+depends_lib port:fftw-3-single:gcc47 \
+ port:gmt4 \
+ port:proj47 \
+ port:python27
+depends_build port:gcc47
+depends_run port:gmt4 \
+ port:proj47 \
+ port:fftw-3-single:gcc47
+use_configure no
+
+worksrcdir ${name}-${version}
+
+build {
+ system -W ${worksrcpath} "CC=gcc-mp-4.7 FC=gfortran-mp-4.7 LINKFLAGS=\"-L${prefix}/lib -lfftw3 -lfftw3_threads -lfftw3f -lfftw3f_threads\" ./waf configure --use-fftw --fftw-dir=${prefix} --proj-incdir=${prefix}/include --proj-libdir=${prefix}/lib/proj47/lib --gmt-dir=${prefix}/lib/gmt4"
+ system -W ${worksrcpath} "./waf build"
+}
+
+destroot {
+ xinstall -m 755 ${worksrcpath}/build/relax ${destroot}${prefix}/bin/relax
+ xinstall -m 755 ${worksrcpath}/man/man1/relax.1 ${destroot}${prefix}/share/man/man1/relax.1
+}
More information about the CIG-COMMITS
mailing list