diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/mpg123.rb | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Library/Formula/mpg123.rb b/Library/Formula/mpg123.rb new file mode 100644 index 000000000..0b24399b2 --- /dev/null +++ b/Library/Formula/mpg123.rb @@ -0,0 +1,24 @@ +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
\ No newline at end of file |
