@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2020/08/11 13:38:14 nia Exp $
+# $NetBSD: Makefile,v 1.12 2022/01/22 18:34:51 pho Exp $
DISTNAME= fuse-ext2-0.0.10
CATEGORIES= filesystems
@@ -17,6 +17,14 @@
USE_LANGUAGES= c c++
INSTALLATION_DIRS= lib/umview/modules
CHECK_PORTABILITY_SKIP= tools/macosx/fuse-ext2.fs/fuse-ext2.util
+
+# fuse-ext2 does a weird hack defining FUSE_USE_VERSION to be
+# FUSE_VERSION while FUSE 2.7 is what it actually needs. The hack
+# isn't compatible with NetBSD librefuse. Please, just don't do that.
+SUBST_CLASSES+= fuse-ver
+SUBST_STAGE.fuse-ver= pre-configure
+SUBST_FILES.fuse-ver= configure.ac
+SUBST_SED.fuse-ver= -e 's/FUSE_VERSION/27/g'
pre-configure:
cd ${WRKSRC} && autoreconf -fi