diff options
| author | Max Howell | 2009-10-04 18:49:29 +0100 |
|---|---|---|
| committer | Max Howell | 2009-10-04 18:49:29 +0100 |
| commit | 2ba49484a90a79aa42412dbadb25e24ca1534b1f (patch) | |
| tree | df136d67a96cfed351d62977ac22c458bb54add8 /Library | |
| parent | f0b78897a401397bd409570a76a45717670aefbd (diff) | |
| download | homebrew-2ba49484a90a79aa42412dbadb25e24ca1534b1f.tar.bz2 | |
Fixes #80; mpg123 doesn't build on Snow Leopard
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/mpg123.rb | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/Library/Formula/mpg123.rb b/Library/Formula/mpg123.rb index 0b24399b2..e81e94b38 100644 --- a/Library/Formula/mpg123.rb +++ b/Library/Formula/mpg123.rb @@ -11,14 +11,19 @@ class Mpg123 <Formula end def install - # otherwise the exe segfaults, I couldn't diagnose why - ENV.osx_10_4 - ENV.gcc_4_0_1 + if MACOS_VERSION < 10.6 + # otherwise the exe segfaults, I couldn't diagnose why + ENV.osx_10_4 + ENV.gcc_4_0_1 + end - system "./configure", "--disable-debug", - "--with-optimization=4", - "--with-cpu=sse_alone", - "--prefix=#{prefix}" + 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
\ No newline at end of file |
