1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-13 03:03:15 +00:00
freebsd-ports/net/xrdp/Makefile
Alejandro Pulver 15e52bb6c0 - Update to version 0.4.0.
- Remove "xrdp_" prefix previously added to binaries, since there are no
  conflicts.

Reported by:	portscout
2007-09-10 04:12:37 +00:00

53 lines
1.4 KiB
Makefile

# New ports collection makefile for: xrdp
# Date created: 2007-02-19
# Whom: alepulver
#
# $FreeBSD$
#
PORTNAME= xrdp
PORTVERSION= 0.4.0
CATEGORIES= net
MASTER_SITES= SF
MAINTAINER= alepulver@FreeBSD.org
COMMENT= An open source Remote Desktop Protocol (RDP) server
USE_RC_SUBR= xrdp
.if defined(WITH_DEBUG)
CFLAGS+= -DXRDP_DEBUG
.endif
MAN5= sesman.ini.5 xrdp.ini.5
MAN8= sesman.8 sesrun.8 xrdp.8
SUB_FILES= pkg-message
post-patch:
@${FIND} ${WRKSRC} -type f -name Makefile | \
${XARGS} ${REINPLACE_CMD} -e \
's|/usr/local/xrdp|${PREFIX}/lib/${PORTNAME}|; \
s|/etc/xrdp|${PREFIX}/etc/${PORTNAME}|; \
s|/usr/local/man|${MANPREFIX}/man|; \
s|/usr/doc/xrdp|${DOCSDIR}|; \
s|CFLAGS =|CFLAGS +=|; s|gcc|${CC}|; s|-ldl||'
@${REINPLACE_CMD} -e \
's|startwm\.sh|${PREFIX}/lib/${PORTNAME}/&|; \
s|\./sesman\.log|/var/log/sesman.log|' \
${WRKSRC}/sesman/sesman.ini
@${REINPLACE_CMD} -e 's|Tahoma-10\.fv1|${PREFIX}/lib/${PORTNAME}/&|' \
${WRKSRC}/xrdp/xrdp_font.c
@${REINPLACE_CMD} -Ee \
's,(xrdp|ad)256\.bmp,${PREFIX}/lib/${PORTNAME}/&,' \
${WRKSRC}/xrdp/xrdp_login_wnd.c
@${REINPLACE_CMD} -e 's|cursor[01]\.cur|${PREFIX}/lib/${PORTNAME}/&|' \
${WRKSRC}/xrdp/xrdp_wm.c
@${REINPLACE_CMD} -e 's|/etc/pam\.d/sesman|${PREFIX}&|' \
${WRKSRC}/sesman/verify_user_pam.c
post-install:
@${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD}
.include <bsd.port.mk>