[70235] trunk/dports/multimedia/libvpx

Ryan Schmidt ryandesign at macports.org
Tue Aug 3 13:07:11 PDT 2010


On Aug 3, 2010, at 08:52, Rainer Müller wrote:

> Michael, thanks for implementing the fix for this problem.
> 
> On 2010-08-03 06:49 , michaelld at macports.org wrote:
>> +# set configure parameters depending on if universal or not
>> +if {![variant_isset universal]} {
>> +    # specify only the single target, otherwise 'configure' will try
>> +    # for a 'universal' install.
>> +    set tgt_isa "${build_arch}"
>> +    if {${build_arch} == "i386"} {
>> +        set tgt_isa "x86"
>> +    } elseif {${build_arch} == "ppc"} {
>> +        set tgt_isa "ppc32"
>> +    }
>> +    configure.args-append --target=${tgt_isa}-${os.platform}${os.major}-gcc
>> +} else {
>> +    # clear universal flags; configure will determine them.
>> +    configure.universal_cppflags
>> +    configure.universal_cflags
>> +    configure.universal_cxxflags
>> +    configure.universal_ldflags
>> +    # tell configure the target; probably not necessary
>> +    configure.args-append --target=universal-${os.platform}${os.major}-gcc
>> +}
> 
> Wouldn't this need additional patching to respect the universal_archs
> setting for +universal instead of hardcoding the default set?

Yes it would, but since the port says "universal_variant no" since the port can't actually compile with multiple arch flags, it's academic at this point. We could investigate using muniversal, however.





More information about the macports-dev mailing list