diff --git a/sysutils/fusefs-bindfs/Makefile b/sysutils/fusefs-bindfs/Makefile index 0427d357c393..de87bf2c500d 100644 --- a/sysutils/fusefs-bindfs/Makefile +++ b/sysutils/fusefs-bindfs/Makefile @@ -1,34 +1,28 @@ PORTNAME= bindfs DISTVERSION= 1.17.7 PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= https://bindfs.org/downloads/ PKGNAMEPREFIX= fusefs- MAINTAINER= doralitze@chaotikum.org COMMENT= FUSE based bindfs implementation way more powerful than nullfs WWW= https://bindfs.org/ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING USES= fuse:3 localbase:ldflags pkgconfig GNU_CONFIGURE= yes -GNU_CONFIGURE_MANPREFIX= ${PREFIX}/share + +CONFIGURE_ENV+= fuse3_LIBS="-L${LOCALBASE}/lib -lfuse3" +CONFIGURE_ARGS= --with-fuse3 PLIST_FILES= bin/bindfs \ share/man/man1/bindfs.1.gz -.include - -.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,'`" +post-patch: + @${REINPLACE_CMD} -e 's|-pthread|-lthr|g' \ + ${PATCH_WRKSRC}/configure -.include +.include