[89954] trunk/dports/science/hdf5-18/Portfile

mmoll at macports.org mmoll at macports.org
Thu Feb 16 13:30:52 PST 2012


Revision: 89954
          http://trac.macports.org/changeset/89954
Author:   mmoll at macports.org
Date:     2012-02-16 13:30:51 -0800 (Thu, 16 Feb 2012)
Log Message:
-----------
science/hdf5-18: add gcc46 variant. See #33273

Modified Paths:
--------------
    trunk/dports/science/hdf5-18/Portfile

Modified: trunk/dports/science/hdf5-18/Portfile
===================================================================
--- trunk/dports/science/hdf5-18/Portfile	2012-02-16 21:14:16 UTC (rev 89953)
+++ trunk/dports/science/hdf5-18/Portfile	2012-02-16 21:30:51 UTC (rev 89954)
@@ -77,7 +77,7 @@
 }
 
 
-variant gcc44 description {Enable Fortran bindings (gfortran 4.4)} conflicts threadsafe universal gcc45 {
+variant gcc44 description {Enable Fortran bindings (gfortran 4.4)} conflicts threadsafe universal gcc45 gcc46 {
     depends_lib-append          port:gcc44 
     configure.fc                ${prefix}/bin/gfortran-mp-4.4 
     if { [variant_isset openmpi] } {
@@ -88,7 +88,7 @@
     configure.post_args LDFLAGS="-L${prefix}/lib"
 }
 
-variant gcc45 description {Enable Fortran bindings (gfortran 4.5)} conflicts threadsafe universal gcc44 {
+variant gcc45 description {Enable Fortran bindings (gfortran 4.5)} conflicts threadsafe universal gcc44 gcc46 {
     depends_lib-append          port:gcc45 
     configure.fc                ${prefix}/bin/gfortran-mp-4.5 
     if { [variant_isset openmpi] } {
@@ -99,6 +99,16 @@
     configure.post_args LDFLAGS="-L${prefix}/lib"
 }
 
+variant gcc46 description {Enable Fortran bindings (gfortran 4.6)} conflicts threadsafe universal gcc44 gcc45 {
+    depends_lib-append          port:gcc46 
+    configure.fc                ${prefix}/bin/gfortran-mp-4.6 
+    if { [variant_isset openmpi] } {
+        configure.fcflags-append    -I${prefix}/include/openmpi -L${prefix}/lib -lmpi_f90 -lmpi_f77 -lmpi
+    }
+    configure.args-delete       --disable-fortran
+    configure.args-append       --enable-fortran 
+    configure.post_args LDFLAGS="-L${prefix}/lib"
+}
 
 livecheck.type      regex
 livecheck.url       http://www.hdfgroup.org/HDF5/release/obtain5.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120216/7db95959/attachment-0001.html>


More information about the macports-changes mailing list