Ticket #28327: Portfile.diff

File Portfile.diff, 910 bytes (added by adfernandes (Andrew Fernandes), 14 years ago)
  • Portfile

     
    218218    }
    219219}
    220220
     221if {![variant_isset universal]} {
     222    # Honour 'build_arch', if not universal as per #28327
     223    if {[lsearch ${build_arch} ppc*] != -1} {
     224        build.args-append   architecture=power
     225        if {${os.arch} != "powerpc"} {
     226            build.args-append   --disable-long-double
     227        }
     228    } else {
     229        if {[lsearch ${build_arch} *86*] != -1} {
     230            build.args-append   architecture=x86
     231        } else {
     232            error "Current value of 'build_arch' is not supported."
     233        }
     234    }
     235    if {[lsearch ${build_arch} *64] != -1} {
     236        build.args-append   address-model=64
     237    } else {
     238        build.args-append   address-model=32
     239    }
     240}
     241
    221242variant universal {
    222243    build.args-append   pch=off
    223244