2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-08-07 14:16:18 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Mpg123 < Formula
|
2009-11-16 18:41:22 +00:00
|
|
|
homepage 'http://www.mpg123.de/'
|
2013-06-20 23:08:35 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/mpg123/mpg123/1.15.4/mpg123-1.15.4.tar.bz2'
|
2013-05-24 03:24:12 +00:00
|
|
|
mirror 'http://mpg123.orgis.org/download/mpg123-1.15.4.tar.bz2'
|
|
|
|
sha1 'f39d927bcf7abf4f9d857f10cd97c8ceccaffbfa'
|
2009-08-07 14:16:18 +00:00
|
|
|
|
|
|
|
def install
|
2009-11-16 18:41:22 +00:00
|
|
|
args = ["--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
2012-05-08 18:13:55 +00:00
|
|
|
'--with-default-audio=coreaudio',
|
|
|
|
'--with-module-suffix=.so']
|
2009-10-04 17:49:29 +00:00
|
|
|
|
2011-03-18 17:30:47 +00:00
|
|
|
if MacOS.prefer_64_bit?
|
2010-05-01 17:07:54 +00:00
|
|
|
args << "--with-cpu=x86-64"
|
2009-12-04 10:37:09 +00:00
|
|
|
else
|
|
|
|
args << "--with-cpu=sse_alone"
|
|
|
|
end
|
2009-10-04 17:49:29 +00:00
|
|
|
|
|
|
|
system "./configure", *args
|
2009-08-07 14:16:18 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
2009-11-05 11:10:28 +00:00
|
|
|
end
|