Ignore:
Timestamp:
Apr 15, 2013, 1:19:25 PM (7 years ago)
Author:
vince@…
Message:

Move some tweak code in order to execute it before the script creates separate copies for universal builds.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/math/atlas/Portfile

    r105250 r105258  
    408408        set libgccpath                  ${prefix}/lib/gcc${gcc_version}
    409409    }
    410    
     410
     411        # Some tweaks on the original source before universal build
     412        # duplicates it
     413    # Overrides goodgcc
     414    reinplace -E "s|GOODGCC =.*|GOODGCC = ${configure.cc}\");|" \
     415        ${worksrcpath}/CONFIG/src/SpewMakeInc.c
     416
     417    # Some further tweaks
     418    reinplace    "s|cc=gcc|cc=${configure.cc}|g" \
     419                    ${worksrcpath}/configure
     420    reinplace    "s|-no-cpp-precomp||g" \
     421                    ${worksrcpath}/CONFIG/src/atlcomp.txt
     422                   
    411423    # Non-universal builds
    412424    if {${universal} == 0} {
     
    645657    }
    646658   
    647     # Overrides goodgcc
    648     reinplace -E "s|GOODGCC =.*|GOODGCC = ${configure.cc}\");|" \
    649         ${worksrcpath}/CONFIG/src/SpewMakeInc.c
    650 
    651     # Some further tweaks
    652     reinplace    "s|cc=gcc|cc=${configure.cc}|g" \
    653                     ${worksrcpath}/configure
    654     reinplace    "s|-no-cpp-precomp||g" \
    655                     ${worksrcpath}/CONFIG/src/atlcomp.txt
    656                    
    657659    # On PPC64 we need extra flags for configuring
    658660    if {${native_arch} == "ppc64"} {
Note: See TracChangeset for help on using the changeset viewer.