blob: 075e3fe96feeba9d9264d3d681a42b2c249c0601 (
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
|
# New ports collection makefile for: grdc
# Date created: 12 April 2009
# Whom: Alexander Logvinov <ports@logvinov.com>
#
# $FreeBSD$
#
PORTNAME= grdc
PORTVERSION= 0.6.0
CATEGORIES= net gnome
MASTER_SITES= SF
MAINTAINER= avl@FreeBSD.org
COMMENT= GTK+/GNOME remote desktop client
RUN_DEPENDS= rdesktop:${PORTSDIR}/net/rdesktop
OPTIONS= VNC "Build with VNC protocol support" off \
SSH "Build with SSH tunneling support" off \
GCRYPT "Build with libgcrypt support (only with SSH)" off \
TERM "Build with terminal support" off \
AVAHI "Build with Avahi support" off
MAKE_JOBS_SAFE= yes
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_GETTEXT= yes
USE_GNOME= gnomehack gnomeprefix glib20 gtk20
CFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
CONFIGURE_ENV= CFLAGS="${CFLAGS}" \
LDFLAGS="${LDFLAGS}"
.include <bsd.port.pre.mk>
.if defined(WITH_VNC)
LIB_DEPENDS+= vncclient.0:${PORTSDIR}/net/libvncserver
.else
CONFIGURE_ARGS+= --disable-vnc
.endif
.if defined(WITH_SSH)
LIB_DEPENDS+= ssh.3:${PORTSDIR}/security/libssh
.if defined(WITH_GCRYPT)
LIB_DEPENDS+= gcrypt.16:${PORTSDIR}/security/libgcrypt
.else
CONFIGURE_ARGS+= --disable-gcrypt
.endif
.else
CONFIGURE_ARGS+= --disable-ssh
.endif
.if defined(WITH_TERM)
USE_GNOME+= vte
.else
CONFIGURE_ARGS+= --disable-vte
.endif
.if defined(WITH_AVAHI)
LIB_DEPENDS+= avahi-ui.0:${PORTSDIR}/net/avahi-gtk
.else
CONFIGURE_ARGS+= --disable-avahi
.endif
post-patch:
@${REINPLACE_CMD} -e 's|Exec=grdc|Exec=${LOCALBASE}/bin/grdc|' \
${WRKSRC}/src/grdc.desktop.in
.include <bsd.port.post.mk>
|