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.
This commit is contained in:
marino 2012-08-17 12:50:15 +00:00
parent 3849fc51b4
commit 46a4f32a52

View file

@ -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