2010-06-28 21:37:49 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class SoundTouch < Formula
|
2010-06-28 21:37:49 +00:00
|
|
|
url 'http://www.surina.net/soundtouch/soundtouch-1.5.0.tar.gz'
|
|
|
|
homepage 'http://www.surina.net/soundtouch/'
|
|
|
|
md5 '5456481d8707d2a2c27466ea64a099cb'
|
|
|
|
|
2012-05-15 21:17:32 +00:00
|
|
|
depends_on 'autoconf' => :build unless MacOS.xcode_version.to_f >= 4.3
|
|
|
|
|
2010-06-28 21:37:49 +00:00
|
|
|
def install
|
|
|
|
# SoundTouch has a small amount of inline assembly. The assembly has two labeled
|
|
|
|
# jumps. When compiling with gcc optimizations the inline assembly is duplicated
|
|
|
|
# and the symbol label occurs twice causing the build to fail.
|
|
|
|
ENV.no_optimization
|
|
|
|
# 64bit causes soundstretch to segfault when ever it is run.
|
|
|
|
ENV.m32
|
|
|
|
|
|
|
|
# The build fails complaining about out of date libtools. Rerunning the autoconf prevents the error.
|
|
|
|
system "autoconf"
|
|
|
|
|
|
|
|
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|