ffmpeg: only enable OpenCL on 10.8+

This commit is contained in:
Misty De Meo 2015-08-04 16:23:46 -07:00
parent 5a940409b9
commit 6d197e87ca

View file

@ -80,12 +80,13 @@ class Ffmpeg < Formula
"--enable-version3", "--enable-version3",
"--enable-hardcoded-tables", "--enable-hardcoded-tables",
"--enable-avresample", "--enable-avresample",
"--enable-opencl",
"--cc=#{ENV.cc}", "--cc=#{ENV.cc}",
"--host-cflags=#{ENV.cflags}", "--host-cflags=#{ENV.cflags}",
"--host-ldflags=#{ENV.ldflags}" "--host-ldflags=#{ENV.ldflags}"
] ]
args << "--enable-opencl" if MacOS.version > :lion
args << "--enable-libx264" if build.with? "x264" args << "--enable-libx264" if build.with? "x264"
args << "--enable-libmp3lame" if build.with? "lame" args << "--enable-libmp3lame" if build.with? "lame"
args << "--enable-libvo-aacenc" if build.with? "libvo-aacenc" args << "--enable-libvo-aacenc" if build.with? "libvo-aacenc"