diff options
Diffstat (limited to 'Library/Formula/x264.rb')
| -rw-r--r-- | Library/Formula/x264.rb | 11 |
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| |
