From 6d197e87ca8ec8788050a4f9c1eab9e49e9755c5 Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Tue, 4 Aug 2015 16:23:46 -0700 Subject: [PATCH] ffmpeg: only enable OpenCL on 10.8+ --- Formula/ffmpeg.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Formula/ffmpeg.rb b/Formula/ffmpeg.rb index 0a22eb57df..473ef6fb3a 100644 --- a/Formula/ffmpeg.rb +++ b/Formula/ffmpeg.rb @@ -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"