diff --git a/math/suitesparse-csparse/Makefile b/math/suitesparse-csparse/Makefile new file mode 100644 index 000000000000..a42b1365bf37 --- /dev/null +++ b/math/suitesparse-csparse/Makefile @@ -0,0 +1,26 @@ +# Created by: Thierry Thomas () + +PORTNAME= CSparse +PORTVERSION= 3.2.0 +CATEGORIES= math + +COMMENT= Concise Sparse Matrix package + +LICENSE= LGPL21+ + +USES= localbase:ldflags + +BUILD_WRKSRC= ${WRKSRC}/${PORTNAME} +USE_LDCONFIG= yes +PLIST_FILES= # empty + +# For system-wide installation, the author recommends that you install +# CXSparse instead. +# The CSparse library is meant for personal experimentation. The 'make +# install' in this Makefile only installs a static compiled library in +# CSparse/Lib. It does not install it for system-wide usage. +do-install: + ${DO_NADA} + +.include "${.CURDIR}/../../math/suitesparse/bsd.suitesparse.mk" +.include diff --git a/math/suitesparse-csparse/files/patch-CSparse_Makefile b/math/suitesparse-csparse/files/patch-CSparse_Makefile new file mode 100644 index 000000000000..fda5d10c9e9b --- /dev/null +++ b/math/suitesparse-csparse/files/patch-CSparse_Makefile @@ -0,0 +1,11 @@ +--- CSparse/Makefile.orig 2021-05-17 01:04:52 UTC ++++ CSparse/Makefile +@@ -6,7 +6,7 @@ C: + ( cd Lib ; $(MAKE) ) + ( cd Demo ; $(MAKE) ) + +-all: C cov ++all: C + + library: + ( cd Lib ; $(MAKE) ) diff --git a/math/suitesparse-csparse/pkg-descr b/math/suitesparse-csparse/pkg-descr new file mode 100644 index 000000000000..6800b88c4872 --- /dev/null +++ b/math/suitesparse-csparse/pkg-descr @@ -0,0 +1,9 @@ +This port builds the module CSparse of SuiteSparse. + +CSparse is a Concise Sparse Matrix package. This code goes with the book "Direct +Methods for Sparse Linear Systems," Timothy A. Davis, SIAM, Philadelphia, 2006. + +Note: the CSparse library is meant for personal experimentation. For system-wide +installation, please install math/suitesparse-cxsparse instead. + +WWW: http://faculty.cse.tamu.edu/davis/suitesparse.html