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"