2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-06-05 11:57:50 +00:00
|
|
|
|
|
|
|
class Flac2Mp3 <GithubGistFormula
|
2010-07-20 01:11:29 +00:00
|
|
|
url 'http://gist.github.com/raw/124242/79857936f1d72824be0fb5d2ac845c02322abea0/flac2mp3'
|
|
|
|
md5 '8351009b64afedfeb7a9e162ccd8d94c'
|
2009-06-05 11:57:50 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class Flac <Formula
|
2010-07-20 01:11:29 +00:00
|
|
|
homepage 'http://flac.sourceforge.net'
|
|
|
|
url 'http://downloads.sourceforge.net/sourceforge/flac/flac-1.2.1.tar.gz'
|
|
|
|
md5 '153c8b15a54da428d1f0fadc756c22c7'
|
|
|
|
|
|
|
|
depends_on 'lame'
|
2009-06-05 11:57:50 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
# sadly the asm optimisations won't compile since Leopard, and nobody
|
|
|
|
# cares or knows how to fix it
|
2009-08-07 14:41:43 +00:00
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-asm-optimizations",
|
2010-07-20 01:11:29 +00:00
|
|
|
"--enable-sse",
|
2009-08-07 14:41:43 +00:00
|
|
|
"--prefix=#{prefix}",
|
2010-02-15 22:51:38 +00:00
|
|
|
"--mandir=#{man}"
|
2009-07-31 13:04:49 +00:00
|
|
|
ENV['OBJ_FORMAT']='macho'
|
|
|
|
system "make install"
|
2009-06-05 11:57:50 +00:00
|
|
|
|
2009-08-10 17:27:53 +00:00
|
|
|
Flac2Mp3.new.brew {|f| bin.install 'flac2mp3'}
|
2009-06-05 11:57:50 +00:00
|
|
|
end
|
|
|
|
end
|