Ticket #32669: scipy-gcc46.diff

File scipy-gcc46.diff, 3.1 KB (added by miles@…, 13 years ago)
  • Portfile

    old new  
    5353                            BLAS=${prefix}/lib
    5454}
    5555
    56 variant gcc42 conflicts gcc43 gcc44 gcc45 description "Use gcc 4.2 tool chain for building" {
     56variant gcc42 conflicts gcc43 gcc44 gcc45 gcc46 description "Use gcc 4.2 tool chain for building" {
    5757  configure.compiler    macports-gcc-4.2
    5858  depends_lib-append    port:gcc42
    5959  set fc_options        "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.2 --f90exec ${prefix}/bin/gfortran-mp-4.2"
     
    6767                        CXX="${prefix}/bin/g++-mp-4.2"
    6868}
    6969
    70 variant gcc43 conflicts gcc42 gcc44 gcc45 description "Use gcc 4.3 tool chain for building" {
     70variant gcc43 conflicts gcc42 gcc44 gcc45 gcc46 description "Use gcc 4.3 tool chain for building" {
    7171  configure.compiler    macports-gcc-4.3
    7272  depends_lib-append    port:gcc43
    7373  set fc_options        "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.3 --f90exec ${prefix}/bin/gfortran-mp-4.3"
     
    8181                        CXX="${prefix}/bin/g++-mp-4.3"
    8282}
    8383
    84 variant gcc44 conflicts gcc42 gcc43 gcc45 description "Use gfortran-mp-4.4 as fortran compiler" {
     84variant gcc44 conflicts gcc42 gcc43 gcc45 gcc46 description "Use gfortran-mp-4.4 as fortran compiler" {
    8585  configure.compiler    macports-gcc-4.4
    8686  depends_lib-append    port:gcc44
    8787  set fc_options        "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.4 --f90exec ${prefix}/bin/gfortran-mp-4.4"
     
    9595                        CXX="${prefix}/bin/g++-mp-4.4"
    9696}
    9797
    98 variant gcc45 conflicts gcc42 gcc43 gcc44 description "Use gfortran-mp-4.5 as fortran compiler" {
     98variant gcc45 conflicts gcc42 gcc43 gcc44 gcc46 description "Use gfortran-mp-4.5 as fortran compiler" {
    9999  configure.compiler    macports-gcc-4.5
    100100  depends_lib-append    port:gcc45
    101101  set fc_options        "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.5 --f90exec ${prefix}/bin/gfortran-mp-4.5"
     
    109109                        CXX="${prefix}/bin/g++-mp-4.5"
    110110}
    111111
    112 if { ![variant_isset gcc42] && ![variant_isset gcc43] && ![variant_isset gcc45] } {
     112variant 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
     127if { ![variant_isset gcc42] && ![variant_isset gcc43] && ![variant_isset gcc45] &![variant_isset gcc46] } {
    113128  default_variants      +gcc44
    114129}
    115130