aboutsummaryrefslogtreecommitdiff
path: root/math/suitesparse-cholmod
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2021-05-24 16:39:48 +0000
committerThierry Thomas <thierry@FreeBSD.org>2021-05-25 10:00:04 +0000
commit4c7a0350174db78fa20d967f2dcac5605f740eb7 (patch)
tree3b2048e79ee56e115b1e4eb6fe4a73f86401c38a /math/suitesparse-cholmod
parentd1a753db1981f5dc9da0ffa3d8d5996901d7e758 (diff)
Diffstat (limited to 'math/suitesparse-cholmod')
-rw-r--r--math/suitesparse-cholmod/Makefile24
-rw-r--r--math/suitesparse-cholmod/files/patch-CHOLMOD_Demo_Makefile18
-rw-r--r--math/suitesparse-cholmod/pkg-descr11
-rw-r--r--math/suitesparse-cholmod/pkg-plist22
4 files changed, 75 insertions, 0 deletions
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@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