Skip to content

Commit

Permalink
ffmpeg: add rubberband and zimg options.
Browse files Browse the repository at this point in the history
Both are external libraries supported since FFmpeg 3.0.

Closes Homebrew/legacy-homebrew#49411.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
  • Loading branch information
AirPort authored and MikeMcQuaid committed Feb 22, 2016
1 parent 115cd36 commit 49d7aa5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Formula/ffmpeg.rb
Expand Up @@ -33,6 +33,8 @@ class Ffmpeg < Formula
option "with-zeromq", "Enable using libzeromq to receive commands sent through a libzeromq client"
option "with-snappy", "Enable Snappy library"
option "with-dcadec", "Enable dcadec library"
option "with-rubberband", "Enable rubberband library"
option "with-zimg", "Enable z.lib zimg library"

depends_on "pkg-config" => :build

Expand Down Expand Up @@ -72,6 +74,8 @@ class Ffmpeg < Formula
depends_on "zeromq" => :optional
depends_on "libbs2b" => :optional
depends_on "dcadec" => :optional
depends_on "rubberband" => :optional
depends_on "zimg" => :optional

def install
args = ["--prefix=#{prefix}",
Expand Down Expand Up @@ -118,6 +122,8 @@ def install
args << "--enable-libzmq" if build.with? "zeromq"
args << "--enable-libbs2b" if build.with? "libbs2b"
args << "--enable-libdcadec" if build.with? "dcadec"
args << "--enable-librubberband" if build.with? "rubberband"
args << "--enable-libzimg" if build.with? "zimg"
args << "--disable-indev=qtkit" if build.without? "qtkit"

if build.with? "openjpeg"
Expand Down

0 comments on commit 49d7aa5

Please sign in to comment.