diff --git a/math/suitesparse-ccolamd/Makefile b/math/suitesparse-ccolamd/Makefile new file mode 100644 index 000000000000..252880b3bded --- /dev/null +++ b/math/suitesparse-ccolamd/Makefile @@ -0,0 +1,18 @@ +# Created by: Thierry Thomas () + +PORTNAME= CCOLAMD +PORTVERSION= 2.9.6 +CATEGORIES= math + +COMMENT= Constrained column approximate minimum degree ordering + +LICENSE= BSD3CLAUSE + +USES= localbase:ldflags +OMP_NEEDED= yes + +BUILD_WRKSRC= ${WRKSRC}/${PORTNAME} +USE_LDCONFIG= yes + +.include "${.CURDIR}/../../math/suitesparse/bsd.suitesparse.mk" +.include diff --git a/math/suitesparse-ccolamd/files/patch-CCOLAMD_Demo_Makefile b/math/suitesparse-ccolamd/files/patch-CCOLAMD_Demo_Makefile new file mode 100644 index 000000000000..98112a33e069 --- /dev/null +++ b/math/suitesparse-ccolamd/files/patch-CCOLAMD_Demo_Makefile @@ -0,0 +1,10 @@ +--- CCOLAMD/Demo/Makefile.orig 2021-05-17 01:04:52 UTC ++++ CCOLAMD/Demo/Makefile +@@ -15,7 +15,6 @@ LIB2 = $(LDFLAGS) -L../../lib -lccolamd -lsuitesparsec + all: library ccolamd_example ccolamd_l_example + + library: +- ( cd ../../SuiteSparse_config ; $(MAKE) ) + ( cd ../Lib ; $(MAKE) ) + + #------------------------------------------------------------------------------ diff --git a/math/suitesparse-ccolamd/pkg-descr b/math/suitesparse-ccolamd/pkg-descr new file mode 100644 index 000000000000..f6acb20ea1d7 --- /dev/null +++ b/math/suitesparse-ccolamd/pkg-descr @@ -0,0 +1,11 @@ +This port installs the module CCOLAMD 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-ccolamd/pkg-plist b/math/suitesparse-ccolamd/pkg-plist new file mode 100644 index 000000000000..7330d08927fc --- /dev/null +++ b/math/suitesparse-ccolamd/pkg-plist @@ -0,0 +1,5 @@ +include/suitesparse/ccolamd.h +lib/libccolamd.so +lib/libccolamd.so.2 +lib/libccolamd.so.2.9.6 +%%PORTDOCS%%%%DOCSDIR%%/CCOLAMD_README.txt