summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authormarino <marino>2012-08-17 12:50:15 +0000
committermarino <marino>2012-08-17 12:50:15 +0000
commit95df8a3830b910485fda5c16c85376ad163b62e3 (patch)
tree6f336b91d024d7c0328fa148fcab4825d770d4a2 /mk
parenta2c91ac1179444bd06ae8723f320e801ac13a907 (diff)
downloadpkgsrc-95df8a3830b910485fda5c16c85376ad163b62e3.tar.gz
FUSE buildlink: Add DragonFly support
DragonFly has NetBSD's librefuse so it can use NetBSD's FUSE configuration, with the caveat that -lpuffs be provided wherever lrefuse (or transformed -lfuse) is used. With this patch, DragonFly 3.x can build several FUSE packages out of the box.
Diffstat (limited to 'mk')
-rw-r--r--mk/fuse.buildlink3.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/mk/fuse.buildlink3.mk b/mk/fuse.buildlink3.mk
index 004d93e7ec3..85f49461e32 100644
--- a/mk/fuse.buildlink3.mk
+++ b/mk/fuse.buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: fuse.buildlink3.mk,v 1.14 2012/08/04 04:00:00 riastradh Exp $
+# $NetBSD: fuse.buildlink3.mk,v 1.15 2012/08/17 12:50:15 marino Exp $
#
# Makefile fragment for packages using the FUSE framework.
#
@@ -44,11 +44,14 @@ PKG_FAIL_REASON+= "Couldn't find fuse headers, please install libfuse."
. endif
. include "../../filesystems/fuse/buildlink3.mk"
-. elif ${OPSYS} == "NetBSD"
+. elif ${OPSYS} == "NetBSD" || \
+ !empty(MACHINE_PLATFORM:MDragonFly-[3-9]*-*)
. if !exists(/usr/include/fuse.h)
PKG_FAIL_REASON+= "Couldn't find fuse headers, please install librefuse."
. endif
+LDFLAGS.DragonFly+= -lpuffs
+
. if !empty(USE_TOOLS:C/:.*//:Mpkg-config)
do-configure-pre-hook: override-fuse-pkgconfig