Ticket #20938: ffmpeg-devel-portfile-i386-no-mmx.diff

File ffmpeg-devel-portfile-i386-no-mmx.diff, 1.2 KB (added by dave@…, 15 years ago)

ffmpeg-devel portfile that disables mmx only on i386

  • 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
     
    141141    depends_lib-delete path:lib/pkgconfig/sdl.pc:libsdl
    142142    depends_lib-append path:lib/pkgconfig/sdl.pc:libsdl-devel
    143143    # ticket #20938
    144     if { ![variant_isset no_gpl] } {
    145         configure.args-delete --enable-swscale
     144    if { [info exists build_arch] && $build_arch == "i386" } {
     145        if { ![variant_isset no_gpl] } {
     146            configure.args-delete --enable-swscale
     147        }
     148        if { ![variant_isset no_mmx] } {
     149            configure.args-append --disable-mmx --disable-mmx2 --disable-sse --disable-ssse3 --disable-amd3dnow --disable-amd3dnowext
     150        }
    146151    }
    147     if { ![variant_isset no_mmx] } {
    148         configure.args-append --disable-mmx --disable-mmx2 --disable-sse --disable-ssse3 --disable-amd3dnow --disable-amd3dnowext
    149     }
    150152}
    151153
    152154variant no_mmx description {disable all x86 asm optimizations} {