summaryrefslogtreecommitdiff
path: root/filesystems/fuse-ntfs-3g
diff options
context:
space:
mode:
authorgdt <gdt@pkgsrc.org>2019-04-16 19:30:55 +0000
committergdt <gdt@pkgsrc.org>2019-04-16 19:30:55 +0000
commit6a9a088f35554ca3b06fa8b5a4ed10cf719a21c1 (patch)
tree49f0bd6e5e271aa29efe450f679538f6d49fb877 /filesystems/fuse-ntfs-3g
parent10be6e75200113201be29963fc26cd7f95815671 (diff)
downloadpkgsrc-6a9a088f35554ca3b06fa8b5a4ed10cf719a21c1.tar.gz
filesystems/fuse-ntfs-3g: Use libfuse on NetBSD
Due to not fully understood reasons, perhaps use of the low-level FUSE API, or perhaps using a different FUSE high-level API version, this package fails to build with NetBSD's librefuse. It does build when linked against filesystems/fuse, so do that. Not tested, but building is an improvement over not building. (This commit only changes the build on NetBSD.)
Diffstat (limited to 'filesystems/fuse-ntfs-3g')
-rw-r--r--filesystems/fuse-ntfs-3g/Makefile15
1 files changed, 12 insertions, 3 deletions
diff --git a/filesystems/fuse-ntfs-3g/Makefile b/filesystems/fuse-ntfs-3g/Makefile
index 71d0dbf52fe..8d83734a63e 100644
--- a/filesystems/fuse-ntfs-3g/Makefile
+++ b/filesystems/fuse-ntfs-3g/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2018/04/07 19:46:21 adam Exp $
+# $NetBSD: Makefile,v 1.21 2019/04/16 19:30:55 gdt Exp $
.include "../../filesystems/libntfs/Makefile.common"
@@ -10,12 +10,21 @@ COMMENT= NTFS driver with read and write support
CONFIGURE_ARGS+= --disable-ntfsprogs
CONFIGURE_ARGS+= --enable-mount-helper
-NOT_FOR_PLATFORM= NetBSD-*-* # ancient fuse API
-
BUILD_DIRS= src
USE_TOOLS+= pkg-config
+.include "../../mk/bsd.prefs.mk"
+
.include "../../filesystems/libntfs/buildlink3.mk"
+.if ${OPSYS} == "NetBSD"
+.include "../../filesystems/perfuse/buildlink3.mk"
+# fuse-ntfs-3g does not build with librefuse from netbsd-8.
+# \todo Add a mechanism in mk/fuse.buildlink3.mk to declare this, rather
+# than open-coding the changing of which bl3 line is used.
+.include "../../filesystems/fuse/buildlink3.mk"
+.else
+# Find this platform's preferred FUSE implementation (normal approach).
.include "../../mk/fuse.buildlink3.mk"
+.endif
.include "../../mk/bsd.pkg.mk"