flac: use -std=gnu89 instead of patch

Fixes Homebrew/homebrew#24633.
This commit is contained in:
Jack Nagel 2013-11-24 11:37:46 -06:00
parent 87c8b163f3
commit 866f9663dd

View file

@ -7,34 +7,20 @@ class Flac < Formula
option :universal
depends_on 'pkg-config' => :build
depends_on 'xz' => :build
depends_on 'lame'
depends_on 'libogg' => :optional
# Mavericks fix needs autoreconf. Drop these after upstream has
# incorporated the patch.
depends_on :autoconf => :build
depends_on :automake => :build
depends_on :libtool => :build
depends_on 'pkg-config' => :build
fails_with :llvm do
build 2326
cause "Undefined symbols when linking"
end
def patches
# Fixes compilation on mac os 10.9 maverick.
# https://sourceforge.net/p/flac/bugs/405/
{ :p0 => "https://sourceforge.net/p/flac/bugs/_discuss/thread/17c68b42/fc53/attachment/autoconf-not-gnu89-131010.patch" }
end
def install
ENV.universal_binary if build.universal?
# Mavericks fix needs autoreconf. Drop this line after upstream has
# incorporated the patch.
system "./autogen.sh"
ENV.append 'CFLAGS', '-std=gnu89'
# sadly the asm optimisations won't compile since Leopard
system "./configure", "--disable-dependency-tracking",