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