From a1acd6996c2147a685e3986d8400d0023da053e5 Mon Sep 17 00:00:00 2001 From: "Jason W. Bacon" Date: Sat, 19 May 2018 14:09:01 +0000 Subject: math/rapid: Fix build on FreeBSD 12, clean up license info, remove dead mirror Approved by: jrm (mentor) Differential Revision: https://reviews.freebsd.org/D15460 --- math/rapid/files/patch-build.C | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 math/rapid/files/patch-build.C (limited to 'math/rapid/files/patch-build.C') diff --git a/math/rapid/files/patch-build.C b/math/rapid/files/patch-build.C new file mode 100644 index 000000000000..97853e3e974a --- /dev/null +++ b/math/rapid/files/patch-build.C @@ -0,0 +1,22 @@ +--- build.C.orig 1997-07-03 16:54:10 UTC ++++ build.C +@@ -41,7 +41,7 @@ + + #include "RAPID_version.H" + +-static char rapidtag_data[] = "RAPIDTAG file: "__FILE__" date: "__DATE__" time: "__TIME__; ++static char rapidtag_data[] = "RAPIDTAG file: " __FILE__ " date: " __DATE__ " time: " __TIME__; + + // to silence the compiler's complaints about unreferenced identifiers. + static void r1(char *f){ r1(f); r1(rapidtag_data); r1(rapid_version);} +@@ -419,8 +419,8 @@ box::split_recurse(int *t, int n) + // see where it lies with respect to axdmp. + mean_from_moment(c, RAPID_moment[in]); + +- if (((pR[0][0]*c[0] + pR[1][0]*c[1] + pR[2][0]*c[2]) < axdmp) +- && ((n!=2)) || ((n==2) && (i==0))) ++ if ( (( (pR[0][0]*c[0] + pR[1][0]*c[1] + pR[2][0]*c[2]) < axdmp) ++ && (n!=2)) || ((n==2) && (i==0)) ) + { + // accumulate first and second order moments for group 1 + accum_moment(M1, RAPID_moment[in]); -- cgit v1.2.3