diff options
| author | Roy Shilkrot | 2014-10-09 01:41:55 -0400 |
|---|---|---|
| committer | Mike McQuaid | 2014-10-09 11:25:16 +0100 |
| commit | 9d9542db7693d5b93ccce4b2c7d1f4cfacfb00fa (patch) | |
| tree | fd23248194c1b8a7e8dddf9eda5e71ad635b0ec9 /Library | |
| parent | 93e1751782dd89e3d6f99c88103c70a08dbe3fce (diff) | |
| download | homebrew-9d9542db7693d5b93ccce4b2c7d1f4cfacfb00fa.tar.bz2 | |
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.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/sound-touch.rb | 11 |
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 |
