35 | | foreach ver ${gcc_versions} { |
36 | | set ver_no_dot [join [split ${ver} "."] ""] |
37 | | |
38 | | set variant_line {variant gcc${ver_no_dot} description "build with gfortran from gcc${ver_no_dot}" conflicts g95} |
39 | | |
40 | | foreach over ${gcc_versions} { |
41 | | if {${ver} == ${over}} { |
42 | | continue |
43 | | } |
44 | | |
45 | | set over_no_dot [join [split ${over} "."] ""] |
46 | | append variant_line " conflicts gcc${over_no_dot}" |
47 | | } |
48 | | append variant_line { {}} |
49 | | |
50 | | eval $variant_line |
51 | | |
52 | | append g95_conflicts " conflicts gcc${ver_no_dot}" |
53 | | |
54 | | if {[variant_isset gcc${ver_no_dot}]} { |
55 | | if {${default_fortran_variant} != "+gcc${ver_no_dot}"} { |
56 | | set default_fortran_variant "" |
57 | | } |
58 | | } |
59 | | } |
60 | | |
61 | | eval [concat {variant g95 description {build with g95}} $g95_conflicts {{}}] |
62 | | |
63 | | if {[variant_isset g95]} { |
64 | | if {${default_fortran_variant} != "+g95"} { |
65 | | set default_fortran_variant "" |
66 | | } |
67 | | } |
68 | | |
69 | | if {${default_fortran_variant} != ""} { |
70 | | default_variants-append "${default_fortran_variant}" |
71 | | } |
72 | | |
73 | | foreach ver ${gcc_versions} { |
74 | | set ver_no_dot [join [split ${ver} "."] ""] |
75 | | |
76 | | if {[variant_isset gcc${ver_no_dot}]} { |
77 | | depends_lib-append path:lib/libgcc/libgcc_s.1.dylib:libgcc |
78 | | depends_build-append port:gcc${ver_no_dot} |
79 | | |
80 | | build.cmd "${build.cmd} config_fc --fcompiler gfortran" |
81 | | |
82 | | configure.fc ${prefix}/bin/gfortran-mp-${ver} |
83 | | configure.f77 ${prefix}/bin/gfortran-mp-${ver} |
84 | | configure.f90 ${prefix}/bin/gfortran-mp-${ver} |
85 | | } |
86 | | } |
87 | | |
88 | | if {[variant_isset g95]} { |
89 | | depends_lib-append path:lib/libgcc/libgcc_s.1.dylib:libgcc |
90 | | depends_build-append port:g95 |
91 | | |
| 36 | if {[gcc_variant_isset]} { |
| 37 | build.cmd "${build.cmd} config_fc --fcompiler gfortran" |
| 38 | } elseif {[variant_isset g95]} { |