diff options
| author | Gregory Man | 2011-08-30 17:13:10 +0300 |
|---|---|---|
| committer | Charlie Sharpsteen | 2011-08-30 17:35:07 -0700 |
| commit | 5fe6ab8da140e5a4b12d80766c9cb6124b9c81f9 (patch) | |
| tree | 9adbb335b0e8211dd48978e2c01b4091a62b42ab /Library/Formula/ffmpeg.rb | |
| parent | 7097b20f1895dce841ecf16d33ac6fae1a06bc00 (diff) | |
| download | homebrew-5fe6ab8da140e5a4b12d80766c9cb6124b9c81f9.tar.bz2 | |
FFmpeg: Added option to install FFmpeg tools
Closes #7298.
Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
Diffstat (limited to 'Library/Formula/ffmpeg.rb')
| -rw-r--r-- | Library/Formula/ffmpeg.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Library/Formula/ffmpeg.rb b/Library/Formula/ffmpeg.rb index 7b9a39ef2..eb1b843ec 100644 --- a/Library/Formula/ffmpeg.rb +++ b/Library/Formula/ffmpeg.rb @@ -17,6 +17,12 @@ class Ffmpeg < Formula depends_on 'libvpx' => :optional depends_on 'xvid' => :optional + def options + [ + ["--with-tools", "Install additional FFmpeg tools."] + ] + end + def install args = ["--prefix=#{prefix}", "--enable-shared", @@ -65,6 +71,11 @@ class Ffmpeg < Formula write_version_file if ARGV.build_head? system "make install" + + if ARGV.include? "--with-tools" + system "make alltools" + bin.install Dir['tools/*'].select {|f| File.executable? f} + end end # Makefile expects to run in git repo and generate a version number |
