blob: cc1ce28d8e7955492b5503fc2aae0cecc9127a97 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
  | 
require 'formula'
class Mpg123 <Formula
  @url='http://sourceforge.net/projects/mpg123/files/mpg123/mpg123-1.8.1.tar.bz2'
  @homepage='http://www.mpg123.de/'
  @md5='856893f14b29b1cddf4aba32469860b4'
  def skip_clean? path
    # mpg123 can't find its plugins if there are no la files
    path.extname == '.la'
  end
  def install
    if MACOS_VERSION < 10.6
      # otherwise the exe segfaults, I couldn't diagnose why
      ENV.osx_10_4
      ENV.gcc_4_0_1
    end
    args = ["--disable-debug", "--with-optimization=4",
                               "--with-cpu=sse_alone",
                               "--prefix=#{prefix}"]
    args << "--with-cpu=x86-64" if Hardware.is_64_bit?
    system "./configure", *args
    system "make install"
  end
end
  |