aboutsummaryrefslogtreecommitdiffstats
path: root/net/rdesktop/Makefile
blob: 1b9ed43d85c3d94c1c6a289462918c6e23f09381 (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
# New ports collection makefile for:  rdesktop
# Date created:               13 December 2000
# Whom:                       mwest@uct.ac.za
#
# $FreeBSD$
#

PORTNAME=   rdesktop
PORTVERSION=    1.6.0
PORTREVISION?=  0
CATEGORIES= net comms ipv6
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= obrien@FreeBSD.org
COMMENT=    RDP client for Windows NT/2000/2003 Terminal Server

USE_XORG=   x11
USE_GMAKE=  yes
USE_OPENSSL=    yes
GNU_CONFIGURE=  yes
DOCS=       doc/AUTHORS doc/TODO doc/*.txt
MAN1=       rdesktop.1

.if !defined(WITHOUT_RDESKTOP_IPV6) && !defined(WITHOUT_IPV6)
CONFIGURE_ARGS+=    --with-ipv6
.endif

.if defined(WITH_ICONV)
USE_ICONV=  yes
CONFIGURE_ARGS+=    --with-libiconv-prefix=${LOCALBASE}
.endif

.if defined(WITH_RDESKTOP_DEBUG)
CONFIGURE_ARGS+=    --with-debug\
            --with-debug-kbd\
            --with-debug-rdp5\
            --with-debug-clipboard\
            --with-debug-sound\
            --with-debug-channel\
            --with-debug-seamless

post-configure:
    ${ECHO} "#define WITH_DEBUG_SERIAL 1" >> ${WRKSRC}/rdesktop.h
.endif

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/rdesktop ${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/doc/rdesktop.1 ${MAN1PREFIX}/man/man1
    @${MKDIR} ${DATADIR}/keymaps
    ${INSTALL_DATA} ${WRKSRC}/keymaps/* ${DATADIR}/keymaps
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif

.include <bsd.port.mk>