aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorPaul Ryan2014-10-23 13:03:01 -0600
committerJack Nagel2014-10-23 19:58:51 -0500
commit27f0d2308225d771671f9cd18b161190594ab2ad (patch)
tree94fe4ec184ebb50c641fd082c4605fd85459c5b5 /Library/Formula
parent490dcf5046c3ddc58dcc7f661f360087f9d8b84d (diff)
downloadhomebrew-27f0d2308225d771671f9cd18b161190594ab2ad.tar.bz2
opus: add custom-modes option
Closes #33519. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/opus.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/Library/Formula/opus.rb b/Library/Formula/opus.rb
index 4d2781ca4..f1d1c2b9f 100644
--- a/Library/Formula/opus.rb
+++ b/Library/Formula/opus.rb
@@ -12,6 +12,8 @@ class Opus < Formula
sha1 "a7e6ed2455861c41e021fec280b6fa28462341a2" => :mountain_lion
end
+ option "with-custom-modes", "Enable custom-modes for opus see http://www.opus-codec.org/docs/html_api-1.1.0/group__opus__custom.html"
+
head do
url 'https://git.xiph.org/opus.git'
@@ -21,9 +23,11 @@ class Opus < Formula
end
def install
+ args = ["--disable-dependency-tracking", "--disable-doc", "--prefix=#{prefix}"]
+ args << "--enable-custom-modes" if build.with? "custom-modes"
+
system "./autogen.sh" if build.head?
- system "./configure", "--disable-dependency-tracking", "--disable-doc",
- "--prefix=#{prefix}"
+ system "./configure", *args
system "make install"
end
end