diff options
Diffstat (limited to 'Library/Formula')
| -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 |
