From 12f4819b08f2ee8d8abf9a9e775aa11555079225 Mon Sep 17 00:00:00 2001 From: Tsukasa OMOTO Date: Wed, 26 Mar 2014 13:38:00 +0000 Subject: [PATCH] x264: add mp4 support Closes Homebrew/homebrew#27882. Signed-off-by: Mike McQuaid --- Formula/x264.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Formula/x264.rb b/Formula/x264.rb index d184f95a780..928a54ab867 100644 --- a/Formula/x264.rb +++ b/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