aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdios2011-11-17 01:31:17 +0800
committerAdam Vandenberg2011-11-26 13:23:02 -0800
commitfed20590b227d304eb54822cd88727f131ddcb49 (patch)
tree2456699c491457dad978c441d4c4cac1ece53c97
parent783f073929173da86bea5e354607e4dcd4b0a9ce (diff)
downloadhomebrew-fed20590b227d304eb54822cd88727f131ddcb49.tar.bz2
x264: add 10-bit option.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
-rw-r--r--Library/Formula/x264.rb11
1 files changed, 9 insertions, 2 deletions
diff --git a/Library/Formula/x264.rb b/Library/Formula/x264.rb
index 082dd52b0..88e2c8c52 100644
--- a/Library/Formula/x264.rb
+++ b/Library/Formula/x264.rb
@@ -10,11 +10,18 @@ class X264 < Formula
depends_on 'yasm' => :build
+ def options
+ [["--10-bit", "Make a 10-bit x264. (default: 8-bit)"]]
+ end
+
def install
# Having this set can fail the endian test!
ENV['GREP_OPTIONS'] = ''
- system "./configure", "--prefix=#{prefix}",
- "--enable-shared"
+
+ args = ["--prefix=#{prefix}", "--enable-shared"]
+ args << "--bit-depth=10" if ARGV.include?('--10-bit')
+
+ system "./configure", *args
if MacOS.prefer_64_bit?
inreplace 'config.mak' do |s|