git: 4c7a0350174d - main - suitesparse-cholmod: new port for the module CHOLMOD of SuiteSparse
Thierry Thomas
thierry at FreeBSD.org
Tue May 25 10:13:39 UTC 2021
The branch main has been updated by thierry:
URL: https://cgit.FreeBSD.org/ports/commit/?id=4c7a0350174db78fa20d967f2dcac5605f740eb7
commit 4c7a0350174db78fa20d967f2dcac5605f740eb7
Author: Thierry Thomas <thierry at FreeBSD.org>
AuthorDate: 2021-05-24 16:39:48 +0000
Commit: Thierry Thomas <thierry at FreeBSD.org>
CommitDate: 2021-05-25 10:00:04 +0000
suitesparse-cholmod: new port for the module CHOLMOD of SuiteSparse
---
math/suitesparse-cholmod/Makefile | 24 ++++++++++++++++++++++
.../files/patch-CHOLMOD_Demo_Makefile | 18 ++++++++++++++++
math/suitesparse-cholmod/pkg-descr | 11 ++++++++++
math/suitesparse-cholmod/pkg-plist | 22 ++++++++++++++++++++
4 files changed, 75 insertions(+)
diff --git a/math/suitesparse-cholmod/Makefile b/math/suitesparse-cholmod/Makefile
new file mode 100644
index 000000000000..682d15ea7e2a
--- /dev/null
+++ b/math/suitesparse-cholmod/Makefile
@@ -0,0 +1,24 @@
+# Created by: Thierry Thomas (<thierry at pompo.net>)
+
+PORTNAME= CHOLMOD
+PORTVERSION= 3.0.14
+CATEGORIES= math
+
+COMMENT= Sparse CHOLesky MODification package
+
+LICENSE= LGPL21+
+
+LIB_DEPENDS= libmetis.so:math/metis \
+ libamd.so:math/suitesparse-amd \
+ libcamd.so:math/suitesparse-camd \
+ libcolamd.so:math/suitesparse-colamd \
+ libccolamd.so:math/suitesparse-ccolamd
+
+USES= localbase:ldflags
+BLAS_NEEDED= yes
+OMP_NEEDED= yes
+BUILD_WRKSRC= ${WRKSRC}/${PORTNAME}
+USE_LDCONFIG= yes
+
+.include "${.CURDIR}/../../math/suitesparse/bsd.suitesparse.mk"
+.include <bsd.port.post.mk>
diff --git a/math/suitesparse-cholmod/files/patch-CHOLMOD_Demo_Makefile b/math/suitesparse-cholmod/files/patch-CHOLMOD_Demo_Makefile
new file mode 100644
index 000000000000..0d38f6d0828c
--- /dev/null
+++ b/math/suitesparse-cholmod/files/patch-CHOLMOD_Demo_Makefile
@@ -0,0 +1,18 @@
+--- CHOLMOD/Demo/Makefile.orig 2021-05-17 01:04:52 UTC
++++ CHOLMOD/Demo/Makefile
+@@ -57,15 +57,7 @@ clean:
+
+ #-------------------------------------------------------------------------------
+ library: metis
+- ( cd ../../SuiteSparse_config ; $(MAKE) )
+ ( cd ../Lib ; $(MAKE) )
+- ( cd ../../AMD ; $(MAKE) library )
+- ( cd ../../COLAMD ; $(MAKE) library )
+-ifneq (,$(findstring -DNCAMD, $(CONFIG_PARTITION)))
+-else
+- ( cd ../../CCOLAMD ; $(MAKE) library )
+- ( cd ../../CAMD ; $(MAKE) library )
+-endif
+
+ metis: ../../include/metis.h
+
diff --git a/math/suitesparse-cholmod/pkg-descr b/math/suitesparse-cholmod/pkg-descr
new file mode 100644
index 000000000000..e4f315e22120
--- /dev/null
+++ b/math/suitesparse-cholmod/pkg-descr
@@ -0,0 +1,11 @@
+This port installs the module CHOLMOD of SuiteSparse.
+
+CHOLMOD is a set of routines for factorizing sparse symmetric positive definite
+matrices of the form A or AA', updating/downdating a sparse Cholesky
+factorization, solving linear systems, updating/downdating the solution to the
+triangular system Lx=b, and many other sparse matrix functions for both
+symmetric and unsymmetric matrices. Its supernodal Cholesky factorization relies
+on LAPACK and the Level-3 BLAS, and obtains a substantial fraction of the peak
+performance of the BLAS. Both real and complex matrices are supported.
+
+WWW: http://faculty.cse.tamu.edu/davis/suitesparse.html
diff --git a/math/suitesparse-cholmod/pkg-plist b/math/suitesparse-cholmod/pkg-plist
new file mode 100644
index 000000000000..f3189c20045c
--- /dev/null
+++ b/math/suitesparse-cholmod/pkg-plist
@@ -0,0 +1,22 @@
+include/suitesparse/cholmod.h
+include/suitesparse/cholmod_blas.h
+include/suitesparse/cholmod_camd.h
+include/suitesparse/cholmod_check.h
+include/suitesparse/cholmod_cholesky.h
+include/suitesparse/cholmod_complexity.h
+include/suitesparse/cholmod_config.h
+include/suitesparse/cholmod_core.h
+include/suitesparse/cholmod_function.h
+include/suitesparse/cholmod_gpu.h
+include/suitesparse/cholmod_gpu_kernels.h
+include/suitesparse/cholmod_io64.h
+include/suitesparse/cholmod_matrixops.h
+include/suitesparse/cholmod_modify.h
+include/suitesparse/cholmod_partition.h
+include/suitesparse/cholmod_supernodal.h
+include/suitesparse/cholmod_template.h
+lib/libcholmod.so
+lib/libcholmod.so.3
+lib/libcholmod.so.3.0.14
+%%PORTDOCS%%%%DOCSDIR%%/CHOLMOD_README.txt
+%%PORTDOCS%%%%DOCSDIR%%/CHOLMOD_UserGuide.pdf
More information about the dev-commits-ports-all
mailing list