| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: fuse.buildlink3.mk,v 1.14 2012/08/04 04:00:00 riastradh Exp $ | | 1 | # $NetBSD: fuse.buildlink3.mk,v 1.15 2012/08/17 12:50:15 marino Exp $ |
2 | # | | 2 | # |
3 | # Makefile fragment for packages using the FUSE framework. | | 3 | # Makefile fragment for packages using the FUSE framework. |
4 | # | | 4 | # |
5 | | | 5 | |
6 | # The symbol FUSE_BUILDLINK3_MK is used by filesystems/fuse's bl3.mk, | | 6 | # The symbol FUSE_BUILDLINK3_MK is used by filesystems/fuse's bl3.mk, |
7 | # so use something else for our include guard. | | 7 | # so use something else for our include guard. |
8 | .if !defined(MK_FUSE_BUILDLINK3_MK) | | 8 | .if !defined(MK_FUSE_BUILDLINK3_MK) |
9 | MK_FUSE_BUILDLINK3_MK= # defined | | 9 | MK_FUSE_BUILDLINK3_MK= # defined |
10 | | | 10 | |
11 | .include "bsd.fast.prefs.mk" | | 11 | .include "bsd.fast.prefs.mk" |
12 | | | 12 | |
13 | . if ${OPSYS} == "Darwin" | | 13 | . if ${OPSYS} == "Darwin" |
14 | | | 14 | |
| @@ -34,31 +34,34 @@ BUILDLINK_PASSTHRU_DIRS+= /usr/local/inc | | | @@ -34,31 +34,34 @@ BUILDLINK_PASSTHRU_DIRS+= /usr/local/inc |
34 | BUILDLINK_PASSTHRU_DIRS+= /usr/local/include/osxfuse | | 34 | BUILDLINK_PASSTHRU_DIRS+= /usr/local/include/osxfuse |
35 | | | 35 | |
36 | . elif ${OPSYS} == "Linux" | | 36 | . elif ${OPSYS} == "Linux" |
37 | | | 37 | |
38 | . include "../../filesystems/fuse/buildlink3.mk" | | 38 | . include "../../filesystems/fuse/buildlink3.mk" |
39 | | | 39 | |
40 | . elif !empty(MACHINE_PLATFORM:MSunOS-5.11-*) | | 40 | . elif !empty(MACHINE_PLATFORM:MSunOS-5.11-*) |
41 | | | 41 | |
42 | . if !exists(/usr/include/fuse/fuse.h) | | 42 | . if !exists(/usr/include/fuse/fuse.h) |
43 | PKG_FAIL_REASON+= "Couldn't find fuse headers, please install libfuse." | | 43 | PKG_FAIL_REASON+= "Couldn't find fuse headers, please install libfuse." |
44 | . endif | | 44 | . endif |
45 | . include "../../filesystems/fuse/buildlink3.mk" | | 45 | . include "../../filesystems/fuse/buildlink3.mk" |
46 | | | 46 | |
47 | . elif ${OPSYS} == "NetBSD" | | 47 | . elif ${OPSYS} == "NetBSD" || \ |
| | | 48 | !empty(MACHINE_PLATFORM:MDragonFly-[3-9]*-*) |
48 | . if !exists(/usr/include/fuse.h) | | 49 | . if !exists(/usr/include/fuse.h) |
49 | PKG_FAIL_REASON+= "Couldn't find fuse headers, please install librefuse." | | 50 | PKG_FAIL_REASON+= "Couldn't find fuse headers, please install librefuse." |
50 | . endif | | 51 | . endif |
51 | | | 52 | |
| | | 53 | LDFLAGS.DragonFly+= -lpuffs |
| | | 54 | |
52 | . if !empty(USE_TOOLS:C/:.*//:Mpkg-config) | | 55 | . if !empty(USE_TOOLS:C/:.*//:Mpkg-config) |
53 | do-configure-pre-hook: override-fuse-pkgconfig | | 56 | do-configure-pre-hook: override-fuse-pkgconfig |
54 | | | 57 | |
55 | BLKDIR_PKGCFG= ${BUILDLINK_DIR}/lib/pkgconfig | | 58 | BLKDIR_PKGCFG= ${BUILDLINK_DIR}/lib/pkgconfig |
56 | FUSE_PKGCFGF= fuse.pc | | 59 | FUSE_PKGCFGF= fuse.pc |
57 | | | 60 | |
58 | override-fuse-pkgconfig: override-message-fuse-pkgconfig | | 61 | override-fuse-pkgconfig: override-message-fuse-pkgconfig |
59 | override-message-fuse-pkgconfig: | | 62 | override-message-fuse-pkgconfig: |
60 | @${STEP_MSG} "Magical transformations for fuse on NetBSD." | | 63 | @${STEP_MSG} "Magical transformations for fuse on NetBSD." |
61 | | | 64 | |
62 | override-fuse-pkgconfig: | | 65 | override-fuse-pkgconfig: |
63 | ${RUN} \ | | 66 | ${RUN} \ |
64 | ${MKDIR} ${BLKDIR_PKGCFG}; \ | | 67 | ${MKDIR} ${BLKDIR_PKGCFG}; \ |