Ticket #25939: libvpx-universal.diff

File libvpx-universal.diff, 2.0 KB (added by ryandesign (Ryan Carsten Schmidt), 14 years ago)

proposed patch

  • Portfile

     
    22# $Id$
    33
    44PortSystem      1.0
     5PortGroup       muniversal 1.0
    56
    67name            libvpx
    78version         0.9.1
     
    2425
    2526depends_build   port:yasm
    2627
    27 # gcc-4.2: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags
    28 universal_variant no
    29 
    3028# patches for: 10.6; correct "universal" arch default selection; 'sed' scripts.
    3129patchfiles      patch-build-make-configure.sh.diff \
    3230                patch-configure.diff
     
    5553build.args      verbose=1
    5654
    5755# set configure parameters depending on if universal or not
    58 if {![variant_isset universal] || ![variant_exists universal]} {
    59     # specify only the single target, otherwise 'configure' will try
    60     # for a 'universal' install.
    61     switch ${build_arch} {
    62         i386    { set tgt_isa x86           }
    63         ppc     { set tgt_isa ppc32         }
    64         default { set tgt_isa ${build_arch} }
    65     }
    66     configure.args-append --target=${tgt_isa}-${os.platform}${os.major}-gcc
    67 } else {
     56set my_targets(ppc)     ppc32
     57set my_targets(ppc64)   ppc64
     58set my_targets(i386)    x86
     59set my_targets(x86_64)  x86_64
     60if {[variant_isset universal]} {
    6861    # clear universal flags; configure will determine them.
    6962    configure.universal_cppflags
    7063    configure.universal_cflags
    7164    configure.universal_cxxflags
    7265    configure.universal_ldflags
    73     # tell configure the target; probably not necessary
    74     configure.args-append --target=universal-${os.platform}${os.major}-gcc
     66    configure.universal_args-delete --disable-dependency-tracking
     67    foreach my_arch ${configure.universal_archs} {
     68        set merger_configure_args(${my_arch}) --target=$my_targets(${my_arch})-${os.platform}${os.major}-gcc
     69    }
     70} else {
     71    # specify only the single target, otherwise 'configure' will try
     72    # for a universal install.
     73    configure.args-append --target=$my_targets(${build_arch})-${os.platform}${os.major}-gcc
    7574}