aboutsummaryrefslogtreecommitdiffstats
path: root/devel/gvfs/Makefile
blob: 9344a9d13caa139b684e5572505bdf5bb8f33f40 (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
# Created by: Michael Johnson <ahze@FreeBSD.org>
# $FreeBSD$
#   $MCom: ports/devel/gvfs/Makefile,v 1.85 2012/12/14 16:09:28 kwm Exp $

PORTNAME=   gvfs
PORTVERSION=    1.12.3
PORTREVISION=   1
CATEGORIES= devel gnome
MASTER_SITES=   GNOME
DIST_SUBDIR=    gnome3

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

LIB_DEPENDS=    dbus-1:${PORTSDIR}/devel/dbus \
        soup-gnome-2.4:${PORTSDIR}/devel/libsoup-gnome \
        gcrypt:${PORTSDIR}/security/libgcrypt \
        gnome-keyring:${PORTSDIR}/security/libgnome-keyring

USES=       gettext gmake pkgconfig
USE_XZ=     yes
USE_GNOME=  glib20 gnomehack gnomeprefix intlhack intltool
USE_LDCONFIG=   yes
GNU_CONFIGURE=  yes
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
CONFIGURE_ARGS= --disable-obexftp \
        --disable-bluray \
        --disable-afc

OPTIONS_DEFINE= AVAHI SAMBA GPHOTO2 CDDA HAL FUSE
OPTIONS_DEFAULT=AVAHI SAMBA GPHOTO2 CDDA HAL
CDDA_DESC=  CDDA (enables HAL)
GPHOTO2_DESC=   Gphoto 2 camera support (enables HAL)
SAMBA_DESC= Samba support

GLIB_SCHEMAS=   org.gnome.system.gvfs.enums.xml

NO_STAGE=   yes
.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MFUSE}
USES+=      fuse
PLIST_SUB+= FUSE=""
.else
CONFIGURE_ARGS+=    --disable-fuse
PLIST_SUB+= FUSE="@comment "
.endif

.if ${PORT_OPTIONS:MSAMBA}
LIB_DEPENDS+=   smbclient:${PORTSDIR}/net/samba-libsmbclient
GLIB_SCHEMAS+=  org.gnome.system.smb.gschema.xml
PLIST_SUB+= SMB=""
.else
CONFIGURE_ARGS+=    --disable-samba
PLIST_SUB+= SMB="@comment "
.endif

.if ${PORT_OPTIONS:MCDDA}
LIB_DEPENDS+=   cdio_paranoia:${PORTSDIR}/sysutils/libcdio
PLIST_SUB+= CDDA=""
.else
CONFIGURE_ARGS+=    --disable-cdda
PLIST_SUB+= CDDA="@comment "
.endif

.if ${PORT_OPTIONS:MGPHOTO2}
LIB_DEPENDS+=   gphoto2:${PORTSDIR}/graphics/libgphoto2
PLIST_SUB+= GPHOTO2=""
.else
CONFIGURE_ARGS+=    --disable-gphoto2
PLIST_SUB+= GPHOTO2="@comment "
.endif

.if ${PORT_OPTIONS:MAVAHI}
LIB_DEPENDS+=   avahi-client:${PORTSDIR}/net/avahi-app
GLIB_SCHEMAS+=  org.gnome.system.dns_sd.gschema.xml
PLIST_SUB+= AVAHI=""
.else
CONFIGURE_ARGS+=--disable-avahi
PLIST_SUB+= AVAHI="@comment "
.endif

.if ${PORT_OPTIONS:MHAL} || ${PORT_OPTIONS:MGPHOTO2} || ${PORT_OPTIONS:MCDDA}
LIB_DEPENDS+=   hal:${PORTSDIR}/sysutils/hal
RUN_DEPENDS+=   gnome-mount:${PORTSDIR}/sysutils/gnome-mount
PLIST_SUB+= HAL=""
.else
CONFIGURE_ARGS+=--disable-hal
PLIST_SUB+= HAL="@comment "
.endif

.include <bsd.port.mk>