e6d6b10931
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
24 lines
667 B
Ruby
24 lines
667 B
Ruby
require 'formula'
|
|
|
|
class Mpg123 < Formula
|
|
homepage 'http://www.mpg123.de/'
|
|
url 'http://downloads.sourceforge.net/project/mpg123/mpg123/1.14.4/mpg123-1.14.4.tar.bz2'
|
|
mirror 'http://www.mpg123.de/download/mpg123-1.14.4.tar.bz2'
|
|
sha1 '9f53e27bb40b8df3d3b6df25f5f9a8a83b1fccfe'
|
|
|
|
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
|