aboutsummaryrefslogtreecommitdiffstats
path: root/net/rdesktop/Makefile
blob: 7082c1199e69aa30288b1359bc5e76d41348a163 (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
70
71
72
73
# Created by: mwest@uct.ac.za
# $FreeBSD$

PORTNAME=   rdesktop
PORTVERSION=    1.8.6
DISTVERSIONPREFIX=  v
CATEGORIES= net comms ipv6

MAINTAINER= gregf@hugops.pw
COMMENT=    RDP client for Windows NT/2000/2003 Terminal Server

LICENSE=    GPLv3

USES=       autoreconf gmake iconv pkgconfig ssl
USE_XORG=   x11 xrandr
USE_GITHUB= yes

CONFIGURE_ARGS+=    ${ICONV_CONFIGURE_ARG} \
            --disable-credssp
GNU_CONFIGURE=      yes
DOCS=           doc/*.txt doc/AUTHORS doc/TODO

OPTIONS_DEFINE= AO DEBUG DOCS IPV6 SAMPLERATE SMARTCARD
SMARTCARD_DESC= Enable SmartCard login via PCSC-lite

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MAO}
LIB_DEPENDS+=       libao.so:audio/libao
CONFIGURE_ARGS+=    --with-sound=libao
.else
CONFIGURE_ARGS+=    --with-sound=oss
.endif

.if exists(${LOCALBASE}/lib/libsamplerate.so) || ${PORT_OPTIONS:MSAMPLERATE}
LIB_DEPENDS+=   libsamplerate.so:audio/libsamplerate
.endif

.if ${PORT_OPTIONS:MIPV6}
CONFIGURE_ARGS+=    --with-ipv6
.endif

.if ${PORT_OPTIONS:MSMARTCARD}
LIB_DEPENDS+=   libpcsclite.so:devel/pcsc-lite
.else
CONFIGURE_ARGS+=    --disable-smartcard
.endif

.if ${PORT_OPTIONS:MDEBUG}
CONFIGURE_ARGS+=    --with-debug \
            --with-debug-channel \
            --with-debug-clipboard \
            --with-debug-kbd \
            --with-debug-rdp5 \
            --with-debug-seamless \
            --with-debug-sound
.if ${PORT_OPTIONS:MSMARTCARD}
CONFIGURE_ARGS+=    --with-debug-smartcard
.endif

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

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/rdesktop ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/doc/rdesktop.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
    @${MKDIR} ${STAGEDIR}${DATADIR}/keymaps
    ${INSTALL_DATA} ${WRKSRC}/keymaps/* ${STAGEDIR}${DATADIR}/keymaps
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>