2012-12-26 12:27:15 +00:00
|
|
|
# Created by: alepulver
|
2007-05-04 01:12:47 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= xrdp
|
2013-10-22 13:09:10 +00:00
|
|
|
PORTVERSION= 0.6.1
|
2013-11-15 01:26:42 +00:00
|
|
|
PORTREVISION= 1
|
2012-10-06 01:25:46 +00:00
|
|
|
PORTEPOCH= 1
|
2007-05-04 01:12:47 +00:00
|
|
|
CATEGORIES= net
|
2013-10-22 13:09:10 +00:00
|
|
|
MASTER_SITES= GH
|
2011-04-27 09:29:03 +00:00
|
|
|
DIST_SUBDIR?= ${PORTNAME}
|
|
|
|
|
2012-06-02 18:32:38 +00:00
|
|
|
MAINTAINER= meta+ports@vmeta.jp
|
2013-10-22 13:09:10 +00:00
|
|
|
COMMENT= Open source Remote Desktop Protocol (RDP) server
|
2007-05-04 01:12:47 +00:00
|
|
|
|
2012-06-02 18:32:38 +00:00
|
|
|
LICENSE= GPLv2
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
|
2013-09-13 01:21:55 +00:00
|
|
|
USES= pkgconfig
|
2010-11-10 16:29:36 +00:00
|
|
|
USE_XORG= x11 xfixes
|
2010-12-04 07:34:27 +00:00
|
|
|
USE_AUTOTOOLS= autoconf:env automake:env libtool
|
2010-02-16 15:12:20 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2007-05-04 01:12:47 +00:00
|
|
|
USE_RC_SUBR= xrdp
|
2013-11-15 01:26:42 +00:00
|
|
|
USE_LDCONFIG= ${STAGEDIR}${PREFIX}/lib/xrdp
|
2013-10-22 13:09:10 +00:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= FreeRDP
|
|
|
|
GH_PROJECT= xrdp
|
|
|
|
GH_COMMIT= 5d53758
|
|
|
|
GH_TAGNAME= ${GH_COMMIT}
|
2007-05-04 01:12:47 +00:00
|
|
|
|
2013-11-15 01:26:42 +00:00
|
|
|
CONFIGURE_ARGS= --localstatedir=/var \
|
|
|
|
--enable-freerdp1
|
2011-09-23 22:26:39 +00:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
2013-02-17 21:52:11 +00:00
|
|
|
CONFLICTS= xrdp-devel-[0-9]*
|
2013-06-20 03:56:14 +00:00
|
|
|
BUILD_DEPENDS+= freerdp>=1.0.2:${PORTSDIR}/net/freerdp
|
2011-04-27 09:29:03 +00:00
|
|
|
|
2013-11-15 01:26:42 +00:00
|
|
|
OPTIONS_DEFINE= DEBUG
|
2013-06-20 03:56:14 +00:00
|
|
|
OPTIONS_DEFAULT= JP106 TIGERVNC
|
2013-11-15 01:26:42 +00:00
|
|
|
OPTIONS_MULTI= KEYMAP
|
|
|
|
OPTIONS_MULTI_KEYMAP= JP106
|
2013-06-20 03:56:14 +00:00
|
|
|
OPTIONS_RADIO= XVNC
|
|
|
|
OPTIONS_RADIO_XVNC= REALVNC TIGERVNC TIGHTVNC TRIDIAVNC
|
|
|
|
REALVNC_DESC= Use RealVNC
|
|
|
|
TIGERVNC_DESC= Use TigerVNC (recommended)
|
|
|
|
TIGHTVNC_DESC= Use TightVNC
|
|
|
|
TRIDIAVNC_DESC= Use TridiaVNC
|
2012-08-06 11:55:56 +00:00
|
|
|
JP106_DESC= Install Japanese JP106 keymap
|
2010-11-10 16:29:36 +00:00
|
|
|
|
2011-04-27 09:29:03 +00:00
|
|
|
.include <bsd.port.options.mk>
|
2010-02-16 15:12:20 +00:00
|
|
|
|
2013-06-20 03:56:14 +00:00
|
|
|
# Which Xserver to use
|
|
|
|
.if ${PORT_OPTIONS:MREALVNC}
|
|
|
|
RUN_DEPENDS= Xvnc:${PORTSDIR}/net/vnc
|
|
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MTIGERVNC}
|
|
|
|
RUN_DEPENDS= Xvnc:${PORTSDIR}/net/tigervnc
|
|
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MTIGHTVNC}
|
|
|
|
RUN_DEPENDS= Xvnc:${PORTSDIR}/net/tightvnc
|
|
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MTRIDIAVNC}
|
|
|
|
RUN_DEPENDS= Xvnc:${PORTSDIR}/net/tridiavnc
|
|
|
|
.endif
|
|
|
|
|
2012-08-06 11:55:56 +00:00
|
|
|
.if ${PORT_OPTIONS:MDEBUG}
|
2012-10-06 01:25:46 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-xrdpdebug
|
2007-05-04 01:12:47 +00:00
|
|
|
CFLAGS+= -DXRDP_DEBUG
|
|
|
|
.endif
|
|
|
|
|
2012-08-06 11:55:56 +00:00
|
|
|
.if ${PORT_OPTIONS:MJP106}
|
2013-11-15 01:26:42 +00:00
|
|
|
KEYMAP_FILES+= km-0411.ini km-e0010411.ini \
|
|
|
|
km-e0200411.ini km-e0210411.ini
|
2011-04-27 09:29:03 +00:00
|
|
|
PLIST_SUB+= JP106=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= JP106="@comment "
|
|
|
|
.endif
|
|
|
|
|
2007-05-04 01:12:47 +00:00
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
|
|
|
post-patch:
|
2010-10-05 19:57:56 +00:00
|
|
|
.for f in sesman/sesman.ini sesman/startwm.sh xrdp/rsakeys.ini xrdp/xrdp.ini
|
|
|
|
@${MV} ${WRKSRC}/$f ${WRKSRC}/$f.sample
|
|
|
|
.endfor
|
2010-02-16 15:12:20 +00:00
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
@cd ${WRKSRC} && ./bootstrap
|
2007-05-04 01:12:47 +00:00
|
|
|
|
|
|
|
post-install:
|
2013-06-20 03:56:14 +00:00
|
|
|
.for f in sesman.ini startwm.sh xrdp.ini
|
2013-10-22 13:09:10 +00:00
|
|
|
@if [ ! -f ${STAGEDIR}${PREFIX}/etc/xrdp/$f ]; then \
|
|
|
|
${CP} -p ${STAGEDIR}${PREFIX}/etc/xrdp/$f.sample ${STAGEDIR}${PREFIX}/etc/xrdp/$f ; \
|
2010-02-16 15:12:20 +00:00
|
|
|
fi
|
2010-10-05 19:57:56 +00:00
|
|
|
.endfor
|
2013-11-15 01:26:42 +00:00
|
|
|
.for f in ${KEYMAP_FILES}
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/$f ${STAGEDIR}${PREFIX}/etc/xrdp
|
|
|
|
.endfor
|
2007-05-04 01:12:47 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|