homebrew-core/Formula/mpg123.rb

25 lines
667 B
Ruby
Raw Normal View History

require 'formula'
2009-08-07 14:16:18 +00:00
2011-03-10 05:11:03 +00:00
class Mpg123 < Formula
homepage 'http://www.mpg123.de/'
url 'http://sourceforge.net/projects/mpg123/files/mpg123/1.15.4/mpg123-1.15.4.tar.bz2'
mirror 'http://mpg123.orgis.org/download/mpg123-1.15.4.tar.bz2'
sha1 'f39d927bcf7abf4f9d857f10cd97c8ceccaffbfa'
2009-08-07 14:16:18 +00:00
def install
args = ["--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
'--with-default-audio=coreaudio',
'--with-module-suffix=.so']
2011-03-18 17:30:47 +00:00
if MacOS.prefer_64_bit?
args << "--with-cpu=x86-64"
else
args << "--with-cpu=sse_alone"
end
system "./configure", *args
2009-08-07 14:16:18 +00:00
system "make install"
end
end