homebrew-core/Formula/mpg123.rb
Jaime Marquínez Ferrándiz 74c83fa9f6 Batch convert http download urls from SourceForge to https
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-03-02 09:16:53 -08:00

24 lines
671 B
Ruby

require 'formula'
class Mpg123 < Formula
homepage 'http://www.mpg123.de/'
url 'https://downloads.sourceforge.net/project/mpg123/mpg123/1.18.0/mpg123-1.18.0.tar.bz2'
mirror 'http://mpg123.orgis.org/download/mpg123-1.18.0.tar.bz2'
sha1 'd6e59eeb972a7d11dfcc7505cf1f3e0ae875f439'
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