Ticket #42863: ffmpeg-vda.patch

File ffmpeg-vda.patch, 1.7 KB (added by Ionic (Mihai Moldovan), 10 years ago)

Enabling VDA on both ffmpeg and ffmpeg-devel.

  • ports/multimedia/ffmpeg/Portfile

    old new  
    120120        --enable-libfreetype \
    121121        --disable-indev=jack \
    122122        --disable-outdev=xv \
     123        --disable-vda \
    123124        --mandir=${prefix}/share/man \
    124125        --enable-shared --enable-pthreads \
    125126        --cc=${configure.cc}
     
    133134        configure.args-append --disable-libbluray
    134135        configure.args-append --disable-asm
    135136    }
     137
     138    # FIXME: use ${os.minor} once it hits stable base
     139    # VDA (video hardware acceleration, mostly H264) is only supported on 10.6.3+
     140    if {${os.major} > 10 || {${os.major} == 10 && [lindex [split ${os.version} .] 1] >= 3}} {
     141        configure.args-delete --disable-vda
     142        configure.args-append --enable-vda
     143    }
    136144}
    137145
    138146test.run        yes
  • ports/multimedia/ffmpeg-devel/Portfile

    old new  
    126126        --enable-libfreetype \
    127127        --disable-indev=jack \
    128128        --disable-outdev=xv \
     129        --disable-vda \
    129130        --mandir=${prefix}/share/man \
    130131        --enable-shared --enable-pthreads \
    131132        --cc=${configure.cc}
     
    139140        configure.args-append --disable-libbluray
    140141        configure.args-append --disable-asm
    141142    }
     143
     144    # FIXME: use ${os.minor} once it hits stable base
     145    # VDA (video hardware acceleration, mostly H264) is only supported on 10.6.3+
     146    if {${os.major} > 10 || {${os.major} == 10 && [lindex [split ${os.version} .] 1] >= 3}} {
     147        configure.args-delete --disable-vda
     148        configure.args-append --enable-vda
     149    }
    142150}
    143151
    144152test.run        yes