summaryrefslogtreecommitdiffstats
path: root/net/ssvnc/Makefile
blob: 003d50db5bfc905abb17e8bcc4847eaf6eb923ec (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
# Created by: Alejandro Pulver <alepulver@FreeBSD.org>
# $FreeBSD$

PORTNAME=	ssvnc
PORTVERSION=	1.0.29
PORTREVISION=	3
CATEGORIES=	net security
MASTER_SITES=	SF
EXTRACT_SUFX=	.src.tar.gz

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Enhanced TightVNC Viewer (SSVNC: SSL/SSH VNC viewer)

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

RUN_DEPENDS=	stunnel:security/stunnel \
		xterm:x11/xterm

USES=		gmake imake:env jpeg perl5 ssl tk:wrapper
USE_PERL5=	run
USE_XORG=	ice sm x11 xaw xext xi xmu xpm xt

CFLAGS+=	-I${OPENSSLINC}
LDFLAGS+=	-L${OPENSSLLIB}
MAKE_ENV+=	ROOT=${STAGEDIR}

OPTIONS_DEFINE=	DOCS ULTRAFTP
OPTIONS_SUB=	yes

DOCS_MAKE_ARGS_OFF=	DOCS=""

ULTRAFTP_DESC=		UltraVNC File Transfer support (Java required)
ULTRAFTP_USE=		JAVA=yes
ULTRAFTP_MAKE_ARGS_OFF=	JSRC=""

post-patch:
	@${REINPLACE_CMD} -e 's|netstat -ant|netstat -an|' \
		${WRKSRC}/scripts/util/ss_vncviewer
	@${REINPLACE_CMD} -e 's|[[:<:]]ssvnc[[:>:]]|ssvnc-gui|' \
		${WRKSRC}/man/man1/ssvnc.1

do-configure:
	(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
		${MAKE_CMD} ${MAKE_ARGS} config)

.include <bsd.port.mk>
OpenPOWER on IntegriCloud