aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/sound-touch.rb
blob: 0be87c39ce098b2cf1c63ce0d517c7a8c9007f35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
require 'formula'

class SoundTouch <Formula
  url 'http://www.surina.net/soundtouch/soundtouch-1.5.0.tar.gz'
  homepage 'http://www.surina.net/soundtouch/'
  md5 '5456481d8707d2a2c27466ea64a099cb'

  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