| @@ -1,75 +1,81 @@ | | | @@ -1,75 +1,81 @@ |
1 | # $NetBSD: Makefile,v 1.20 2009/10/31 14:46:51 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.21 2009/12/09 15:08:30 wiz Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | DISTNAME= gvfs-1.2.3 | | 4 | DISTNAME= gvfs-1.2.3 |
5 | PKGREVISION= 2 | | 5 | PKGREVISION= 2 |
6 | CATEGORIES= sysutils | | 6 | CATEGORIES= sysutils |
7 | MASTER_SITES= ${MASTER_SITE_GNOME:=sources/gvfs/1.2/} | | 7 | MASTER_SITES= ${MASTER_SITE_GNOME:=sources/gvfs/1.2/} |
8 | EXTRACT_SUFX= .tar.bz2 | | 8 | EXTRACT_SUFX= .tar.bz2 |
9 | | | 9 | |
10 | MAINTAINER= pkgsrc-users@NetBSD.org | | 10 | MAINTAINER= pkgsrc-users@NetBSD.org |
11 | HOMEPAGE= http://www.gnome.org/ | | 11 | HOMEPAGE= http://www.gnome.org/ |
12 | COMMENT= Userspace virtual filesystem | | 12 | COMMENT= Userspace virtual filesystem |
13 | | | 13 | |
14 | PKG_DESTDIR_SUPPORT= user-destdir | | 14 | PKG_DESTDIR_SUPPORT= user-destdir |
15 | | | 15 | |
16 | GNU_CONFIGURE= yes | | 16 | GNU_CONFIGURE= yes |
17 | USE_LIBTOOL= yes | | 17 | USE_LIBTOOL= yes |
18 | USE_TOOLS+= intltool gmake pkg-config msgfmt | | 18 | USE_TOOLS+= intltool gmake pkg-config msgfmt |
19 | CONFIGURE_ARGS+= --with-samba-includes=${LOCALBASE}/include | | | |
20 | CONFIGURE_ARGS+= --with-samba-libs=${LOCALBASE}/lib/samba | | | |
21 | CONFIGURE_ARGS+= --enable-http | | 19 | CONFIGURE_ARGS+= --enable-http |
22 | CONFIGURE_ARGS+= --disable-bash-completion | | 20 | CONFIGURE_ARGS+= --disable-bash-completion |
23 | | | 21 | |
24 | .include "../../mk/bsd.prefs.mk" | | 22 | .include "../../mk/bsd.prefs.mk" |
25 | | | 23 | |
26 | PKG_OPTIONS_VAR= PKG_OPTIONS.gvfs | | 24 | PKG_OPTIONS_VAR= PKG_OPTIONS.gvfs |
27 | PKG_SUPPORTED_OPTIONS+= avahi hal fuse | | 25 | PKG_SUPPORTED_OPTIONS+= avahi hal fuse samba |
28 | PKG_SUGGESTED_OPTIONS+= avahi hal | | 26 | PKG_SUGGESTED_OPTIONS+= avahi hal samba |
29 | PLIST_VARS+= ${PKG_SUPPORTED_OPTIONS} | | 27 | PLIST_VARS+= ${PKG_SUPPORTED_OPTIONS} |
30 | | | 28 | |
31 | # XXX fuse.bl3.mk will fail if we include it and fuse is not available | | 29 | # XXX fuse.bl3.mk will fail if we include it and fuse is not available |
32 | .if ${OPSYS} == "Linux" || (${OPSYS} == "NetBSD" && exists(/usr/include/fuse.h)) | | 30 | .if ${OPSYS} == "Linux" || (${OPSYS} == "NetBSD" && exists(/usr/include/fuse.h)) |
33 | PKG_SUGGESTED_OPTIONS+= fuse | | 31 | PKG_SUGGESTED_OPTIONS+= fuse |
34 | .endif | | 32 | .endif |
35 | | | 33 | |
36 | .include "../../mk/bsd.options.mk" | | 34 | .include "../../mk/bsd.options.mk" |
37 | | | 35 | |
38 | .if !empty(PKG_OPTIONS:Mavahi) | | 36 | .if !empty(PKG_OPTIONS:Mavahi) |
39 | .include "../../net/avahi/buildlink3.mk" | | 37 | .include "../../net/avahi/buildlink3.mk" |
40 | CONFIGURE_ARGS+= --enable-avahi | | 38 | CONFIGURE_ARGS+= --enable-avahi |
41 | PLIST.avahi= yes | | 39 | PLIST.avahi= yes |
42 | .else | | 40 | .else |
43 | CONFIGURE_ARGS+= --disable-avahi | | 41 | CONFIGURE_ARGS+= --disable-avahi |
44 | .endif | | 42 | .endif |
45 | | | 43 | |
| | | 44 | .if !empty(PKG_OPTIONS:Msamba) |
| | | 45 | CONFIGURE_ARGS+= --with-samba-includes=${LOCALBASE}/include |
| | | 46 | CONFIGURE_ARGS+= --with-samba-libs=${LOCALBASE}/lib/samba |
| | | 47 | .include "../../net/samba/buildlink3.mk" |
| | | 48 | PLIST.samba= yes |
| | | 49 | .else |
| | | 50 | CONFIGURE_ARGS+= --disable-samba |
| | | 51 | .endif |
| | | 52 | |
46 | .if !empty(PKG_OPTIONS:Mhal) | | 53 | .if !empty(PKG_OPTIONS:Mhal) |
47 | .include "../../misc/libcdio/buildlink3.mk" | | 54 | .include "../../misc/libcdio/buildlink3.mk" |
48 | .include "../../sysutils/hal/buildlink3.mk" | | 55 | .include "../../sysutils/hal/buildlink3.mk" |
49 | CONFIGURE_ARGS+= --enable-hal | | 56 | CONFIGURE_ARGS+= --enable-hal |
50 | CONFIGURE_ARGS+= --enable-cdda | | 57 | CONFIGURE_ARGS+= --enable-cdda |
51 | PLIST.hal= yes | | 58 | PLIST.hal= yes |
52 | .else | | 59 | .else |
53 | CONFIGURE_ARGS+= --disable-hal | | 60 | CONFIGURE_ARGS+= --disable-hal |
54 | CONFIGURE_ARGS+= --disable-cdda | | 61 | CONFIGURE_ARGS+= --disable-cdda |
55 | .endif | | 62 | .endif |
56 | | | 63 | |
57 | .if !empty(PKG_OPTIONS:Mfuse) | | 64 | .if !empty(PKG_OPTIONS:Mfuse) |
58 | .include "../../mk/fuse.buildlink3.mk" | | 65 | .include "../../mk/fuse.buildlink3.mk" |
59 | CONFIGURE_ARGS+= --enable-fuse | | 66 | CONFIGURE_ARGS+= --enable-fuse |
60 | PLIST.fuse= yes | | 67 | PLIST.fuse= yes |
61 | .else | | 68 | .else |
62 | CONFIGURE_ARGS+= --disable-fuse | | 69 | CONFIGURE_ARGS+= --disable-fuse |
63 | .endif | | 70 | .endif |
64 | | | 71 | |
65 | BUILDLINK_API_DEPENDS.glib2+= glib2>=2.17.6 | | 72 | BUILDLINK_API_DEPENDS.glib2+= glib2>=2.17.6 |
66 | .include "../../devel/glib2/buildlink3.mk" | | 73 | .include "../../devel/glib2/buildlink3.mk" |
67 | .include "../../sysutils/dbus/buildlink3.mk" | | 74 | .include "../../sysutils/dbus/buildlink3.mk" |
68 | .include "../../archivers/libarchive/buildlink3.mk" | | 75 | .include "../../archivers/libarchive/buildlink3.mk" |
69 | .include "../../net/samba/buildlink3.mk" | | | |
70 | BUILDLINK_API_DEPENDS.libsoup24+= libsoup24>=2.25.1 | | 76 | BUILDLINK_API_DEPENDS.libsoup24+= libsoup24>=2.25.1 |
71 | .include "../../net/libsoup24/buildlink3.mk" | | 77 | .include "../../net/libsoup24/buildlink3.mk" |
72 | .include "../../textproc/libxml2/buildlink3.mk" | | 78 | .include "../../textproc/libxml2/buildlink3.mk" |
73 | .include "../../devel/GConf/buildlink3.mk" | | 79 | .include "../../devel/GConf/buildlink3.mk" |
74 | .include "../../security/gnome-keyring/buildlink3.mk" | | 80 | .include "../../security/gnome-keyring/buildlink3.mk" |
75 | .include "../../mk/bsd.pkg.mk" | | 81 | .include "../../mk/bsd.pkg.mk" |