diff --git a/math/rankwidth/Makefile b/math/rankwidth/Makefile index 9d7893bba895..ddc56597979a 100644 --- a/math/rankwidth/Makefile +++ b/math/rankwidth/Makefile @@ -1,25 +1,26 @@ PORTNAME= rankwidth # Also known as: rw PORTVERSION= 0.9 +PORTREVISION= 1 CATEGORIES= math MASTER_SITES= SF/${PORTNAME}/ DISTNAME= rw-${PORTVERSION} MAINTAINER= thierry@FreeBSD.org COMMENT= Calculation of rank-width and rank-decompositions WWW= https://sourceforge.net/projects/rankwidth/ LICENSE= GPLv2 LIB_DEPENDS= libigraph.so:math/igraph USES= autoreconf libtool localbase pkgconfig CONFLICTS_INSTALL= rw OPTIONS_DEFINE= DOCS GNU_CONFIGURE= yes USE_LDCONFIG= yes DOCSDIR= ${PREFIX}/share/doc/rw .include diff --git a/math/rankwidth/files/patch-simplerw.c b/math/rankwidth/files/patch-simplerw.c new file mode 100644 index 000000000000..378f8e7c47a3 --- /dev/null +++ b/math/rankwidth/files/patch-simplerw.c @@ -0,0 +1,11 @@ +--- simplerw.c.orig 2023-02-26 14:01:13 UTC ++++ simplerw.c +@@ -134,7 +134,7 @@ int read_graph(const char *format, const char * filena + igraph_destroy(&igraph); + return(-1); + } +- igraph_get_adjacency(&igraph, &imatrix, IGRAPH_GET_ADJACENCY_BOTH, 0); ++ igraph_get_adjacency(&igraph, &imatrix, IGRAPH_GET_ADJACENCY_BOTH, NULL, IGRAPH_LOOPS_ONCE); + igraph_destroy(&igraph); + if(igraph_matrix_nrow(&imatrix) > MAX_VERTICES) + {