homebrew-core/Formula/mpg123.rb

25 lines
671 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/'
2014-03-16 00:07:19 +00:00
url 'https://downloads.sourceforge.net/project/mpg123/mpg123/1.19.0/mpg123-1.19.0.tar.bz2'
2014-02-02 18:47:29 +00:00
mirror 'http://mpg123.orgis.org/download/mpg123-1.18.0.tar.bz2'
2014-03-16 00:07:19 +00:00
sha1 '835f8ae489b41ae69fa8c76a0b1e5ee5495ef0ae'
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