homebrew-core/Formula/mpg123.rb
Victor Martinez 8dc451e3e2 Fixed several broken sourceforge.net download locations
Closes Homebrew/homebrew#20645.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-06-30 12:17:57 -07:00

24 lines
670 B
Ruby

require 'formula'
class Mpg123 < Formula
homepage 'http://www.mpg123.de/'
url 'http://downloads.sourceforge.net/project/mpg123/mpg123/1.15.4/mpg123-1.15.4.tar.bz2'
mirror 'http://mpg123.orgis.org/download/mpg123-1.15.4.tar.bz2'
sha1 'f39d927bcf7abf4f9d857f10cd97c8ceccaffbfa'
def install
args = ["--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
'--with-default-audio=coreaudio',
'--with-module-suffix=.so']
if MacOS.prefer_64_bit?
args << "--with-cpu=x86-64"
else
args << "--with-cpu=sse_alone"
end
system "./configure", *args
system "make install"
end
end