aboutsummaryrefslogtreecommitdiff
path: root/math/suitesparse-colamd
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2021-05-24 16:40:15 +0000
committerThierry Thomas <thierry@FreeBSD.org>2021-05-25 10:00:05 +0000
commitc05dc3502abadf29b8d965676d96e57e209e2bf4 (patch)
treeac58b4844018f9ccbf1d2319eac175941da05dc0 /math/suitesparse-colamd
parent4c7a0350174db78fa20d967f2dcac5605f740eb7 (diff)
downloadports-c05dc3502abadf29b8d965676d96e57e209e2bf4.tar.gz
ports-c05dc3502abadf29b8d965676d96e57e209e2bf4.zip
suitesparse-colamd: new port for the module COLAMD of SuiteSparse
Diffstat (limited to 'math/suitesparse-colamd')
-rw-r--r--math/suitesparse-colamd/Makefile18
-rw-r--r--math/suitesparse-colamd/files/patch-COLAMD_Demo_Makefile10
-rw-r--r--math/suitesparse-colamd/pkg-descr11
-rw-r--r--math/suitesparse-colamd/pkg-plist5
4 files changed, 44 insertions, 0 deletions
diff --git a/math/suitesparse-colamd/Makefile b/math/suitesparse-colamd/Makefile
new file mode 100644
index 000000000000..1417606fa072
--- /dev/null
+++ b/math/suitesparse-colamd/Makefile
@@ -0,0 +1,18 @@
+# Created by: Thierry Thomas (<thierry@pompo.net>)
+
+PORTNAME= COLAMD
+PORTVERSION= 2.9.6
+CATEGORIES= math
+
+COMMENT= Column approximate minimum degree ordering algorithm
+
+LICENSE= BSD3CLAUSE
+
+USES= localbase:ldflags
+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-colamd/files/patch-COLAMD_Demo_Makefile b/math/suitesparse-colamd/files/patch-COLAMD_Demo_Makefile
new file mode 100644
index 000000000000..8472a58a100c
--- /dev/null
+++ b/math/suitesparse-colamd/files/patch-COLAMD_Demo_Makefile
@@ -0,0 +1,10 @@
+--- COLAMD/Demo/Makefile.orig 2021-05-21 20:12:41 UTC
++++ COLAMD/Demo/Makefile
+@@ -15,7 +15,6 @@ LIB2 = $(LDFLAGS) -L../../lib -lcolamd -lsuitesparseco
+ all: library colamd_example colamd_l_example
+
+ library:
+- ( cd ../../SuiteSparse_config ; $(MAKE) )
+ ( cd ../Lib ; $(MAKE) )
+
+ #------------------------------------------------------------------------------
diff --git a/math/suitesparse-colamd/pkg-descr b/math/suitesparse-colamd/pkg-descr
new file mode 100644
index 000000000000..ffe0b994bacd
--- /dev/null
+++ b/math/suitesparse-colamd/pkg-descr
@@ -0,0 +1,11 @@
+This port installs the module COLAMD of SuiteSparse.
+
+The CCOLAMD column approximate minimum degree ordering algorithm computes a
+permutation vector P such that the LU factorization of A (:,P) tends to be
+sparser than that of A. The Cholesky factorization of (A (:,P))'*(A (:,P)) will
+also tend to be sparser than that of A'*A. CSYMAMD is a symmetric minimum degree
+ordering method based on CCOLAMD, also available as a MATLAB-callable function.
+It constructs a matrix M such that M'*M has the same pattern as A, and then uses
+CCOLAMD to compute a column ordering of M.
+
+WWW: http://faculty.cse.tamu.edu/davis/suitesparse.html
diff --git a/math/suitesparse-colamd/pkg-plist b/math/suitesparse-colamd/pkg-plist
new file mode 100644
index 000000000000..0b84a4534363
--- /dev/null
+++ b/math/suitesparse-colamd/pkg-plist
@@ -0,0 +1,5 @@
+include/suitesparse/colamd.h
+lib/libcolamd.so
+lib/libcolamd.so.2
+lib/libcolamd.so.2.9.6
+%%PORTDOCS%%%%DOCSDIR%%/COLAMD_README.txt