homebrew-core/Formula/flac.rb

45 lines
1.2 KiB
Ruby
Raw Normal View History

require 'formula'
2009-06-05 11:57:50 +00:00
class Flac2Mp3 < Formula
url 'https://github.com/rmndk/flac2mp3/archive/v1.0.tar.gz'
sha1 '1fe176c715a6cd780179126d6aa95cf1f15e7ad8'
2009-06-05 11:57:50 +00:00
end
2011-03-10 05:11:03 +00:00
class Flac < Formula
homepage 'http://flac.sourceforge.net'
url 'http://downloads.sourceforge.net/sourceforge/flac/flac-1.2.1.tar.gz'
sha1 'bd54354900181b59db3089347cc84ad81e410b38'
option :universal
depends_on 'lame'
2010-08-24 16:11:11 +00:00
depends_on 'libogg' => :optional
2009-06-05 11:57:50 +00:00
fails_with :llvm do
build 2326
cause "Undefined symbols when linking"
end
2011-03-21 21:24:22 +00:00
def install
ENV.universal_binary if build.universal?
# sadly the asm optimisations won't compile since Leopard
system "./configure", "--disable-dependency-tracking",
"--disable-debug",
"--disable-asm-optimizations",
"--enable-sse",
"--prefix=#{prefix}",
"--mandir=#{man}"
2009-07-31 13:04:49 +00:00
ENV['OBJ_FORMAT']='macho'
# adds universal flags to the generated libtool script
inreplace "libtool" do |s|
s.gsub! ":$verstring\"", ":$verstring -arch i386 -arch x86_64\""
end
2009-07-31 13:04:49 +00:00
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