2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-06-05 11:57:50 +00:00
|
|
|
|
2012-08-30 11:55:33 +00:00
|
|
|
class Flac2Mp3 < Formula
|
2012-09-04 05:39:21 +00:00
|
|
|
url 'https://github.com/rmndk/flac2mp3/tarball/v1.0'
|
2012-09-06 16:17:52 +00:00
|
|
|
sha1 '07d83e9264e7159a3df50d8422fb1db07f827f55'
|
2009-06-05 11:57:50 +00:00
|
|
|
end
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
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'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'bd54354900181b59db3089347cc84ad81e410b38'
|
2010-07-20 01:11:29 +00:00
|
|
|
|
|
|
|
depends_on 'lame'
|
2010-08-24 16:11:11 +00:00
|
|
|
depends_on 'libogg' => :optional
|
2009-06-05 11:57:50 +00:00
|
|
|
|
2012-03-18 20:33:24 +00:00
|
|
|
fails_with :llvm do
|
|
|
|
build 2326
|
|
|
|
cause "Undefined symbols when linking"
|
|
|
|
end
|
2011-02-14 18:57:55 +00:00
|
|
|
|
2011-03-21 21:24:22 +00:00
|
|
|
def install
|
2010-04-07 05:58:35 +00:00
|
|
|
# sadly the asm optimisations won't compile since Leopard, and nobody
|
2009-06-05 11:57:50 +00:00
|
|
|
# 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
|
2011-02-14 18:57:55 +00:00
|
|
|
end
|