1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-31 05:41:08 +00:00
freebsd-ports/net/rdesktop/Makefile
Luca Pizzamiglio 4b51621e5b net/rdesktop: Take maintainership
PR:		226093
Submitted by:	Greg Fitzgerald <gregf@hugops.pw>
2018-02-22 15:38:37 +00:00

71 lines
1.7 KiB
Makefile

# Created by: mwest@uct.ac.za
# $FreeBSD$
PORTNAME= rdesktop
PORTVERSION= 1.8.3
CATEGORIES= net comms ipv6
MASTER_SITES= SF
MAINTAINER= gregf@hugops.pw
COMMENT= RDP client for Windows NT/2000/2003 Terminal Server
LICENSE= GPLv3
USE_XORG= x11
USES= gmake iconv pkgconfig ssl
CONFIGURE_ARGS+= ${ICONV_CONFIGURE_ARG} --disable-credssp
GNU_CONFIGURE= yes
DOCS= doc/AUTHORS doc/TODO doc/*.txt
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-kbd\
--with-debug-rdp5\
--with-debug-clipboard\
--with-debug-sound\
--with-debug-channel\
--with-debug-seamless
.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>