[117673] trunk/dports/science/splash/Portfile
macsforever2000 at macports.org
macsforever2000 at macports.org
Fri Mar 7 14:54:10 PST 2014
Revision: 117673
https://trac.macports.org/changeset/117673
Author: macsforever2000 at macports.org
Date: 2014-03-07 14:54:09 -0800 (Fri, 07 Mar 2014)
Log Message:
-----------
splash: Update to version 2.4.0. Use FORTRAN recipe. (#42580)
Modified Paths:
--------------
trunk/dports/science/splash/Portfile
Modified: trunk/dports/science/splash/Portfile
===================================================================
--- trunk/dports/science/splash/Portfile 2014-03-07 22:36:59 UTC (rev 117672)
+++ trunk/dports/science/splash/Portfile 2014-03-07 22:54:09 UTC (rev 117673)
@@ -4,8 +4,7 @@
PortSystem 1.0
name splash
-version 2.3.1
-revision 1
+version 2.4.0
categories science graphics
platforms darwin
maintainers monash.edu:daniel.price
@@ -19,22 +18,14 @@
worksrcdir ${name}
-checksums rmd160 d16bc15ceb3ac2714a19653a41bb589000e32a34 \
- sha256 214d3d8a95e9816a103cc05ecc7f8ad5e14c1e8ff9b65f009b1e7e5b020eedd8
+checksums rmd160 981bc357a8f6b73c515d6bc9f267a6f00d28869e \
+ sha256 5ff612ed988dbddcf57136317347529f7cf3c85ffac99167a14db5877b7e5333
-if {![variant_isset gcc44] && ![variant_isset gcc45] && ![variant_isset gcc46] && ![variant_isset gcc47]} {
- default_variants +gcc47
-}
default_variants +giza
use_configure no
+build.args SYSTEM=gfortran
-build.args SYSTEM=gfortran \
- CC="${configure.cc}" \
- CFLAGS="[get_canonical_archflags cc]" \
- FFLAGS="[get_canonical_archflags fc]" \
- F90FLAGS="[get_canonical_archflags f90]"
-
destroot.args PREFIX=${prefix}
use_parallel_build no
@@ -51,30 +42,55 @@
build.args-append BACKEND=pgplot
}
-variant gcc47 description {build with gfortran/gcc v4.7} conflicts gcc44 gcc45 gcc46 {
- depends_lib-append path:lib/libgcc/libgcc_s.1.dylib:libgcc
- depends_build-append port:gcc47
- build.args-append F90C=gfortran-mp-4.7 FC=gfortran-mp-4.7
-}
+set gcc_versions {4.5 4.6 4.7 4.8}
+set default_fortran_variant +gcc48
-variant gcc46 description {build with gfortran/gcc v4.6} conflicts gcc44 gcc45 gcc47 {
- depends_lib-append path:lib/libgcc/libgcc_s.1.dylib:libgcc
- depends_build-append port:gcc46
- build.args-append F90C=gfortran-mp-4.6 FC=gfortran-mp-4.6
+foreach ver ${gcc_versions} {
+ set ver_no_dot [join [split ${ver} "."] ""]
+
+ set variant_line {variant gcc${ver_no_dot} description "build with gfortran from gcc${ver_no_dot}"}
+
+ foreach over ${gcc_versions} {
+ if {${ver} == ${over}} {
+ continue
+ }
+
+ set over_no_dot [join [split ${over} "."] ""]
+ append variant_line " conflicts gcc${over_no_dot}"
+ }
+ append variant_line { {}}
+
+ eval $variant_line
+
+ if {[variant_isset gcc${ver_no_dot}]} {
+ if {${default_fortran_variant} != "+gcc${ver_no_dot}"} {
+ set default_fortran_variant ""
+ }
+ }
}
-variant gcc45 description {build with gfortran/gcc v4.5} conflicts gcc44 gcc46 gcc47 {
- depends_lib-append path:lib/libgcc/libgcc_s.1.dylib:libgcc
- depends_build-append port:gcc45
- build.args-append F90C=gfortran-mp-4.5 FC=gfortran-mp-4.5
+if {${default_fortran_variant} != ""} {
+ default_variants-append "${default_fortran_variant}"
}
-variant gcc44 description {build with gfortran/gcc v4.4} conflicts gcc45 gcc46 gcc47 {
- depends_lib-append path:lib/libgcc/libgcc_s.1.dylib:libgcc
- depends_build-append port:gcc44
- build.args-append F90C=gfortran-mp-4.4 FC=gfortran-mp-4.4
+foreach ver ${gcc_versions} {
+ set ver_no_dot [join [split ${ver} "."] ""]
+
+ if {[variant_isset gcc${ver_no_dot}]} {
+ depends_lib-append path:lib/libgcc/libgcc_s.1.dylib:libgcc
+ depends_build-append port:gcc${ver_no_dot}
+
+ configure.fc ${prefix}/bin/gfortran-mp-${ver}
+ configure.f77 ${prefix}/bin/gfortran-mp-${ver}
+ configure.f90 ${prefix}/bin/gfortran-mp-${ver}
+ }
}
+build.args-append FC="${configure.fc}" \
+ CC="${configure.cc}" \
+ CFLAGS="[get_canonical_archflags cc]" \
+ FFLAGS="[get_canonical_archflags fc]"
+
variant hdf5 description {compiles data reads that depend on HDF5} {
build.args-append gadgethdf5 HDF5ROOT=${prefix}
depends_lib-append port:hdf5-18
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140307/0d85fbf1/attachment.html>
More information about the macports-changes
mailing list