aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2023-12-31 14:17:17 +0000
committerThierry Thomas <thierry@FreeBSD.org>2023-12-31 14:31:10 +0000
commit00ba605e293579b542f6caaf3065d868e81d60ef (patch)
treefacb1eadaec82c4b42bec4baf73a568640e67e7d
parent0c4fedf55766a6e00077f382bc0ca812aee6c2cf (diff)
math/suitesparse-lagraph: new port, graph algorithms based on GraphBLAS
-rw-r--r--math/Makefile1
-rw-r--r--math/suitesparse-lagraph/Makefile24
-rw-r--r--math/suitesparse-lagraph/pkg-descr4
-rw-r--r--math/suitesparse-lagraph/pkg-plist17
4 files changed, 46 insertions, 0 deletions
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