diff options
| author | Tsukasa OMOTO | 2014-03-26 13:38:00 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2014-03-26 13:38:00 +0000 |
| commit | 4f2933c145b86e3a697dbe29fb84eb5273eb793c (patch) | |
| tree | 9cc392033b8b422446afcd7c16c7759503cfdd65 /Library | |
| parent | 222ab2cf4da1dc234bf5add8cae0d49c258dabdc (diff) | |
| download | homebrew-4f2933c145b86e3a697dbe29fb84eb5273eb793c.tar.bz2 | |
x264: add mp4 support
Closes #27882.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/x264.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Library/Formula/x264.rb b/Library/Formula/x264.rb index d184f95a7..928a54ab8 100644 --- a/Library/Formula/x264.rb +++ b/Library/Formula/x264.rb @@ -30,6 +30,12 @@ class X264 < Formula depends_on 'yasm' => :build option '10-bit', 'Build a 10-bit x264 (default: 8-bit)' + option "with-mp4=", "Select mp4 output: none (default), l-smash or gpac" + + case ARGV.value "with-mp4" + when "l-smash" then depends_on "l-smash" + when "gpac" then depends_on "gpac" + end def install args = %W[ @@ -38,6 +44,11 @@ class X264 < Formula --enable-static --enable-strip ] + if Formula["l-smash"].installed? + args << "--disable-gpac" + elsif Formula["gpac"].installed? + args << "--disable-lsmash" + end args << "--bit-depth=10" if build.include? '10-bit' # For running version.sh correctly |
