summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2004-12-23 14:47:26 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2004-12-23 14:47:26 +0000
commit9281c6aff26747e124edb28871d5ba86566ca9e1 (patch)
treef30302611e9549f9752ebe37acfac0cd59ec8a9e /math
parentFix pkg-plist. (diff)
Fix "bad C++ code" and unbreak.
Notes
Notes: svn path=/head/; revision=124989
Diffstat (limited to 'math')
-rw-r--r--math/qscanplot/Makefile8
-rw-r--r--math/qscanplot/files/patch-qscanplot::lagrangeinterpolator.cpp11
-rw-r--r--math/qscanplot/files/patch-qscanplot::lagrangeinterpolator.h11
3 files changed, 23 insertions, 7 deletions
diff --git a/math/qscanplot/Makefile b/math/qscanplot/Makefile
index 5f600fd7bb3c..41af7b3fd3c6 100644
--- a/math/qscanplot/Makefile
+++ b/math/qscanplot/Makefile
@@ -27,14 +27,8 @@ CONFIGURE_ENV= LDFLAGS="-lm ${PTHREAD_LIBS}" \
LIBQT=-lqt-mt
MAKE_ENV= QTDIR=${X11BASE}
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 500113
-BROKEN= "Does not compile (bad C++ code)"
-.endif
-
post-patch:
@${PERL} -pi -e 's|%%PREFIX%%|${PREFIX}|g' \
${WRKSRC}/qscanplot/templates/sample.qscanplotrc
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/math/qscanplot/files/patch-qscanplot::lagrangeinterpolator.cpp b/math/qscanplot/files/patch-qscanplot::lagrangeinterpolator.cpp
new file mode 100644
index 000000000000..808a3e2a72d3
--- /dev/null
+++ b/math/qscanplot/files/patch-qscanplot::lagrangeinterpolator.cpp
@@ -0,0 +1,11 @@
+--- qscanplot/lagrangeinterpolator.cpp.orig Sat Mar 30 17:30:42 2002
++++ qscanplot/lagrangeinterpolator.cpp Thu Dec 23 20:19:26 2004
+@@ -32,7 +32,7 @@
+ // Implementation of class LagrangeInterpolator
+
+ /** Constructor */
+-LagrangeInterpolator::LagrangeInterpolator(double *px, double *py, int n=0)
++LagrangeInterpolator::LagrangeInterpolator(double *px=0, double *py=0, int n=0)
+ : Interpolator(px,py), length(n) {}
+
+ /** Sets the length of the vectors */
diff --git a/math/qscanplot/files/patch-qscanplot::lagrangeinterpolator.h b/math/qscanplot/files/patch-qscanplot::lagrangeinterpolator.h
new file mode 100644
index 000000000000..269e1705e118
--- /dev/null
+++ b/math/qscanplot/files/patch-qscanplot::lagrangeinterpolator.h
@@ -0,0 +1,11 @@
+--- qscanplot/lagrangeinterpolator.h.orig Sat Mar 30 17:30:43 2002
++++ qscanplot/lagrangeinterpolator.h Thu Dec 23 20:20:14 2004
+@@ -41,7 +41,7 @@
+
+ public:
+
+- LagrangeInterpolator(double*px=0, double*py=0, int n=0); // constructor
++ LagrangeInterpolator(double*px, double*py, int n); // constructor
+
+ public:
+ void setLength(int n);