From 9d9542db7693d5b93ccce4b2c7d1f4cfacfb00fa Mon Sep 17 00:00:00 2001 From: Roy Shilkrot Date: Thu, 9 Oct 2014 01:41:55 -0400 Subject: sound-touch: add integer type samples option. adding the option to use integer type samples (rather than the default float) by exposing the ./configure option. --- Library/Formula/sound-touch.rb | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'Library/Formula') 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 -- cgit v1.2.3