summaryrefslogtreecommitdiff
path: root/homebrew/ffmpegat28/.make.sh-auto
blob: 76ecb5070cef1d455f62d2bc79a99b888d0c69f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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