Ticket #35071: Portfile.diff
File Portfile.diff, 3.7 KB (added by mndavidoff (Monte Davidoff), 12 years ago) |
---|
-
Portfile
old new 60 60 BLAS=${prefix}/lib 61 61 } 62 62 63 variant gcc42 conflicts gcc43 gcc44 gcc45 gcc46 description "Use gcc 4.2 tool chain for building" {63 variant gcc42 conflicts gcc43 gcc44 gcc45 gcc46 gcc47 description "Use gcc 4.2 tool chain for building" { 64 64 configure.compiler macports-gcc-4.2 65 65 depends_lib-append port:gcc42 66 66 set fc_options "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.2 --f90exec ${prefix}/bin/gfortran-mp-4.2" … … 74 74 CXX="${prefix}/bin/g++-mp-4.2" 75 75 } 76 76 77 variant gcc43 conflicts gcc42 gcc44 gcc45 gcc46 description "Use gcc 4.3 tool chain for building" {77 variant gcc43 conflicts gcc42 gcc44 gcc45 gcc46 gcc47 description "Use gcc 4.3 tool chain for building" { 78 78 configure.compiler macports-gcc-4.3 79 79 depends_lib-append port:gcc43 80 80 set fc_options "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.3 --f90exec ${prefix}/bin/gfortran-mp-4.3" … … 88 88 CXX="${prefix}/bin/g++-mp-4.3" 89 89 } 90 90 91 variant gcc44 conflicts gcc42 gcc43 gcc45 gcc46 description "Use gfortran-mp-4.4 as fortran compiler" {91 variant gcc44 conflicts gcc42 gcc43 gcc45 gcc46 gcc47 description "Use gfortran-mp-4.4 as fortran compiler" { 92 92 configure.compiler macports-gcc-4.4 93 93 depends_lib-append port:gcc44 94 94 set fc_options "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.4 --f90exec ${prefix}/bin/gfortran-mp-4.4" … … 102 102 CXX="${prefix}/bin/g++-mp-4.4" 103 103 } 104 104 105 variant gcc45 conflicts gcc42 gcc43 gcc44 gcc46 description "Use gfortran-mp-4.5 as fortran compiler" {105 variant gcc45 conflicts gcc42 gcc43 gcc44 gcc46 gcc47 description "Use gfortran-mp-4.5 as fortran compiler" { 106 106 configure.compiler macports-gcc-4.5 107 107 depends_lib-append port:gcc45 108 108 set fc_options "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.5 --f90exec ${prefix}/bin/gfortran-mp-4.5" … … 116 116 CXX="${prefix}/bin/g++-mp-4.5" 117 117 } 118 118 119 variant gcc46 conflicts gcc42 gcc43 gcc44 gcc45 description "Use gfortran-mp-4.6 as fortran compiler" {119 variant gcc46 conflicts gcc42 gcc43 gcc44 gcc45 gcc47 description "Use gfortran-mp-4.6 as fortran compiler" { 120 120 configure.compiler macports-gcc-4.6 121 121 depends_lib-append port:gcc46 122 122 set fc_options "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.6 --f90exec ${prefix}/bin/gfortran-mp-4.6" … … 130 130 CXX="${prefix}/bin/g++-mp-4.6" 131 131 } 132 132 133 variant gcc47 conflicts gcc42 gcc43 gcc44 gcc45 gcc46 description "Use gfortran-mp-4.7 as fortran compiler" { 134 configure.compiler macports-gcc-4.7 135 depends_lib-append port:gcc47 136 set fc_options "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.7 --f90exec ${prefix}/bin/gfortran-mp-4.7" 137 set config_options "config --cc ${prefix}/bin/gcc-mp-4.7 --include-dirs ${prefix}/include --library-dirs ${prefix}/lib" 138 build.cmd-append ${fc_options} ${config_options} 139 destroot.cmd-append ${fc_options} ${config_options} 140 141 destroot.env-append CC="${prefix}/bin/gcc-mp-4.7" \ 142 CXX="${prefix}/bin/g++-mp-4.7" 143 build.env-append CC="${prefix}/bin/gcc-mp-4.7" \ 144 CXX="${prefix}/bin/g++-mp-4.7" 145 } 146 133 147 134 if { ![variant_isset gcc42] && ![variant_isset gcc43] && ![variant_isset gcc44] & ![variant_isset gcc46] } {148 if { ![variant_isset gcc42] && ![variant_isset gcc43] && ![variant_isset gcc44] && ![variant_isset gcc46] && ![variant_isset gcc47] } { 135 149 default_variants +gcc45 136 150 } 137 151