diff --git a/math/singular/Makefile b/math/singular/Makefile index 5f423e837c6a..4ee7524d4875 100644 --- a/math/singular/Makefile +++ b/math/singular/Makefile @@ -1,83 +1,84 @@ PORTNAME= singular PORTVERSION= ${GH_TAGNAME:S/Release-//:S/-/./g:S/p/./} #DISTVERSIONPREFIX= Release- #DISTVERSION= 4-4-0 CATEGORIES= math #MASTER_SITES= ftp://jim.mathematik.uni-kl.de/pub/Math/Singular/SOURCES/${PORTVERSION:C/\./-/g}/ DIST_SUBDIR= ${PORTNAME} MAINTAINER= yuri@FreeBSD.org COMMENT= Computer algebra system for polynomial computations -WWW= https://www.singular.uni-kl.de/ +WWW= https://www.singular.uni-kl.de/ \ + https://github.com/Singular/Singular LICENSE= GPLv3RLE LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libgmp.so:math/gmp \ libmpfr.so:math/mpfr RUN_DEPENDS= bash:shells/bash USES= autoreconf gmake libtool ncurses perl5 pkgconfig readline shebangfix USE_CXXSTD= c++14 USE_LDCONFIG= yes USE_PERL5= build USE_GITHUB= yes GH_ACCOUNT= Singular GH_PROJECT= Singular GH_TAGNAME= Release-4-4-0p7 SHEBANG_FILES= Singular/surfex \ libpolys/libpolys-config.in \ libsingular-config.in GNU_CONFIGURE= yes GNU_CONFIGURE_MANPREFIX= ${PREFIX}/share CONFIGURE_ARGS= --with-gmp=${LOCALBASE} --enable-Singular --enable-factory \ --with-libparse --disable-dependency-tracking --without-python TEST_TARGET= check PORTDOCS= * OPTIONS_DEFINE= DOCS FLINT GFAN NTL OPTIONS_DEFAULT= DOCS FLINT GFAN NTL OPTIONS_SUB= yes FLINT_DESC= Use FLINT library GFAN_DESC= Build gfanlib library (bundled) GFAN_LIB_DEPENDS= libcddgmp.so:math/cddlib NTL_DESC= Use NTL library DOCS_MASTER_SITES= ftp://jim.mathematik.uni-kl.de/pub/Math/Singular/SOURCES/${PORTVERSION:C/\./-/g}/:doc DOCS_DISTFILES= doc.tbz2:doc DOCS_INFO= ${PORTNAME} FLINT_LIB_DEPENDS= libflint.so:math/flint2 FLINT_CONFIGURE_ON= --with-flint=${LOCALBASE} FLINT_CONFIGURE_OFF= --with-flint=no GFAN_BUILD_DEPENDS= gfan_tropicalbasis:math/gfan GFAN_CONFIGURE_ENABLE= gfanlib NTL_LIB_DEPENDS= libntl.so:math/ntl \ libcddgmp.so:math/cddlib NTL_USES= compiler:c11 NTL_CONFIGURE_ON= --with-ntl=${LOCALBASE} NTL_CONFIGURE_OFF= --with-ntl=no # not a shebang but "/bin/bash" is hardcoded in some files post-patch: @${REINPLACE_CMD} -e "s|/bin/bash|${LOCALBASE}/bin/bash|g" \ ${WRKSRC}/emacs/.emacs-general post-install: @${FIND} ${STAGEDIR}${PREFIX} -name "*.so" | ${XARGS} ${STRIP_CMD} # Singular tarballs made using "make dist" (without --enable-doc-build) # do not contain built documentation (from Sagemath). post-install-DOCS-on: ${MKDIR} ${STAGEDIR}${PREFIX}/${INFO_PATH} \ ${STAGEDIR}${DOCSDIR} (cd ${STAGEDIR}${DOCSDIR} && ${TAR} xfj ${_DISTDIR}/doc.tbz2) ${MV} ${STAGEDIR}${DOCSDIR}/singular.info \ ${STAGEDIR}${PREFIX}/${INFO_PATH} .include diff --git a/math/singular/files/patch-gfanlib_gfanlib__matrix.h b/math/singular/files/patch-gfanlib_gfanlib__matrix.h new file mode 100644 index 000000000000..9182f3f85021 --- /dev/null +++ b/math/singular/files/patch-gfanlib_gfanlib__matrix.h @@ -0,0 +1,18 @@ +--- gfanlib/gfanlib_matrix.h.orig 2024-12-18 20:07:20 UTC ++++ gfanlib/gfanlib_matrix.h +@@ -115,6 +115,7 @@ template class Matrix{ (public) + p[i][j]=s*(q[i][j]); + return p; + } ++ /* + friend Matrix operator*(const Matrix& a, const Matrix& b) + { + assert(a.width==b.height); +@@ -123,6 +124,7 @@ template class Matrix{ (public) + ret[i]=a.vectormultiply(b.column(i)); + return ret.transposed(); + } ++ */ + /* template + Matrix(const Matrix& c):v(c.size()){ + for(int i=0;i