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