git: 00ba605e2935 - main - math/suitesparse-lagraph: new port, graph algorithms based on GraphBLAS

From: Thierry Thomas <thierry_at_FreeBSD.org>
Date: Sun, 31 Dec 2023 14:31:32 UTC
The branch main has been updated by thierry:

URL: https://cgit.FreeBSD.org/ports/commit/?id=00ba605e293579b542f6caaf3065d868e81d60ef

commit 00ba605e293579b542f6caaf3065d868e81d60ef
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2023-12-31 14:17:17 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2023-12-31 14:31:10 +0000

    math/suitesparse-lagraph: new port, graph algorithms based on GraphBLAS
---
 math/Makefile                      |  1 +
 math/suitesparse-lagraph/Makefile  | 24 ++++++++++++++++++++++++
 math/suitesparse-lagraph/pkg-descr |  4 ++++
 math/suitesparse-lagraph/pkg-plist | 17 +++++++++++++++++
 4 files changed, 46 insertions(+)

diff --git a/math/Makefile b/math/Makefile
index 8341e4f9dfdd..d41e49720103 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -1175,6 +1175,7 @@
     SUBDIR += suitesparse-cxsparse
     SUBDIR += suitesparse-graphblas
     SUBDIR += suitesparse-klu
+    SUBDIR += suitesparse-lagraph
     SUBDIR += suitesparse-ldl
     SUBDIR += suitesparse-mongoose
     SUBDIR += suitesparse-rbio
diff --git a/math/suitesparse-lagraph/Makefile b/math/suitesparse-lagraph/Makefile
new file mode 100644
index 000000000000..952bf0e5c40a
--- /dev/null
+++ b/math/suitesparse-lagraph/Makefile
@@ -0,0 +1,24 @@
+PORTNAME=	${MPORTNAME:tl}
+PORTVERSION=	1.1.0
+CATEGORIES=	math
+
+COMMENT=	Graph algorithms based on GraphBLAS
+WWW=		https://faculty.cse.tamu.edu/davis/suitesparse.html
+
+LICENSE=	BSD2CLAUSE
+
+LIB_DEPENDS=	libgraphblas.so:math/suitesparse-graphblas
+
+USES=		localbase:ldflags
+
+MPORTNAME=	LAGraph
+USE_LDCONFIG=	yes
+
+.include "${.CURDIR}/../../math/suitesparse/bsd.suitesparse.mk"
+
+post-stage-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${BUILD_WRKSRC}/README.md	\
+		${STAGEDIR}${DOCSDIR}/${MPORTNAME}_README.md
+
+.include <bsd.port.post.mk>
diff --git a/math/suitesparse-lagraph/pkg-descr b/math/suitesparse-lagraph/pkg-descr
new file mode 100644
index 000000000000..793286aa7094
--- /dev/null
+++ b/math/suitesparse-lagraph/pkg-descr
@@ -0,0 +1,4 @@
+This port installs the module LAGraph of SuiteSparse.
+
+LAGraph is a library plus a test harness for collecting algorithms that use
+GraphBLAS.
diff --git a/math/suitesparse-lagraph/pkg-plist b/math/suitesparse-lagraph/pkg-plist
new file mode 100644
index 000000000000..204761be3c9f
--- /dev/null
+++ b/math/suitesparse-lagraph/pkg-plist
@@ -0,0 +1,17 @@
+include/suitesparse/LAGraph.h
+include/suitesparse/LAGraphX.h
+lib/cmake/LAGraph/FindGraphBLAS.cmake
+lib/cmake/LAGraph/LAGraphConfig.cmake
+lib/cmake/LAGraph/LAGraphConfigVersion.cmake
+lib/cmake/LAGraph/LAGraphTargets-%%CMAKE_BUILD_TYPE%%.cmake
+lib/cmake/LAGraph/LAGraphTargets.cmake
+lib/liblagraph.a
+lib/liblagraph.so
+lib/liblagraph.so.1
+lib/liblagraph.so.%%VER%%
+lib/liblagraphx.a
+lib/liblagraphx.so
+lib/liblagraphx.so.1
+lib/liblagraphx.so.%%VER%%
+libdata/pkgconfig/LAGraph.pc
+%%PORTDOCS%%%%DOCSDIR%%/LAGraph_README.md