ffmpeg: only enable OpenCL on 10.8+
This commit is contained in:
parent
5a940409b9
commit
6d197e87ca
1 changed files with 2 additions and 1 deletions
|
@ -80,12 +80,13 @@ class Ffmpeg < Formula
|
|||
"--enable-version3",
|
||||
"--enable-hardcoded-tables",
|
||||
"--enable-avresample",
|
||||
"--enable-opencl",
|
||||
"--cc=#{ENV.cc}",
|
||||
"--host-cflags=#{ENV.cflags}",
|
||||
"--host-ldflags=#{ENV.ldflags}"
|
||||
]
|
||||
|
||||
args << "--enable-opencl" if MacOS.version > :lion
|
||||
|
||||
args << "--enable-libx264" if build.with? "x264"
|
||||
args << "--enable-libmp3lame" if build.with? "lame"
|
||||
args << "--enable-libvo-aacenc" if build.with? "libvo-aacenc"
|
||||
|
|
Loading…
Reference in a new issue