[76078] trunk/dports/science/hdf5-18/Portfile
mmoll at macports.org
mmoll at macports.org
Thu Feb 17 11:08:03 PST 2011
Revision: 76078
http://trac.macports.org/changeset/76078
Author: mmoll at macports.org
Date: 2011-02-17 11:08:02 -0800 (Thu, 17 Feb 2011)
Log Message:
-----------
science/hdf5-18: added fortran variants, closes #28432
Modified Paths:
--------------
trunk/dports/science/hdf5-18/Portfile
Modified: trunk/dports/science/hdf5-18/Portfile
===================================================================
--- trunk/dports/science/hdf5-18/Portfile 2011-02-17 18:49:23 UTC (rev 76077)
+++ trunk/dports/science/hdf5-18/Portfile 2011-02-17 19:08:02 UTC (rev 76078)
@@ -46,7 +46,8 @@
reinplace -E {s|-arch [a-z0-9_]+||g} \
${dir}/tools/misc/h5cc \
${dir}/c++/src/h5c++ \
- ${dir}/src/libhdf5.settings
+ ${dir}/src/libhdf5.settings \
+ ${dir}/fortran/src/h5fc
}
}
@@ -67,6 +68,24 @@
configure.args-append --enable-parallel --disable-cxx
}
+
+variant gcc44 description {Enable Fortran bindings (gfortran 4.4)} conflicts threadsafe universal openmpi gcc45 {
+ depends_lib-append port:gcc44
+ configure.fc ${prefix}/bin/gfortran-mp-4.4
+ configure.args-delete --disable-fortran --enable-shared
+ configure.args-append --enable-fortran
+ configure.post_args LDFLAGS="-L${prefix}/lib"
+}
+
+variant gcc45 description {Enable Fortran bindings (gfortran 4.5)} conflicts threadsafe universal openmpi gcc44 {
+ depends_lib-append port:gcc45
+ configure.fc ${prefix}/bin/gfortran-mp-4.5
+ configure.args-delete --disable-fortran --enable-shared
+ 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
livecheck.regex 5-(\[0-9.\]+)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110217/b774d3fe/attachment.html>
More information about the macports-changes
mailing list