| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: fuse.buildlink3.mk,v 1.12 2011/07/09 12:33:40 tron Exp $ | | 1 | # $NetBSD: fuse.buildlink3.mk,v 1.13 2012/02/28 15:05:07 hans 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 | |
| @@ -24,26 +24,33 @@ override-message-fuse-pkgconfig: | | | @@ -24,26 +24,33 @@ override-message-fuse-pkgconfig: |
24 | | | 24 | |
25 | override-fuse-pkgconfig: | | 25 | override-fuse-pkgconfig: |
26 | ${RUN} \ | | 26 | ${RUN} \ |
27 | ${MKDIR} ${BUILDLINK_DIR}/lib/pkgconfig; \ | | 27 | ${MKDIR} ${BUILDLINK_DIR}/lib/pkgconfig; \ |
28 | ${LN} -s /usr/local/lib/pkgconfig/fuse.pc \ | | 28 | ${LN} -s /usr/local/lib/pkgconfig/fuse.pc \ |
29 | ${BUILDLINK_DIR}/lib/pkgconfig/fuse.pc | | 29 | ${BUILDLINK_DIR}/lib/pkgconfig/fuse.pc |
30 | | | 30 | |
31 | BUILDLINK_PASSTHRU_DIRS+= /usr/local/include/fuse | | 31 | BUILDLINK_PASSTHRU_DIRS+= /usr/local/include/fuse |
32 | | | 32 | |
33 | . elif ${OPSYS} == "Linux" | | 33 | . elif ${OPSYS} == "Linux" |
34 | | | 34 | |
35 | . include "../../filesystems/fuse/buildlink3.mk" | | 35 | . include "../../filesystems/fuse/buildlink3.mk" |
36 | | | 36 | |
| | | 37 | . elif !empty(MACHINE_PLATFORM:MSunOS-5.11-*) |
| | | 38 | |
| | | 39 | . if !exists(/usr/include/fuse/fuse.h) |
| | | 40 | PKG_FAIL_REASON+= "Couldn't find fuse headers, please install libfuse." |
| | | 41 | . endif |
| | | 42 | . include "../../filesystems/fuse/buildlink3.mk" |
| | | 43 | |
37 | . elif ${OPSYS} == "NetBSD" | | 44 | . elif ${OPSYS} == "NetBSD" |
38 | . if !exists(/usr/include/fuse.h) | | 45 | . if !exists(/usr/include/fuse.h) |
39 | PKG_FAIL_REASON+= "Couldn't find fuse headers, please install librefuse." | | 46 | PKG_FAIL_REASON+= "Couldn't find fuse headers, please install librefuse." |
40 | . endif | | 47 | . endif |
41 | | | 48 | |
42 | . if !empty(USE_TOOLS:C/:.*//:Mpkg-config) | | 49 | . if !empty(USE_TOOLS:C/:.*//:Mpkg-config) |
43 | do-configure-pre-hook: override-fuse-pkgconfig | | 50 | do-configure-pre-hook: override-fuse-pkgconfig |
44 | | | 51 | |
45 | BLKDIR_PKGCFG= ${BUILDLINK_DIR}/lib/pkgconfig | | 52 | BLKDIR_PKGCFG= ${BUILDLINK_DIR}/lib/pkgconfig |
46 | FUSE_PKGCFGF= fuse.pc | | 53 | FUSE_PKGCFGF= fuse.pc |
47 | | | 54 | |
48 | override-fuse-pkgconfig: override-message-fuse-pkgconfig | | 55 | override-fuse-pkgconfig: override-message-fuse-pkgconfig |
49 | override-message-fuse-pkgconfig: | | 56 | override-message-fuse-pkgconfig: |