From 33db3a02fb934460fec546b261a02639f6ce234d Mon Sep 17 00:00:00 2001 From: Johnathan Conley Date: Fri, 10 Jan 2014 23:54:18 -0600 Subject: coin: fix clang compilation. Closes #25809. Signed-off-by: Mike McQuaid --- Library/Formula/coin.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Library/Formula') diff --git a/Library/Formula/coin.rb b/Library/Formula/coin.rb index da911c0e5..726e56e93 100644 --- a/Library/Formula/coin.rb +++ b/Library/Formula/coin.rb @@ -6,10 +6,16 @@ class Coin < Formula sha1 '8e9f05628461963623686d3ec53102214e233dd1' def install + # https://bitbucket.org/Coin3D/coin/issue/47 (fix misspelled test flag) + inreplace "configure", '-fno-for-scoping', '-fno-for-scope' + + # https://bitbucket.org/Coin3D/coin/issue/45 (suppress math-undefs) + # http://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/graphics/Coin/patches/patch-include_Inventor_C_base_math-undefs.h + inreplace "include/Inventor/C/base/math-undefs.h", "#ifndef COIN_MATH_UNDEFS_H", "#if false" + system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}", "--with-framework-prefix=#{lib}" system "make install" end - end -- cgit v1.2.3