Ticket #20938: ffmpeg-devel-enable-mmx-snow-leopard.diff

File ffmpeg-devel-enable-mmx-snow-leopard.diff, 1.7 KB (added by dave@…, 15 years ago)

Patch to enable MMX on Snow Leopard.

  • Portfile

     
    44PortSystem 1.0
    55
    66name            ffmpeg-devel
    7 set svn_rev     19723
    8 set swscale_rev 29548
     7set svn_rev     19787
     8set swscale_rev 29652
    99version         ${svn_rev}
    1010categories      multimedia
    1111maintainers     devans openmaintainer
     
    4646                port:schroedinger \
    4747                port:faac \
    4848                port:faad2 \
    49                 port:XviD \
    5049                port:x264 \
    5150                path:lib/pkgconfig/sdl.pc:libsdl \
    5251                port:bzip2 \
     
    106105        --enable-libdirac --enable-libschroedinger \
    107106        --enable-libfaac \
    108107        --enable-libfaad \
    109         --enable-libxvid \
    110108        --enable-libx264 \
    111109        --mandir=${prefix}/share/man \
    112110        --enable-shared --enable-pthreads \
     
    144142    if { ![variant_isset no_gpl] } {
    145143        configure.args-delete --enable-swscale
    146144    }
    147     if { ![variant_isset no_mmx] } {
    148         configure.args-append --disable-mmx --disable-mmx2 --disable-sse --disable-ssse3 --disable-amd3dnow --disable-amd3dnowext
    149     }
    150145}
    151146
    152147variant no_mmx description {disable all x86 asm optimizations} {
     
    182177    depends_lib-append      path:lib/libspeex.dylib:speex-devel
    183178}
    184179
     180# build with xvid support. not usually needed since
     181# ffmpeg ships with support for that format baked in
     182variant xvid description {enable XviD integration. note ffmpeg already has mp4 support built in} {
     183    configure.args-append    --enable-libxvid
     184    depends_lib-append       port:XviD
     185}
     186
    185187pre-configure {
    186188    if {[variant_isset speex]} {
    187189        if {![file exists ${prefix}/lib/libspeexdsp.dylib]} {