aboutsummaryrefslogtreecommitdiffstats
path: root/net/ssvnc/Makefile
blob: 5aae574c1d18413dd53b14a1087f556f685f2b12 (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
# New ports collection makefile for:    ssvnc
# Date created:             2007-04-22
# Whom:                 alepulver
#
# $FreeBSD$
#

PORTNAME=   ssvnc
PORTVERSION=    1.0.15
PORTREVISION=   1
CATEGORIES= net security
MASTER_SITES=   http://www.karlrunge.com/x11vnc/etv/

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

BUILD_DEPENDS=  xmkmf:${X_IMAKE_PORT}
LIB_DEPENDS=    jpeg.9:${PORTSDIR}/graphics/jpeg
RUN_DEPENDS=    stunnel:${PORTSDIR}/security/stunnel

BROKEN=     Unfetchable

USE_XLIB=   yes
USE_TCL_RUN=    84
USE_TK_RUN= 84
WRKSRC=     ${WRKDIR}/${PORTNAME}

post-patch:
    @${REINPLACE_CMD} -e \
        's|/usr/local|${LOCALBASE}|g; s|/usr/X11R6|${X11BASE}|g' \
        ${WRKSRC}/build.unix
    @${REINPLACE_CMD} -e \
        's|exec wish|exec ${WISH}|; \
         303,$$s|ss_vncviewer|ssvnc-stunnel|; \
         s|ssvnc_cmd|ssvnc-stunnel|' \
         ${WRKSRC}/bin/util/ssvnc.tcl
    @${REINPLACE_CMD} -e \
        's|ss_vncviewer|ssvnc-stunnel|; \
         s|-vncviewer|-ssvnc|; \
         s|grep Linux|grep ${OPSYS}|' \
         ${WRKSRC}/bin/util/ss_vncviewer

do-build:
    @cd ${WRKSRC} && ${SETENV} UNAME="${OPSYS}" ${SH} build.unix

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/bin/${OPSYS}/vncviewer ${PREFIX}/bin/ssvnc
    ${INSTALL_SCRIPT} ${WRKSRC}/bin/util/ss_vncviewer \
        ${PREFIX}/bin/ssvnc-stunnel
    ${INSTALL_SCRIPT} ${WRKSRC}/bin/util/ssvnc.tcl ${PREFIX}/bin/ssvnc-gui
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    cd ${WRKSRC} && ${INSTALL_DATA} README bin/util/stunnel-server.conf \
        ${DOCSDIR}
.endif
    @${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD}

.include <bsd.port.mk>