Upate mpg123 to 1.21.1

Only try building 64-bit on Snow Leopard, as there are compiler
problems under Leopard.
This commit is contained in:
Adam Vandenberg 2010-05-01 10:07:54 -07:00
parent e3bd886263
commit 6d384f0f1b

View file

@ -1,9 +1,9 @@
require 'formula'
class Mpg123 <Formula
url 'http://downloads.sourceforge.net/project/mpg123/mpg123/1.9.2/mpg123-1.9.2.tar.bz2'
url 'http://downloads.sourceforge.net/project/mpg123/mpg123/1.12.1/mpg123-1.12.1.tar.bz2'
homepage 'http://www.mpg123.de/'
md5 '5313b1bcc0274b4d7c394397c205bb20'
md5 'e7d810a75d22954169f1530a436aca4c'
def skip_clean? path
# mpg123 can't find its plugins if there are no la files
@ -17,9 +17,9 @@ class Mpg123 <Formula
"--with-audio=coreaudio",
"--with-default-audio=coreaudio"]
if Hardware.is_64_bit?
# adamv got compile failure for these conditions
args << "--with-cpu=x86-64" unless MACOS_VERSION == 10.5 and Hardware.intel_family == :nehalem
# Don't build 64-bit on Leopard
if MACOS_VERSION >= 10.6 and Hardware.is_64_bit?
args << "--with-cpu=x86-64"
else
# there are no Intel Mac computers without SSE
args << "--with-cpu=sse_alone"