blob: 929a789dc778da165e52a1e3a77307c3a56a3a15 (
plain)
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
96
97
98
99
100
101
102
103
104
|
# Created by: Ade Lovett <ade@FreeBSD.org>
# $FreeBSD$
# $MCom: ports/devel/gnome-vfs/Makefile,v 1.191 2010/09/29 12:30:29 kwm Exp $
PORTNAME= gnome-vfs
PORTVERSION= 2.24.4
PORTREVISION?= 3
CATEGORIES= devel gnome
MASTER_SITES= GNOME
DIST_SUBDIR= gnome2
MAINTAINER= gnome@FreeBSD.org
COMMENT= GNOME Virtual File System
USES= tar:bzip2
.if !defined(REFERENCE_PORT)
RUN_DEPENDS= update-mime-database:${PORTSDIR}/misc/shared-mime-info
USES+= gettext gmake libtool:keepla pathfix pkgconfig
USE_GNOME= gnomeprefix intlhack gnomemimedata gconf2 \
referencehack
INSTALL_TARGET= install-strip
USE_OPENSSL= yes
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-openssl \
--disable-gnutls \
--disable-howl \
--with-hal-mount=/sbin/mount \
--with-hal-umount=/sbin/umount
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
PKGINSTALL= ${WRKDIR}/pkg-install
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
GCONF_SCHEMAS= desktop_default_applications.schemas \
desktop_gnome_url_handlers.schemas system_dns_sd.schemas \
system_http_proxy.schemas system_smb.schemas
OPTIONS_DEFINE= SAMBA MDNS HAL
OPTIONS_DEFAULT=SAMBA MDNS HAL
SAMBA_DESC= Enable SMB volume support
MDNS_DESC= Enable Bonjour/Rendezvous support
.include <bsd.port.options.mk>
.if exists(${LOCALBASE}/lib/libfam.so) || !defined(WITHOUT_FAM)
USES+= fam
.endif
.if exists(${LOCALBASE}/lib/libkrb5.so)
LIB_DEPENDS+= libkrb5.so:${PORTSDIR}/security/heimdal
.endif
.if ${PORT_OPTIONS:MHAL}
CONFIGURE_ARGS+=--enable-hal
LIB_DEPENDS+= libhal.so:${PORTSDIR}/sysutils/hal
.else
CONFIGURE_ARGS+=--disable-hal
.endif
.if ${PORT_OPTIONS:MSAMBA}
LIB_DEPENDS+= libsmbclient.so:${PORTSDIR}/net/samba-libsmbclient
PLIST_SUB+= SAMBA=""
.else
PLIST_SUB+= SAMBA="@comment "
CONFIGURE_ARGS+=--disable-samba
.endif
.if ${PORT_OPTIONS:MMDNS}
LIB_DEPENDS+= libavahi-client.so:${PORTSDIR}/net/avahi-app
.else
CONFIGURE_ARGS+=--disable-avahi
.endif
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
${WRKSRC}/libgnomevfs/Makefile.in
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g ; \
s|%%LOCALBASE%%|${LOCALBASE}|g' \
${WRKSRC}/libgnomevfs/xdgmime.c \
${WRKSRC}/libgnomevfs/gnome-vfs-hal-mounts.c
@${REINPLACE_CMD} -e 's|-lacl||g ; \
s|inotify_support=yes|inotify_support=no|g' \
${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|-DG_DISABLE_DEPRECATED||g' \
${WRKSRC}/*/Makefile.in
@${SED} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
< ${MASTERDIR}/pkg-install.in > ${PKGINSTALL}
@${SED} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
< ${MASTERDIR}/pkg-deinstall.in > ${PKGDEINSTALL}
pre-configure:
.if defined(WITHOUT_KERBEROS)
@${ECHO_CMD} "${PKGNAME}: KERBEROS is required."
@${FALSE}
.endif
.include <bsd.port.mk>
.endif
|