[cig-commits] commit: update the port package.
Mercurial
hg at geodynamics.org
Tue Mar 26 14:44:03 PDT 2013
changeset: 195:6359d1a46a48
tag: tip
user: Sylvain Barbot <sbarbot at caltech.edu>
date: Tue Mar 26 14:43:55 2013 -0700
files: release/ports/science/relax3d/Portfile
description:
update the port package.
diff -r d957addc24ac -r 6359d1a46a48 release/ports/science/relax3d/Portfile
--- a/release/ports/science/relax3d/Portfile Sun Mar 24 18:14:51 2013 -0700
+++ b/release/ports/science/relax3d/Portfile Tue Mar 26 14:43:55 2013 -0700
@@ -1,43 +1,98 @@
# -*- 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}
+PortSystem 1.0
+PortGroup active_variants 1.1
-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"
+name relax3d
+version 1.0.4
+categories science gis
+platforms darwin
+license GPL
+maintainers ntu.edu.sg:sbarbot openmaintainer
+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_build-append port:gcc47
+depends_lib-append port:fftw-3-single \
+ port:gcc47 \
+ port:gmt4 \
+ port:proj47 \
+ port:python27
+depends_run-append port:gmt4 \
+ port:proj47 \
+ port:fftw-3-single \
+ port:gcc47
+
+# gmt4 is not universal
+universal_variant no
+
+require_active_variants fftw-3-single gcc47
+
+configure.cc gcc-mp-4.7
+configure.fc gfortran-mp-4.7
+configure.ldflags-append "-L${prefix}/lib -lfftw3 -lfftw3_threads -lfftw3f -lfftw3f_threads"
+
+configure.args --use-fftw \
+ --fftw-dir=${prefix} \
+ --proj-incdir=${prefix}/include \
+ --proj-libdir=${prefix}/lib/proj47/lib \
+ --gmt-dir=${prefix}/lib/gmt4
+configure.cmd "./waf configure"
+
+build.env-append ${configure.env}
+build.cmd "./waf build"
+build.target ""
+
+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
}
-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
+variant gcc44 description {build with gfortran from gcc46} conflicts gcc45 gcc46 gcc47 {
+ configure.cc gcc-mp-4.4
+ configure.fc gfortran-mp-4.4
+ depends_build-delete port:gcc47
+ depends_lib-delete port:gcc47
+ depends_run-delete port:gcc47
+ depends_build-append port:gcc44
+ depends_lib-append port:gcc44
+ depends_run-append port:gcc44
+ require_active_variants fftw-3-single gcc44
}
+
+variant gcc45 description {build with gfortran from gcc45} conflicts gcc44 gcc46 gcc47 {
+ configure.cc gcc-mp-4.5
+ configure.fc gfortran-mp-4.5
+ depends_build-delete port:gcc47
+ depends_lib-delete port:gcc47
+ depends_run-delete port:gcc47
+ depends_build-append port:gcc45
+ depends_lib-append port:gcc45
+ depends_run-append port:gcc45
+ require_active_variants fftw-3-single gcc45
+}
+
+variant gcc46 description {build with gfortran from gcc46} conflicts gcc44 gcc45 gcc47 {
+ configure.cc gcc-mp-4.6
+ configure.fc gfortran-mp-4.6
+ depends_build-delete port:gcc47
+ depends_lib-delete port:gcc47
+ depends_run-delete port:gcc47
+ depends_build-append port:gcc46
+ depends_lib-append port:gcc46
+ depends_run-append port:gcc46
+ require_active_variants fftw-3-single gcc46
+}
+
More information about the CIG-COMMITS
mailing list