Ticket #34871: dotwrp+gcc47.patch

File dotwrp+gcc47.patch, 1.7 KB (added by lukas.reichlin@…, 12 years ago)

my patch

  • (a) Portfile_orig vs. (b) Portfile

    a b  
    1919
    2020use_configure   no
    2121
    22 if { ![variant_isset g95] && ![variant_isset gcc44] && ![variant_isset gcc46]} {
     22if { ![variant_isset g95] && ![variant_isset gcc44] && ![variant_isset gcc46] && ![variant_isset gcc47]} {
    2323    default_variants +gcc45
    2424}
    2525
    2626if {[variant_isset g95]} {
    2727  set fc ${prefix}/bin/g95
     28} elseif {[variant_isset gcc47]} {
     29  set fc ${prefix}/bin/gfortran-mp-4.7
    2830} elseif {[variant_isset gcc46]} {
    2931  set fc ${prefix}/bin/gfortran-mp-4.6
    3032} elseif {[variant_isset gcc45]} {
     
    4446    xinstall -m 644 ${worksrcpath}/lib${name}.a ${destroot}${prefix}/lib
    4547}
    4648
    47 variant g95 conflicts gcc44 gcc45 gcc46 description {compile with g95} {
     49variant g95 conflicts gcc44 gcc45 gcc46 gcc47 description {compile with g95} {
    4850    depends_build       port:g95
    4951}
    5052
    51 variant gcc44 conflicts g95 gcc45 gcc46 description {compile with gfortran-mp-4.4} {
     53variant gcc44 conflicts g95 gcc45 gcc46 gcc47 description {compile with gfortran-mp-4.4} {
    5254    depends_build       port:gcc44
    5355}
    5456
    55 variant gcc45 conflicts g95 gcc44 gcc46 description {compile with gfortran-mp-4.5} {
     57variant gcc45 conflicts g95 gcc44 gcc46 gcc47 description {compile with gfortran-mp-4.5} {
    5658    depends_build       port:gcc45
    5759}
    5860
    59 variant gcc46 conflicts g95 gcc44 gcc45 description {compile with gfortran-mp-4.6} {
     61variant gcc46 conflicts g95 gcc44 gcc45 gcc47 description {compile with gfortran-mp-4.6} {
    6062    depends_build       port:gcc46
    6163}
     64
     65variant gcc47 conflicts g95 gcc44 gcc45 gcc46 description {compile with gfortran-mp-4.7} {
     66    depends_build       port:gcc47
     67}