[84686] trunk/dports/math/blitz
jmr at macports.org
jmr at macports.org
Thu Sep 29 10:06:16 PDT 2011
Revision: 84686
http://trac.macports.org/changeset/84686
Author: jmr at macports.org
Date: 2011-09-29 10:06:15 -0700 (Thu, 29 Sep 2011)
Log Message:
-----------
blitz: patch headers to work with newer gccs, and add gcc variants (#27109)
Modified Paths:
--------------
trunk/dports/math/blitz/Portfile
Added Paths:
-----------
trunk/dports/math/blitz/files/
trunk/dports/math/blitz/files/patch-fix-gcc43plus-header-deps.diff
Modified: trunk/dports/math/blitz/Portfile
===================================================================
--- trunk/dports/math/blitz/Portfile 2011-09-29 15:16:57 UTC (rev 84685)
+++ trunk/dports/math/blitz/Portfile 2011-09-29 17:06:15 UTC (rev 84686)
@@ -5,6 +5,7 @@
name blitz
version 0.9
+revision 1
categories math devel
platforms darwin
maintainers nomaintainer
@@ -20,6 +21,8 @@
checksums md5 031df2816c73e2d3bd6d667bbac19eca
+patchfiles patch-fix-gcc43plus-header-deps.diff
+
configure.args --infodir=${prefix}/share/info \
--enable-shared \
--disable-doxygen \
@@ -29,6 +32,30 @@
destroot.args docdir=${prefix}/share/doc/${name}
+variant gcc43 conflicts gcc44 gcc45 description {Use the gcc43 compiler} {
+ depends_lib-append port:gcc43
+ configure.compiler macports-gcc-4.3
+}
+variant gcc44 conflicts gcc43 gcc45 description {Use the gcc44 compiler} {
+ depends_lib-append port:gcc44
+ configure.compiler macports-gcc-4.4
+}
+variant gcc45 conflicts gcc43 gcc44 description {Use the gcc45 compiler} {
+ depends_lib-append port:gcc45
+ configure.compiler macports-gcc-4.5
+}
+
+pre-build {
+ build.env-append CC="${configure.cc}" \
+ CXX="${configure.cxx}" \
+ F77="${configure.f77}"
+}
+pre-destroot {
+ destroot.env-append CC="${configure.cc}" \
+ CXX="${configure.cxx}" \
+ F77="${configure.f77}"
+}
+
# does not build universal software
universal_variant no
Added: trunk/dports/math/blitz/files/patch-fix-gcc43plus-header-deps.diff
===================================================================
--- trunk/dports/math/blitz/files/patch-fix-gcc43plus-header-deps.diff (rev 0)
+++ trunk/dports/math/blitz/files/patch-fix-gcc43plus-header-deps.diff 2011-09-29 17:06:15 UTC (rev 84686)
@@ -0,0 +1,23 @@
+--- blitz/funcs.h.orig 2005-10-08 01:22:55.000000000 +0000
++++ blitz/funcs.h 2007-12-11 23:39:56.000000000 +0000
+@@ -31,6 +31,8 @@
+ #include <blitz/promote.h>
+ #include <blitz/prettyprint.h>
+
++#include <cstdlib>
++
+ BZ_NAMESPACE(blitz)
+
+ /* Helper functions */
+
+--- blitz/mathfunc.h.orig 2005-05-18 20:22:38.000000000 +0000
++++ blitz/mathfunc.h 2007-12-11 23:39:39.000000000 +0000
+@@ -12,6 +12,8 @@
+ #include <blitz/prettyprint.h>
+ #endif
+
++#include <cstdlib>
++
+ BZ_NAMESPACE(blitz)
+
+ // abs(P_numtype1) Absolute value
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110929/669aca62/attachment.html>
More information about the macports-changes
mailing list