62cc956cfb
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://sourceforge.net/projects/mpg123/files/mpg123/1.15.1/mpg123-1.15.1.tar.bz2'
|
|
mirror 'http://mpg123.orgis.org/download/mpg123-1.15.1.tar.bz2'
|
|
sha1 '824003a25f22dde5a03031cb658b6d6a160e8740'
|
|
|
|
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
|