From 7182cd7ab02785f81134db90caa6fe940a12d2fd Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Wed, 23 May 2012 14:26:25 -0700 Subject: libagg: Fix compilation errors Remove AM_C_PROTOTYPES from configure.in, which was dropped in automake 1.12 as pre-ANSI C compilers are no longer worth caring about. Add fails_with clang. AGG tries to return a const reference as a non-const reference, which is allowed by gcc and llvm but not clang 3.1. Signed-off-by: Adam Vandenberg --- Library/Formula/libagg.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Library') diff --git a/Library/Formula/libagg.rb b/Library/Formula/libagg.rb index 0bcfdf614..a3e1eb1d3 100644 --- a/Library/Formula/libagg.rb +++ b/Library/Formula/libagg.rb @@ -9,9 +9,21 @@ class Libagg < Formula depends_on 'pkg-config' => :build depends_on 'sdl' + fails_with :clang do + build 318 + cause <<-EOS.undent + AGG tries to return a const reference as a non-const reference, which is + rejected by clang 3.1 but accepted by gcc + EOS + end + def install ENV.x11 # For freetype + # AM_C_PROTOTYPES was removed in automake 1.12, as it's only needed for + # pre-ANSI compilers + inreplace 'configure.in', 'AM_C_PROTOTYPES', '' + # No configure script. We need to run autoreconf, and aclocal and automake # need some direction. ENV['ACLOCAL'] = "aclocal -I#{HOMEBREW_PREFIX}/share/aclocal" # To find SDL m4 files -- cgit v1.2.3