diff options
Diffstat (limited to 'homebrew/ffmpegat28/.make.sh-auto')
-rw-r--r-- | homebrew/ffmpegat28/.make.sh-auto | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/homebrew/ffmpegat28/.make.sh-auto b/homebrew/ffmpegat28/.make.sh-auto new file mode 100644 index 000000000..76ecb5070 --- /dev/null +++ b/homebrew/ffmpegat28/.make.sh-auto @@ -0,0 +1,14 @@ +pkg:setup +if MacOS.version == "10.11" && MacOS::Xcode.version >= "8.0" +inreplace %w[libavdevice/v4l2.c libavutil/time.c], "HAVE_CLOCK_GETTIME","UNDEFINED_GIBBERISH" end args = %W[ --prefix=#{prefix} --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=#{ENV.cc} --host-cflags=#{ENV.cflags} --host-ldflags=#{ENV.ldflags} --enable-ffplay --enable-libmp3lame --enable-libopus --enable-libsnappy --enable-libtheora --enable-libvo-aacenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libspeex --enable-opencl --disable-indev=jack ] +if MacOS.version < :yosemite || ENV.compiler == :clang +args << "--enable-vda" +else +args << "--disable-vda" +end +pkg:configure *args +inreplace "config.mak" do |s| +shflags = s.get_make_var "SHFLAGS" +if shflags.gsub!(" -Wl,-read_only_relocs,suppress", "") +s.change_make_var! "SHFLAGS", shflags +end |