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
|
|
|
homepage 'http://www.surina.net/soundtouch/'
|
2012-07-10 17:06:50 +00:00
|
|
|
url 'http://www.surina.net/soundtouch/soundtouch-1.6.0.tar.gz'
|
|
|
|
sha256 '8776edaf7299ffe1e8c97285f020365a63c0e01aa4f6f7c5fd1d011c0ded278f'
|
2010-06-28 21:37:49 +00:00
|
|
|
|
2012-07-10 16:44:34 +00:00
|
|
|
depends_on :autoconf
|
2012-07-10 17:06:50 +00:00
|
|
|
depends_on :automake
|
|
|
|
depends_on :libtool
|
2012-05-15 21:17:32 +00:00
|
|
|
|
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
|
|
|
|
|
2012-07-10 17:06:50 +00:00
|
|
|
# The tarball doesn't contain a configure script, so we have to bootstrap.
|
|
|
|
system "/bin/sh bootstrap"
|
|
|
|
system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking"
|
2010-06-28 21:37:49 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|