diff options
Diffstat (limited to 'Library/Formula/mpg123.rb')
| -rw-r--r-- | Library/Formula/mpg123.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Library/Formula/mpg123.rb b/Library/Formula/mpg123.rb index 7855332db..8f49e8f01 100644 --- a/Library/Formula/mpg123.rb +++ b/Library/Formula/mpg123.rb @@ -17,17 +17,15 @@ class Mpg123 <Formula "--with-audio=coreaudio", "--with-default-audio=coreaudio"] - # Don't build 64-bit on Leopard - if MACOS_VERSION >= 10.6 and Hardware.is_64_bit? + if snow_leopard_64? args << "--with-cpu=x86-64" else - # there are no Intel Mac computers without SSE args << "--with-cpu=sse_alone" end system "./configure", *args - # ./configure incorrectly detects 10.5 as 10.4. Cut that crap out. + # ./configure incorrectly detects 10.5 as 10.4; fix it. ['.', 'src', 'src/output', 'src/libmpg123'].each do |path| inreplace "#{path}/Makefile" do |s| s.gsub! "-mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk", "" |
