diff options
| author | Max Howell | 2009-06-05 12:57:50 +0100 |
|---|---|---|
| committer | Max Howell | 2009-06-05 12:57:50 +0100 |
| commit | b951615c7698dc5be591e563a0115a54b50324b4 (patch) | |
| tree | d392a6eaaa7bfe5b306c095b96e462842425558e /Library/Formula | |
| parent | 39822cfbc2d5467f0c25c413bd9f0d977c6b0a64 (diff) | |
| download | homebrew-b951615c7698dc5be591e563a0115a54b50324b4.tar.bz2 | |
FLAC formula including flac2mp3 script
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/flac.rb | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Library/Formula/flac.rb b/Library/Formula/flac.rb new file mode 100644 index 000000000..47896def6 --- /dev/null +++ b/Library/Formula/flac.rb @@ -0,0 +1,29 @@ +require 'brewkit' + +class Flac2Mp3 <GithubGistFormula + @url='http://gist.github.com/raw/124242/70e0dddd5ed3af94eca75f8e653a284a53a2bdf4/flac2mp3' + @md5='a38d150b5ebbcbc010c777bccf1c19a6' +end + +class Flac <Formula + @homepage='http://flac.sourceforge.net' + @url='http://kent.dl.sourceforge.net/sourceforge/flac/flac-1.2.1.tar.gz' + @md5='153c8b15a54da428d1f0fadc756c22c7' + + def install + # sadly the asm optimisations won't compile since Leopard, and nobody + # cares or knows how to fix it + # TODO --enable-sse + system "./configure --disable-debug --disable-asm-optimizations --prefix='#{prefix}' --mandir='#{prefix}/share/man'" + system "OBJ_FORMAT=macho make install" + + Flac2Mp3.new.brew do |flac2mp3| + FileUtils.chmod 0544, flac2mp3.name + FileUtils.cp flac2mp3.name, bin + end + end + + def caveats + "The flac2mp3 Ruby script depends on Lame." if `which lame`.empty? + end +end
\ No newline at end of file |
