[57897] trunk/dports/math/octave

alakazam at macports.org alakazam at macports.org
Fri Sep 18 08:28:41 PDT 2009


Revision: 57897
          http://trac.macports.org/changeset/57897
Author:   alakazam at macports.org
Date:     2009-09-18 08:28:37 -0700 (Fri, 18 Sep 2009)
Log Message:
-----------
Fix octave compilation errors linked to lgamma_r not being declared on Tiger. Closes #20636. Needs testing.

Modified Paths:
--------------
    trunk/dports/math/octave/Portfile

Added Paths:
-----------
    trunk/dports/math/octave/files/
    trunk/dports/math/octave/files/patch-lo-specfun.cc.diff

Modified: trunk/dports/math/octave/Portfile
===================================================================
--- trunk/dports/math/octave/Portfile	2009-09-18 14:35:35 UTC (rev 57896)
+++ trunk/dports/math/octave/Portfile	2009-09-18 15:28:37 UTC (rev 57897)
@@ -98,6 +98,10 @@
     default_variants +gcc43
 }
 
+platform darwin 8 {
+    patchfiles patch-lo-specfun.cc.diff
+}
+
 post-patch {
     reinplace "s|-lcholmod|-lcholmod -lmetis|g" ${worksrcpath}/configure
 }

Added: trunk/dports/math/octave/files/patch-lo-specfun.cc.diff
===================================================================
--- trunk/dports/math/octave/files/patch-lo-specfun.cc.diff	                        (rev 0)
+++ trunk/dports/math/octave/files/patch-lo-specfun.cc.diff	2009-09-18 15:28:37 UTC (rev 57897)
@@ -0,0 +1,15 @@
+--- liboctave/lo-specfun.cc
++++ liboctave/lo-specfun.cc
+@@ -25,6 +25,12 @@
+ #include <config.h>
+ #endif
+ 
++#if !defined (_REENTRANT)
++#define _REENTRANT
++#endif
++#include <cmath>
++#undef _REENTRANT
++
+ #include "Range.h"
+ #include "CColVector.h"
+ #include "CMatrix.h"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090918/4c52a4ee/attachment.html>


More information about the macports-changes mailing list