| 46 | variant fortran conflicts threadsafe description {Include the Fortran interface} { |
| 47 | configure.args-delete --disable-fortran |
| 48 | configure.args-append --enable-fortran |
| 49 | pre-fetch { |
| 50 | if { ![variant_isset gcc43] && ![variant_isset gcc42] && ![variant_isset g95] } { |
| 51 | error "You must specify a compiler variant in order to build the Fortran interface" |
| 52 | } |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | variant gcc42 requires fortran conflicts g95 gcc43 description {Compile using GCC 4.2} { |
| 57 | depends_lib-append port:gcc42 |
| 58 | configure.compiler macports-gcc-4.2 |
| 59 | } |
| 60 | |
| 61 | variant gcc43 requires fortran conflicts g95 gcc42 description {Compile using GCC 4.3} { |
| 62 | depends_lib-append port:gcc43 |
| 63 | configure.compiler macports-gcc-4.3 |
| 64 | } |
| 65 | |
| 66 | variant g95 requires fortran conflicts gcc42 gcc43 description {Use g95 Fortran compiler (unsupported)} { |
| 67 | depends_lib-append port:g95 |
| 68 | configure.fc ${prefix}/bin/g95 |
| 69 | } |
| 70 | |
| 71 | variant mpich2 description {Parallel HDF5 with mpich2} { |
| 72 | depends_lib-append port:mpich2 |
| 73 | configure.args-delete --enable-cxx |
| 74 | configure.cc ${prefix}/bin/mpicc |
| 75 | if { [variant_isset fortran] } { |
| 76 | configure.fc ${prefix}/bin/mpif90 |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | #variant openmpi description {Parallel HDF5 with openmpi} { |
| 81 | # depends_lib-append port:openmpi |
| 82 | # configure.args-delete --enable-cxx |
| 83 | # configure.cc ${prefix}/bin/openmpicc |
| 84 | # if { [variant_isset fortran] } { |
| 85 | # configure.fc ${prefix}/bin/openmpif90 |
| 86 | # } |
| 87 | #} |
| 88 | |