aboutsummaryrefslogtreecommitdiffstats
path: root/devel/gvfs/Makefile
blob: b05b9c2867513a194e3ee43b176bc0bee41821b7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# New ports collection makefile for:    gvfs
# Date created:     2007-11-06
# Whom:         Michael Johnson <ahze@FreeBSD.org>
#
# $FreeBSD$
#   $MCom: ports/devel/gvfs/Makefile,v 1.70 2011/01/31 19:06:42 kwm Exp $
#

PORTNAME=   gvfs
PORTVERSION=    1.6.6
PORTREVISION=   1
CATEGORIES= devel gnome
MASTER_SITES=   GNOME
DIST_SUBDIR=    gnome2

MAINTAINER= gnome@FreeBSD.org
COMMENT=    GNOME virtual file system

LIB_DEPENDS=    dbus-1.3:${PORTSDIR}/devel/dbus \
        soup-gnome-2.4.1:${PORTSDIR}/devel/libsoup-gnome \
        gnome-keyring:${PORTSDIR}/security/libgnome-keyring

USE_BZIP2=  yes
USE_GNOME=  glib20 gnomehack gnomeprefix intlhack gconf2
USE_GMAKE=  yes
USE_GETTEXT=    yes
USE_LDCONFIG=   yes
GNU_CONFIGURE=  yes
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
CONFIGURE_ARGS= --disable-obexftp
OPTIONS=    FUSE "Enable fuse" off \
        AVAHI "Enable AVAHI" on \
        SAMBA "Enable Samba" on \
        GPHOTO2 "Enable Gphoto 2 camera support (required HAL)" on \
        CDDA "Enable CDDA (required HAL)" on \
        HAL "Enable HAL" on

.include <bsd.port.pre.mk>

.if defined(WITH_FUSE)
LIB_DEPENDS+=   fuse.2:${PORTSDIR}/sysutils/fusefs-libs
RUN_DEPENDS+=   mount_fusefs:${PORTSDIR}/sysutils/fusefs-kmod
PLIST_SUB+= FUSE=""
.else
CONFIGURE_ARGS+=    --disable-fuse
PLIST_SUB+= FUSE="@comment "
.endif

.if defined(WITH_SAMBA)
LIB_DEPENDS+=   smbclient.0:${PORTSDIR}/net/samba-libsmbclient
PLIST_SUB+= SMB=""
.else
CONFIGURE_ARGS+=    --disable-samba
PLIST_SUB+= SMB="@comment "
.endif

.if defined(WITH_CDDA) && !defined(WITHOUT_HAL)
LIB_DEPENDS+=   cdio_paranoia.0:${PORTSDIR}/sysutils/libcdio
PLIST_SUB+= CDDA=""
.else
CONFIGURE_ARGS+=    --disable-cdda
PLIST_SUB+= CDDA="@comment "
.endif

.if defined(WITH_GPHOTO2) && !defined(WITHOUT_HAL)
LIB_DEPENDS+=   gphoto2.2:${PORTSDIR}/graphics/libgphoto2
PLIST_SUB+= GPHOTO2=""
.else
CONFIGURE_ARGS+=    --disable-gphoto2
PLIST_SUB+= GPHOTO2="@comment "
.endif

.if defined(WITH_AVAHI)
LIB_DEPENDS+=   avahi-client.3:${PORTSDIR}/net/avahi-app
PLIST_SUB+= AVAHI=""
.else
CONFIGURE_ARGS+=--disable-avahi
PLIST_SUB+= AVAHI="@comment "
.endif

.if defined(WITH_HAL)
LIB_DEPENDS+=   hal.1:${PORTSDIR}/sysutils/hal
RUN_DEPENDS+=   gnome-mount:${PORTSDIR}/sysutils/gnome-mount
PLIST_SUB+= HAL=""
.else
CONFIGURE_ARGS+=--disable-hal
PLIST_SUB+= HAL="@comment "
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|-DG_DISABLE_DEPRECATED||g' \
        ${WRKSRC}/gconf/Makefile.in

.include <bsd.port.post.mk>