aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJohnathan Conley2014-01-10 23:54:18 -0600
committerMike McQuaid2014-01-11 10:22:42 +0000
commit33db3a02fb934460fec546b261a02639f6ce234d (patch)
tree7676681c658724997850d88aff6b3f5ca8931489 /Library/Formula
parent0c3161762231a7d5f9060aa87e008572c846d057 (diff)
downloadhomebrew-33db3a02fb934460fec546b261a02639f6ce234d.tar.bz2
coin: fix clang compilation.
Closes #25809. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/coin.rb8
1 files changed, 7 insertions, 1 deletions
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