Ticket #28935: ffmpeg-Portfile.0.7.1.diff

File ffmpeg-Portfile.0.7.1.diff, 1.7 KB (added by daitakahashi, 10 years ago)
  • multimedia/ffmpeg/Portfile

    old new  
    33
    44PortSystem 1.0
    55PortGroup xcodeversion 1.0
     6PortGroup muniversal 1.0
    67
    78name            ffmpeg
    89conflicts       ffmpeg-devel
     
    103104
    104105#add --enable-libopenjpeg when problems with openjpeg.h are resolved
    105106
    106 if {$build_arch != ""} {
    107     configure.args-append --arch=${build_arch}
    108 }
    109 
    110107test.run        yes
    111108
    112109#
    113110# configure isn't autoconf and they do use a dep cache
    114111#
    115112
    116 universal_variant no
     113if { [variant_isset universal] } {
     114    configure.universal_args-delete             --disable-dependency-tracking
     115
     116    foreach arch ${universal_archs_supported} {
     117        lappend merger_configure_args($arch)    --arch=${arch}
     118        lappend merger_configure_env($arch)     ASFLAGS='-arch ${arch}'
     119    }
     120} else {
     121    configure.args-append --arch=${configure.build_arch}
     122    configure.env-append  ASFLAGS='-arch ${configure.build_arch}'
     123}
    117124
    118125post-destroot {
    119126    file mkdir ${destroot}${prefix}/share/doc/${name}
     
    123130    }
    124131}
    125132
    126 platform darwin 10 {
    127     # ticket #20938 -- disable mmx for 32 bit intel only
    128     if { $build_arch == "i386" } {
    129         # swscale is no longer GPL only
    130         configure.args-delete --enable-swscale
    131         if { ![variant_isset no_mmx] } {
    132             configure.args-append --disable-mmx --disable-mmx2 --disable-sse --disable-ssse3 --disable-amd3dnow --disable-amd3dnowext
    133         }
    134     }
    135 }
    136 
    137133platform powerpc {
    138134    # absence of altivec is not automatically detected
    139135    if {[exec sysctl -n hw.vectorunit] == 0} {