Ticket #32669: scipy-gcc46.diff
File scipy-gcc46.diff, 3.1 KB (added by miles@…, 13 years ago) |
---|
-
Portfile
old new 53 53 BLAS=${prefix}/lib 54 54 } 55 55 56 variant gcc42 conflicts gcc43 gcc44 gcc45 description "Use gcc 4.2 tool chain for building" {56 variant gcc42 conflicts gcc43 gcc44 gcc45 gcc46 description "Use gcc 4.2 tool chain for building" { 57 57 configure.compiler macports-gcc-4.2 58 58 depends_lib-append port:gcc42 59 59 set fc_options "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.2 --f90exec ${prefix}/bin/gfortran-mp-4.2" … … 67 67 CXX="${prefix}/bin/g++-mp-4.2" 68 68 } 69 69 70 variant gcc43 conflicts gcc42 gcc44 gcc45 description "Use gcc 4.3 tool chain for building" {70 variant gcc43 conflicts gcc42 gcc44 gcc45 gcc46 description "Use gcc 4.3 tool chain for building" { 71 71 configure.compiler macports-gcc-4.3 72 72 depends_lib-append port:gcc43 73 73 set fc_options "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.3 --f90exec ${prefix}/bin/gfortran-mp-4.3" … … 81 81 CXX="${prefix}/bin/g++-mp-4.3" 82 82 } 83 83 84 variant gcc44 conflicts gcc42 gcc43 gcc45 description "Use gfortran-mp-4.4 as fortran compiler" {84 variant gcc44 conflicts gcc42 gcc43 gcc45 gcc46 description "Use gfortran-mp-4.4 as fortran compiler" { 85 85 configure.compiler macports-gcc-4.4 86 86 depends_lib-append port:gcc44 87 87 set fc_options "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.4 --f90exec ${prefix}/bin/gfortran-mp-4.4" … … 95 95 CXX="${prefix}/bin/g++-mp-4.4" 96 96 } 97 97 98 variant gcc45 conflicts gcc42 gcc43 gcc44 description "Use gfortran-mp-4.5 as fortran compiler" {98 variant gcc45 conflicts gcc42 gcc43 gcc44 gcc46 description "Use gfortran-mp-4.5 as fortran compiler" { 99 99 configure.compiler macports-gcc-4.5 100 100 depends_lib-append port:gcc45 101 101 set fc_options "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.5 --f90exec ${prefix}/bin/gfortran-mp-4.5" … … 109 109 CXX="${prefix}/bin/g++-mp-4.5" 110 110 } 111 111 112 if { ![variant_isset gcc42] && ![variant_isset gcc43] && ![variant_isset gcc45] } { 112 variant gcc46 conflicts gcc42 gcc43 gcc44 gcc45 description "Use gfortran-mp-4.6 as fortran compiler" { 113 configure.compiler macports-gcc-4.6 114 depends_lib-append port:gcc46 115 set fc_options "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.6 --f90exec ${prefix}/bin/gfortran-mp-4.6" 116 set config_options "config --cc ${prefix}/bin/gcc-mp-4.6 --include-dirs ${prefix}/include --library-dirs ${prefix}/lib" 117 build.cmd-append ${fc_options} ${config_options} 118 destroot.cmd-append ${fc_options} ${config_options} 119 120 destroot.env-append CC="${prefix}/bin/gcc-mp-4.6" \ 121 CXX="${prefix}/bin/g++-mp-4.6" 122 build.env-append CC="${prefix}/bin/gcc-mp-4.6" \ 123 CXX="${prefix}/bin/g++-mp-4.6" 124 } 125 126 127 if { ![variant_isset gcc42] && ![variant_isset gcc43] && ![variant_isset gcc45] &![variant_isset gcc46] } { 113 128 default_variants +gcc44 114 129 } 115 130