aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorKyle Fuller2010-07-20 02:11:29 +0100
committerAdam Vandenberg2010-07-22 13:26:23 -0700
commit407b890fdc11dbe00d46acb7bef126308e3f7771 (patch)
treec5daf025bcffa72d947e6912fcf372fcd5995c01 /Library
parent4725ea89105411061a4818e1eef5afcd7f8cf9f8 (diff)
downloadhomebrew-407b890fdc11dbe00d46acb7bef126308e3f7771.tar.bz2
Use depends_on in the flac formula and also enable-sse
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/flac.rb18
1 files changed, 8 insertions, 10 deletions
diff --git a/Library/Formula/flac.rb b/Library/Formula/flac.rb
index a17418364..a60f033c1 100644
--- a/Library/Formula/flac.rb
+++ b/Library/Formula/flac.rb
@@ -1,21 +1,23 @@
require 'formula'
class Flac2Mp3 <GithubGistFormula
- @url='http://gist.github.com/raw/124242/79857936f1d72824be0fb5d2ac845c02322abea0/flac2mp3'
- @md5='8351009b64afedfeb7a9e162ccd8d94c'
+ url 'http://gist.github.com/raw/124242/79857936f1d72824be0fb5d2ac845c02322abea0/flac2mp3'
+ md5 '8351009b64afedfeb7a9e162ccd8d94c'
end
class Flac <Formula
- @homepage='http://flac.sourceforge.net'
- @url='http://downloads.sourceforge.net/sourceforge/flac/flac-1.2.1.tar.gz'
- @md5='153c8b15a54da428d1f0fadc756c22c7'
+ homepage 'http://flac.sourceforge.net'
+ url 'http://downloads.sourceforge.net/sourceforge/flac/flac-1.2.1.tar.gz'
+ md5 '153c8b15a54da428d1f0fadc756c22c7'
+
+ depends_on 'lame'
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",
+ "--enable-sse",
"--prefix=#{prefix}",
"--mandir=#{man}"
ENV['OBJ_FORMAT']='macho'
@@ -23,8 +25,4 @@ class Flac <Formula
Flac2Mp3.new.brew {|f| bin.install 'flac2mp3'}
end
-
- def caveats
- "The flac2mp3 Ruby script depends on Lame." if `which lame`.empty?
- end
end \ No newline at end of file