Ignore:
Timestamp:
Mar 17, 2014, 6:32:54 AM (6 years ago)
Author:
devans@…
Message:

ffmpeg: enable VDA hw acceleration where available (#42863).

File:
1 edited

Legend:

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

    r117554 r117917  
    1111epoch           1
    1212version         2.1.4
     13revision        1
    1314license         LGPL-2.1+
    1415categories      multimedia
     
    121122        --disable-indev=jack \
    122123        --disable-outdev=xv \
     124        --disable-vda \
    123125        --mandir=${prefix}/share/man \
    124126        --enable-shared --enable-pthreads \
     
    133135        configure.args-append --disable-libbluray
    134136        configure.args-append --disable-asm
     137    }
     138
     139    # FIXME: use ${os.minor} once it hits stable base
     140    # VDA (video hardware acceleration, mostly H264) is only supported on 10.6.3+
     141    if {${os.major} > 10 || {${os.major} == 10 && [lindex [split ${os.version} .] 1] >= 3}} {
     142        configure.args-delete --disable-vda
     143        configure.args-append --enable-vda
    135144    }
    136145}
Note: See TracChangeset for help on using the changeset viewer.