ffmpeg: remove libebur128 dependency for HEAD (#10109)

This commit is contained in:
ilovezfs 2017-02-18 21:11:52 -08:00 committed by GitHub
parent fb9ec794a2
commit 36acb8a6b5

View file

@ -1,10 +1,18 @@
class Ffmpeg < Formula
desc "Play, record, convert, and stream audio and video"
homepage "https://ffmpeg.org/"
url "https://ffmpeg.org/releases/ffmpeg-3.2.4.tar.bz2"
sha256 "c0fa3593a2e9e96ace3c1757900094437ad96d1d6ca19f057c378b5f394496a4"
head "https://github.com/FFmpeg/FFmpeg.git"
stable do
url "https://ffmpeg.org/releases/ffmpeg-3.2.4.tar.bz2"
sha256 "c0fa3593a2e9e96ace3c1757900094437ad96d1d6ca19f057c378b5f394496a4"
option "with-libebur128", "Enable using libebur128 for EBU R128 loudness measurement"
# only vendored in head
depends_on "libebur128" => :optional
end
bottle do
sha256 "c4d1d895fca521400a0f6d27d7dfa3553ebda8c0f6c90fcd44a5b55aefe27aa4" => :sierra
sha256 "c0ca7c202d7051596be029aeaec362b7faa8dae900eb1c4f5a4d00c86d2000f7" => :el_capitan
@ -14,7 +22,6 @@ class Ffmpeg < Formula
option "with-chromaprint", "Enable the Chromaprint audio fingerprinting library"
option "with-fdk-aac", "Enable the Fraunhofer FDK AAC library"
option "with-libass", "Enable ASS/SSA subtitle format"
option "with-libebur128", "Enable using libebur128 for EBU R128 loudness measurement"
option "with-libsoxr", "Enable the soxr resample library"
option "with-libssh", "Enable SFTP protocol via libssh"
option "with-tesseract", "Enable the tesseract OCR engine"
@ -62,7 +69,6 @@ class Ffmpeg < Formula
depends_on "libbluray" => :optional
depends_on "libbs2b" => :optional
depends_on "libcaca" => :optional
depends_on "libebur128" => :optional
depends_on "libgsm" => :optional
depends_on "libmodplug" => :optional
depends_on "libsoxr" => :optional
@ -120,7 +126,7 @@ class Ffmpeg < Formula
args << "--enable-libbluray" if build.with? "libbluray"
args << "--enable-libbs2b" if build.with? "libbs2b"
args << "--enable-libcaca" if build.with? "libcaca"
args << "--enable-libebur128" if build.with? "libebur128"
args << "--enable-libebur128" if build.stable? && build.with?("libebur128")
args << "--enable-libfdk-aac" if build.with? "fdk-aac"
args << "--enable-libfontconfig" if build.with? "fontconfig"
args << "--enable-libfreetype" if build.with? "freetype"