diff --git a/math/linbox/Makefile b/math/linbox/Makefile index f79cc74daa92..e47c8c2df1aa 100644 --- a/math/linbox/Makefile +++ b/math/linbox/Makefile @@ -1,78 +1,71 @@ PORTNAME= linbox PORTVERSION= 1.7.0 DISTVERSIONPREFIX= v PORTREVISION= 5 CATEGORIES= math MAINTAINER= thierry@FreeBSD.org COMMENT= C++ library for exact, high-performance linear algebra WWW= https://linalg.org/ LICENSE= GPLv2 LGPL21 LICENSE_COMB= dual BUILD_DEPENDS= fflas-ffpack-config:math/fflas-ffpack LIB_DEPENDS= libgmp.so:math/gmp \ libgivaro.so:math/givaro RUN_DEPENDS= bash:shells/bash USE_GITHUB= yes GH_ACCOUNT= linbox-team USES= autoreconf blaslapack:openblas compiler:c++11-lang gmake \ libtool localbase pkgconfig shebangfix SHEBANG_FILES= benchmarks/perfpublisher.sh linbox-auto-install.sh \ linbox-config.in tests/jenkins-maker.sh \ tests/perfpublisher.sh tests/test_leak.sh USE_CXXSTD= c++14 GNU_CONFIGURE_MANPREFIX=${PREFIX}/share OPTIONS_DEFINE= DOXYGEN OPTIONS_RADIO= SIZE OPTIONS_RADIO_SIZE= FULL MIN OPTIONS_DEFAULT= FULL OPTIONS_SUB= yes MIN_DESC= Lightweight package, with less dependencies MIN_CONFIGURE_ON= --without-saclib --without-ocl FULL_DESC= Complete package with all its dependencies FULL_BUILD_DEPENDS= gnuplot:math/gnuplot FULL_LIB_DEPENDS= libflint.so:math/flint2 \ libfplll.so:math/fplll \ libiml.so:math/iml \ libmpfr.so:math/mpfr \ libntl.so:math/ntl \ libOpenCL.so:devel/ocl-icd \ libtinyxml2.so:textproc/tinyxml2 FULL_RUN_DEPENDS= gnuplot:math/gnuplot FULL_USES= ghostscript FULL_CONFIGURE_WITH= flint fplll ghostscript gnuplot iml mpfr ntl ocl DOXYGEN_VARS= BINARY_ALIAS=sed=${LOCALBASE}/bin/gsed DOXYGEN_CONFIGURE_ENABLE=doc DOXYGEN_CONFIGURE_WITH= docdir=${DOCSDIR} DOXYGEN_BUILD_DEPENDS= gsed:textproc/gsed \ dot:graphics/graphviz \ doxygen:devel/doxygen GNU_CONFIGURE= yes USE_LDCONFIG= yes INSTALL_TARGET= install-strip TEST_TARGET= check .if defined(PACKAGE_BUILDING) CONFIGURE_ARGS+=--disable-sse --disable-sse2 --disable-sse3 --disable-ssse3 \ --disable-sse41 --disable-sse42 --disable-fma --disable-fma4 \ --disable-avx --disable-avx2 .endif -.include - -.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 180 -# See https://github.com/linbox-team/linbox/issues/320 -BROKEN= compilation errors with clang19 -.endif - -.include +.include diff --git a/math/linbox/files/patch-linbox_matrix_sparsematrix_sparse-ell-matrix.h b/math/linbox/files/patch-linbox_matrix_sparsematrix_sparse-ell-matrix.h new file mode 100644 index 000000000000..efde096e0e7e --- /dev/null +++ b/math/linbox/files/patch-linbox_matrix_sparsematrix_sparse-ell-matrix.h @@ -0,0 +1,18 @@ +--- linbox/matrix/sparsematrix/sparse-ell-matrix.h.orig 2021-12-14 10:16:03 UTC ++++ linbox/matrix/sparsematrix/sparse-ell-matrix.h +@@ -1205,6 +1205,7 @@ namespace LinBox + , _row(iter._row) + {} + ++#if 0 + _IndexedIterator &operator = (const _IndexedIterator &iter) + { + _colid_beg = iter._colid_beg ; +@@ -1218,6 +1219,7 @@ namespace LinBox + + return *this; + } ++#endif + + bool operator == (const _IndexedIterator &i) const + { diff --git a/math/linbox/files/patch-linbox_matrix_sparsematrix_sparse-ellr-matrix.h b/math/linbox/files/patch-linbox_matrix_sparsematrix_sparse-ellr-matrix.h new file mode 100644 index 000000000000..bd8b3eaf95c8 --- /dev/null +++ b/math/linbox/files/patch-linbox_matrix_sparsematrix_sparse-ellr-matrix.h @@ -0,0 +1,34 @@ +--- linbox/matrix/sparsematrix/sparse-ellr-matrix.h.orig 2021-12-14 10:16:03 UTC ++++ linbox/matrix/sparsematrix/sparse-ellr-matrix.h +@@ -1099,6 +1099,7 @@ namespace LinBox + + {} + ++#if 0 + _Iterator &operator = (const _Iterator &iter) + { + _data_it = iter._data_it ; +@@ -1111,6 +1112,7 @@ namespace LinBox + + return *this; + } ++#endif + + bool operator == (const _Iterator &i) const + { +@@ -1246,6 +1248,7 @@ namespace LinBox + , _row(iter._row) + {} + ++#if 0 + _IndexedIterator &operator = (const _IndexedIterator &iter) + { + _rowid_it = iter._rowid_it ; +@@ -1260,6 +1263,7 @@ namespace LinBox + + return *this; + } ++#endif + + bool operator == (const _IndexedIterator &i) const + { diff --git a/math/linbox/files/patch-linbox_vector_blas-subvector.h b/math/linbox/files/patch-linbox_vector_blas-subvector.h new file mode 100644 index 000000000000..00c6e129b8aa --- /dev/null +++ b/math/linbox/files/patch-linbox_vector_blas-subvector.h @@ -0,0 +1,13 @@ +--- linbox/vector/blas-subvector.h.orig 2021-12-14 10:16:03 UTC ++++ linbox/vector/blas-subvector.h +@@ -117,8 +117,10 @@ namespace LinBox { + * \param dim dimension + * \param inc distance between two element + */ ++#if 0 + BlasSubvector (Self_t &V, size_t beg, size_t inc, size_t dim) : + _ptr(V.data()+beg), _size(dim), _inc(inc), _field(&V.field()) {} ++#endif + + + /** Constructor from an existing @ref BlasVector