summaryrefslogtreecommitdiffstats
path: root/math/linalg
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2004-10-08 05:32:57 +0000
committerdanfe <danfe@FreeBSD.org>2004-10-08 05:32:57 +0000
commitfe0c7630784a2bc8cadcb175400631414070d4ef (patch)
tree738a8b8750aca0b6514dbe9cb21ea8399a5052e5 /math/linalg
parente017b98a5b8056f98a758a82b1302667ea936617 (diff)
downloadFreeBSD-ports-fe0c7630784a2bc8cadcb175400631414070d4ef.zip
FreeBSD-ports-fe0c7630784a2bc8cadcb175400631414070d4ef.tar.gz
Play nice with new GCC, and unbreak the build.
Reported by: kris Approved by: portmgr (krion), fjoe (mentor, implicit)
Diffstat (limited to 'math/linalg')
-rw-r--r--math/linalg/Makefile8
-rw-r--r--math/linalg/files/patch-LinAlg.h72
2 files changed, 73 insertions, 7 deletions
diff --git a/math/linalg/Makefile b/math/linalg/Makefile
index 5f5d7d3..b2eb3f6 100644
--- a/math/linalg/Makefile
+++ b/math/linalg/Makefile
@@ -20,12 +20,6 @@ ALL_TARGET= lib
INSTALL_TARGET= lib
USE_GMAKE= yes
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 502126
-BROKEN= "Does not compile on FreeBSD >= 5.x"
-.endif
-
post-install:
$(INSTALL_DATA) ${WRKSRC}/libla.a ${PREFIX}/lib
${MKDIR} ${PREFIX}/include/LinAlg
@@ -42,4 +36,4 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/LinAlg
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/math/linalg/files/patch-LinAlg.h b/math/linalg/files/patch-LinAlg.h
new file mode 100644
index 0000000..306ea07
--- /dev/null
+++ b/math/linalg/files/patch-LinAlg.h
@@ -0,0 +1,72 @@
+--- LinAlg.h.orig Fri Oct 8 11:30:11 2004
++++ LinAlg.h Fri Oct 8 11:43:29 2004
+@@ -393,8 +393,8 @@
+ // with 2^n columns
+ class haar_matrix : public LazyMatrix
+ {
+- void fill_in(Matrix& m) const;
+ public:
++ void fill_in(Matrix& m) const;
+ haar_matrix(const int n, const int no_cols=0);
+ };
+
+@@ -505,7 +505,9 @@
+ {
+ friend class Reference;
+ Matrix& m;
++#if defined(__GNUC__) && (__GNUC__ < 3)
+ ConstReference(const ConstReference&); // Not implemented and forbidden
++#endif
+ void operator = (const ConstReference&); // reference isn't transferable
+ public:
+ ConstReference(const Matrix& _m)
+@@ -831,7 +833,9 @@
+
+ void operator=(const ElementWiseConst&);// is not implemented, ergo, is
+ // not allowed
++#if defined(__GNUC__) && (__GNUC__ < 3)
+ ElementWiseConst(const ElementWiseConst&);// Cloning is not allowed, either
++#endif
+
+ // A private constructor, to make
+ // sure the object can't be constructed
+@@ -1231,7 +1235,9 @@
+ friend class LAStreamOut;
+ const REAL * const col_ptr; // Pointer to the column under
+ // consideration
++#if defined(__GNUC__) && (__GNUC__ < 3)
+ ConstMatrixColumn(const ConstMatrixColumn&); // Not implemented and forbidden:
++#endif
+ void operator = (const ConstMatrixColumn&);// no cloning/assignment allowed
+
+ protected:
+@@ -1267,7 +1273,9 @@
+ {
+ friend class ElementWise;
+ friend class LAStreamOut;
++#if defined(__GNUC__) && (__GNUC__ < 3)
+ MatrixColumn(const MatrixColumn&); // Not implemented and forbidden:
++#endif
+ void operator = (const MatrixColumn&);// no cloning/assignment allowed
+ public: // Take a col of the matrix
+ MatrixColumn(Matrix& m, const int col) :
+@@ -1295,7 +1303,9 @@
+ // col after col, stride = nrows
+ const REAL * const end_ptr; // Points after the end of the matrix
+
++#if defined(__GNUC__) && (__GNUC__ < 3)
+ ConstMatrixRow(const ConstMatrixRow&); // Not implemented and forbidden:
++#endif
+ void operator = (const ConstMatrixRow&); // no cloning/assignment allowed
+
+ protected:
+@@ -1336,7 +1346,9 @@
+ {
+ friend class ElementWiseStride;
+ friend class LAStrideStreamOut;
++#if defined(__GNUC__) && (__GNUC__ < 3)
+ MatrixRow(const MatrixRow&); // Not implemented and forbidden:
++#endif
+ void operator = (const MatrixRow&); // no cloning/assignment allowed
+ public: // Take a col of the matrix
+ MatrixRow(Matrix& m, const int row) :
OpenPOWER on IntegriCloud