[121247] trunk/dports/graphics/Coin

mojca at macports.org mojca at macports.org
Sat Jun 21 01:14:49 PDT 2014


Revision: 121247
          https://trac.macports.org/changeset/121247
Author:   mojca at macports.org
Date:     2014-06-21 01:14:49 -0700 (Sat, 21 Jun 2014)
Log Message:
-----------
Coin: add upstream patch to prevent build errors on 10.9 (#41786, maintainer timeout)

Modified Paths:
--------------
    trunk/dports/graphics/Coin/Portfile
    trunk/dports/graphics/Coin/files/for.patch

Added Paths:
-----------
    trunk/dports/graphics/Coin/files/patch-include-Inventor-C-base-math-undefs.h.diff

Modified: trunk/dports/graphics/Coin/Portfile
===================================================================
--- trunk/dports/graphics/Coin/Portfile	2014-06-21 07:49:58 UTC (rev 121246)
+++ trunk/dports/graphics/Coin/Portfile	2014-06-21 08:14:49 UTC (rev 121247)
@@ -30,7 +30,8 @@
 patchfiles          configure.patch \
                     for.patch \
                     clang-name-lookup.diff \
-                    fix-weird-error.diff
+                    fix-weird-error.diff \
+                    patch-include-Inventor-C-base-math-undefs.h.diff
 
 configure.args      --with-simage=${prefix} \
                     --mandir=${prefix}/share/man

Modified: trunk/dports/graphics/Coin/files/for.patch
===================================================================
--- trunk/dports/graphics/Coin/files/for.patch	2014-06-21 07:49:58 UTC (rev 121246)
+++ trunk/dports/graphics/Coin/files/for.patch	2014-06-21 08:14:49 UTC (rev 121247)
@@ -1,6 +1,6 @@
 Index: src/shadows/SoShadowGroup.cpp
 ===================================================================
-1869c1869
+1699c1699
 <   for (int i = 0; i < numshadowlights; i++) {
 ---
 >   for (i = 0; i < numshadowlights; i++) {

Added: trunk/dports/graphics/Coin/files/patch-include-Inventor-C-base-math-undefs.h.diff
===================================================================
--- trunk/dports/graphics/Coin/files/patch-include-Inventor-C-base-math-undefs.h.diff	                        (rev 0)
+++ trunk/dports/graphics/Coin/files/patch-include-Inventor-C-base-math-undefs.h.diff	2014-06-21 08:14:49 UTC (rev 121247)
@@ -0,0 +1,30 @@
+https://bitbucket.org/Coin3D/coin/commits/9099b117765e03f96bd38ffd9cf58d055b07a4b4
+
+--- include/Inventor/C/base/math-undefs.h.orig
++++ include/Inventor/C/base/math-undefs.h
+@@ -38,7 +38,14 @@
+   This block was originally part of Inventor/C/basic.h, but since the
+   #undef's were mangled by the config.status process, it did not really
+   work as intended.  20070518 larsa
+-*/
++ 
++ cmath from "The LLVM Compiler Infrastructure" uses float-versions of the
++ math functions below. Therefore don't undefine them when __clang__ is
++ defined.
++ 
++ */
++
++#ifndef __clang__
+ 
+ #undef cosf
+ #define cosf(x) NO_SINGLEPREC /* whatever that'll give us a compile error... */
+@@ -59,6 +66,9 @@
+ #undef atan2f
+ #define atan2f(x) NO_SINGLEPREC
+ 
++#endif // !__clang__
++
++
+ /* *********************************************************************** */
+ 
+ #endif // !COIN_MATH_UNDEFS_H
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140621/24fe37ff/attachment.html>


More information about the macports-changes mailing list