diff options
| author | Dan | 2014-04-18 17:47:37 +0200 | 
|---|---|---|
| committer | Adam Vandenberg | 2014-05-03 09:23:49 -0700 | 
| commit | d545ce0da368e3016be03477cc0c64062f32cc12 (patch) | |
| tree | e0bf8b2a85078f09a13f2efa9a3405d78d7d3e37 /Library/Formula/ffmpeg.rb | |
| parent | 041baf354b6c63c4f57350b81423271abf9ec728 (diff) | |
| download | homebrew-d545ce0da368e3016be03477cc0c64062f32cc12.tar.bz2 | |
ffmpeg: add optional x265 support
Closes: #28489
Diffstat (limited to 'Library/Formula/ffmpeg.rb')
| -rw-r--r-- | Library/Formula/ffmpeg.rb | 17 | 
1 files changed, 15 insertions, 2 deletions
diff --git a/Library/Formula/ffmpeg.rb b/Library/Formula/ffmpeg.rb index 643ff5b1b..141b8cda1 100644 --- a/Library/Formula/ffmpeg.rb +++ b/Library/Formula/ffmpeg.rb @@ -2,8 +2,18 @@ require 'formula'  class Ffmpeg < Formula    homepage 'http://ffmpeg.org/' -  url 'http://ffmpeg.org/releases/ffmpeg-2.2.1.tar.bz2' -  sha1 'c5f8d103b20cd73d329401d85ced4a014757f8b9' + +  stable do +    url 'http://ffmpeg.org/releases/ffmpeg-2.2.1.tar.bz2' +    sha1 'c5f8d103b20cd73d329401d85ced4a014757f8b9' + +    patch do +      # fixes an api incompability with latest x265 0.9, to be removed with next ffmpeg 2.2.x+ release +      url "http://git.videolan.org/?p=ffmpeg.git;a=patch;h=d67dbfa7c195fabce706ca03c439419450f9bd8a" +      sha1 'f9481393869a8f38912faf935fb584c8e41d5c50' +    end +  end +    head 'git://git.videolan.org/ffmpeg.git'    bottle do @@ -26,6 +36,7 @@ class Ffmpeg < Formula    option 'with-tools', 'Enable additional FFmpeg tools'    option 'with-fdk-aac', 'Enable the Fraunhofer FDK AAC library'    option 'with-libvidstab', 'Enable vid.stab support for video stabilization' +  option 'with-x265', "Enable x265 encoder"    depends_on 'pkg-config' => :build @@ -57,6 +68,7 @@ class Ffmpeg < Formula    depends_on 'libbluray' => :optional    depends_on 'libquvi' => :optional    depends_on 'libvidstab' => :optional +  depends_on 'x265' => :optional    def install      args = ["--prefix=#{prefix}", @@ -96,6 +108,7 @@ class Ffmpeg < Formula      args << "--enable-libcaca" if build.with? 'libcaca'      args << "--enable-libquvi" if build.with? 'libquvi'      args << "--enable-libvidstab" if build.with? 'libvidstab' +    args << "--enable-libx265" if build.with? 'x265'      if build.with? 'openjpeg'        args << '--enable-libopenjpeg'  | 
