homebrew-core/Formula/mpg123.rb

24 lines
656 B
Ruby

require 'brewkit'
class Mpg123 <Formula
@url='http://sourceforge.net/projects/mpg123/files/mpg123/mpg123-1.8.1.tar.bz2'
@homepage='http://www.mpg123.de/'
@md5='856893f14b29b1cddf4aba32469860b4'
def skip_clean? path
# mpg123 can't find its plugins if there are no la files
path.extname == '.la'
end
def install
# otherwise the exe segfaults, I couldn't diagnose why
ENV.osx_10_4
ENV.gcc_4_0_1
system "./configure", "--disable-debug",
"--with-optimization=4",
"--with-cpu=sse_alone",
"--prefix=#{prefix}"
system "make install"
end
end