Created
December 8, 2013 07:02
-
-
Save sanelson/7854119 to your computer and use it in GitHub Desktop.
Updated homebrew formula for coin3d to fix xcode build issue on OSX 10.9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Coin < Formula | |
homepage 'https://bitbucket.org/Coin3D/coin/wiki/Home' | |
url 'https://bitbucket.org/Coin3D/coin/downloads/Coin-3.1.3.tar.gz' | |
sha1 '8e9f05628461963623686d3ec53102214e233dd1' | |
def install | |
system "./configure", "--disable-debug", "--disable-dependency-tracking", | |
"--prefix=#{prefix}", | |
"--with-framework-prefix=#{lib}" | |
system "make install" | |
end | |
def patches | |
# Fixes xcode build issue on 10.9 | |
# https://github.com/mxcl/homebrew/issues/23782 | |
DATA | |
end | |
end | |
__END__ | |
diff --git a/include/Inventor/C/base/math-undefs.h b/include/Inventor/C/base/math-undefs.h | |
index 5b9e7f2..e288592 100644 | |
--- a/include/Inventor/C/base/math-undefs.h | |
+++ b/include/Inventor/C/base/math-undefs.h | |
@@ -40,6 +40,12 @@ | |
work as intended. 20070518 larsa | |
*/ | |
+/* Turned off due to xcode build issue on OS 10.9 | |
+ issue: https://github.com/mxcl/homebrew/issues/23782 | |
+ also see: | |
+ http://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/graphics/Coin/patches/patch-include_Inventor_C_base_math-undefs.h | |
+*/ | |
+#if 0 | |
#undef cosf | |
#define cosf(x) NO_SINGLEPREC /* whatever that'll give us a compile error... */ | |
#undef sinf | |
@@ -58,6 +64,7 @@ | |
#define atanf(x) NO_SINGLEPREC | |
#undef atan2f | |
#define atan2f(x) NO_SINGLEPREC | |
+#endif | |
/* *********************************************************************** */ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment