aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/sound-touch.rb11
1 files changed, 8 insertions, 3 deletions
diff --git a/Library/Formula/sound-touch.rb b/Library/Formula/sound-touch.rb
index d3188a3bd..9c763e2a9 100644
--- a/Library/Formula/sound-touch.rb
+++ b/Library/Formula/sound-touch.rb
@@ -5,15 +5,20 @@ class SoundTouch < Formula
url "http://www.surina.net/soundtouch/soundtouch-1.8.0.tar.gz"
sha256 "3d4161d74ca25c5a98c69dbb8ea10fd2be409ba1a3a0bf81db407c4c261f166b"
+ option "with-integer-samples", "Build using integer samples? (default is float)"
+
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
def install
system "/bin/sh", "bootstrap"
- system "./configure", "--disable-dependency-tracking",
- "--disable-silent-rules",
- "--prefix=#{prefix}"
+ args = ["--disable-dependency-tracking",
+ "--disable-silent-rules",
+ "--prefix=#{prefix}"]
+ args << "--enable-integer-samples" if build.with? "integer-samples"
+
+ system "./configure",*args
system "make", "install"
end
end