| 27 | |
| 28 | variant g95 conflicts gcc42 gcc43 description "Use g95 as fortran compiler" { |
| 29 | depends_lib-append port:g95 |
| 30 | set fc_options "config_fc \ |
| 31 | --fcompiler gnu95 \ |
| 32 | --f77exec ${prefix}/bin/g95 \ |
| 33 | --f90exec ${prefix}/bin/g95" |
| 34 | build.cmd-append ${fc_options} |
| 35 | destroot.cmd-append ${fc_options} |
| 36 | } |
| 37 | |
| 38 | variant gcc42 conflicts g95 gcc43 description "Use gfortran as fortran compiler" { |
| 39 | depends_lib-append port:gcc42 |
| 40 | set fc_options "config_fc \ |
| 41 | --fcompiler gnu95 \ |
| 42 | --f77exec ${prefix}/bin/gfortran-mp-4.2 \ |
| 43 | --f90exec ${prefix}/bin/gfortran-mp-4.2" |
| 44 | build.cmd-append ${fc_options} |
| 45 | destroot.cmd-append ${fc_options} |
| 46 | } |
| 47 | |
| 48 | variant gcc43 conflicts g95 gcc42 description "Use gfortran as fortran compiler" { |
| 49 | depends_lib-append port:gcc43 |
| 50 | set fc_options "config_fc \ |
| 51 | --fcompiler gnu95 \ |
| 52 | --f77exec ${prefix}/bin/gfortran-mp-4.3 \ |
| 53 | --f90exec ${prefix}/bin/gfortran-mp-4.3" |
| 54 | build.cmd-append ${fc_options} |
| 55 | destroot.cmd-append ${fc_options} |
| 56 | } |
| 57 | |
| 58 | if { ![variant_isset g95] && ![variant_isset gcc42] && ![variant_isset gcc43] } { |
| 59 | default_variants +g95 |
| 60 | } |