Ignore:
Timestamp:
Apr 11, 2012, 8:18:16 PM (8 years ago)
Author:
jeremyhu@…
Message:

ffmpeg*: Replace no_mmx variant with an mmx variant which is on by defualt, except on Tiger

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/multimedia/ffmpeg/Portfile

    r91753 r91842  
    8686minimum_xcodeversions {9 3.1}
    8787
     88# And similarly, disable mmx on Tiger
     89platform darwin {
     90    if {${os.major} < 9} {
     91        default_variants -mmx
     92    } else {
     93        default_variants +mmx
     94    }
     95}
     96
    8897# Under some conditions, llvm-gcc-4.2 drops some "unused" code even though it is used.
    8998# This is fixed in llvm-gcc trunk, but not in Apple's shipped llvm-gccs.
     
    114123        --enable-libvpx \
    115124        --enable-libspeex \
     125        --disable-mmx \
     126        --disable-mmx2 \
     127        --disable-sse \
     128        --disable-ssse3 \
     129        --disable-amd3dnow \
     130        --disable-amd3dnowext \
    116131        --mandir=${prefix}/share/man \
    117132        --enable-shared --enable-pthreads \
     
    162177}
    163178
    164 variant no_mmx description {disable all x86 asm optimizations} {
    165     configure.args-append --disable-mmx --disable-mmx2 --disable-sse --disable-ssse3 --disable-amd3dnow --disable-amd3dnowext
     179variant mmx description {enable all supported x86 asm optimizations} {
     180    configure.args-delete --disable-mmx --disable-mmx2 --disable-sse --disable-ssse3 --disable-amd3dnow --disable-amd3dnowext
    166181}
    167182
Note: See TracChangeset for help on using the changeset viewer.