1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-22 08:58:47 +00:00

Fix "bad C++ code" and unbreak.

This commit is contained in:
Alexey Dokuchaev 2004-12-23 14:47:26 +00:00
parent 56aa4842fd
commit 9281c6aff2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=124989
3 changed files with 23 additions and 7 deletions

View File

@ -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>

View File

@ -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 */

View File

@ -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);