git: 1ab6caad6285 - main - sysutils/fusefs-bindfs: update to 1.15.1

From: Fernando Apesteguía <fernape_at_FreeBSD.org>
Date: Thu, 09 Jun 2022 05:22:28 UTC
The branch main has been updated by fernape:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1ab6caad6285ef038493f2348aa41afae5b39b99

commit 1ab6caad6285ef038493f2348aa41afae5b39b99
Author:     Leon Dietrich <doralitze@chaotikum.org>
AuthorDate: 2022-06-07 16:51:13 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2022-06-09 05:20:02 +0000

    sysutils/fusefs-bindfs: update to 1.15.1
    
    ChangeLog: https://bindfs.org/docs/ChangeLog.utf8.txt
    
     * Fixed build on old compilers by adhering more strictly to C99.
    
    PR:     264496
    Reported by:    doralitze@chaotikum.org (maintainer)
---
 sysutils/fusefs-bindfs/Makefile | 16 ++++++++++++++--
 sysutils/fusefs-bindfs/distinfo |  6 +++---
 2 files changed, 17 insertions(+), 5 deletions(-)

diff --git a/sysutils/fusefs-bindfs/Makefile b/sysutils/fusefs-bindfs/Makefile
index 4b2ab95446e9..c37e25cc68ed 100644
--- a/sysutils/fusefs-bindfs/Makefile
+++ b/sysutils/fusefs-bindfs/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	bindfs
-DISTVERSION=	1.14.8
+DISTVERSION=	1.15.1
 CATEGORIES=	sysutils
 MASTER_SITES=	https://bindfs.org/downloads/
 PKGNAMEPREFIX=	fusefs-
@@ -16,4 +16,16 @@ GNU_CONFIGURE=	yes
 PLIST_FILES=	bin/bindfs \
 		man/man1/bindfs.1.gz
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${LIBFUSE_VER} == 3
+FUSEPKG=	fuse3
+CONFIGURE_ENV+=	FUSE_CFLAGS="-I${LOCALBASE}/include/fuse3" \
+		FUSE_LIBS="-L${LOCALBASE}/lib -lfuse3"
+LDFLAGS+=	-lthr
+.endif
+
+FUSE_VERSION=	"`pkgconf --modversion ${FUSEPKG} | \
+		${SED} -E 's,^([0-9]+)\.([0-9]+)\..*,\1\2,'`"
+
+.include <bsd.port.post.mk>
diff --git a/sysutils/fusefs-bindfs/distinfo b/sysutils/fusefs-bindfs/distinfo
index 34f04d04f23a..16378a49c885 100644
--- a/sysutils/fusefs-bindfs/distinfo
+++ b/sysutils/fusefs-bindfs/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1601406682
-SHA256 (bindfs-1.14.8.tar.gz) = e5ca5aff55204b993a025a77c3f8c0e2ee901ba8059d71bea11de2cc685ec497
-SIZE (bindfs-1.14.8.tar.gz) = 410096
+TIMESTAMP = 1654509837
+SHA256 (bindfs-1.15.1.tar.gz) = 04dd3584a6cdf9af4344d403c62185ca9fab31ce3ae5a25d0101bc10936c68ab
+SIZE (bindfs-1.15.1.tar.gz) = 415676