ffmpeg: add optional dep on opencore-amr

Closes Homebrew/homebrew#8986.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
master
Sandeep Ghael 2011-12-05 17:11:07 -05:00 committed by Jack Nagel
parent 0c895dd8a1
commit 6ab59a771f
1 changed files with 3 additions and 0 deletions

View File

@ -30,6 +30,7 @@ class Ffmpeg < Formula
depends_on 'libogg' => :optional
depends_on 'libvpx' => :optional
depends_on 'xvid' => :optional
depends_on 'opencore-amr' => :optional
depends_on 'sdl' if ffplay?
@ -52,6 +53,8 @@ class Ffmpeg < Formula
args << "--enable-libvorbis" if Formula.factory('libvorbis').installed?
args << "--enable-libvpx" if Formula.factory('libvpx').installed?
args << "--enable-libxvid" if Formula.factory('xvid').installed?
args << "--enable-libopencore-amrnb" if Formula.factory('opencore-amr').installed?
args << "--enable-libopencore-amrwb" if Formula.factory('opencore-amr').installed?
args << "--disable-ffplay" unless ffplay?
# For 32-bit compilation under gcc 4.2, see: