2001-06-04 22:07:54 -04:00
|
|
|
# New ports collection makefile for: rdesktop
|
|
|
|
# Date created: 13 December 2000
|
|
|
|
# Whom: mwest@uct.ac.za
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= rdesktop
|
2001-12-16 22:43:00 -05:00
|
|
|
PORTVERSION= 1.0.0.p19.7.6
|
2002-04-29 22:13:49 -04:00
|
|
|
PORTREVISION= 1
|
2001-06-04 22:07:54 -04:00
|
|
|
CATEGORIES= net comms
|
|
|
|
MASTER_SITES= http://bibl4.oru.se/projects/rdesktop/dist/releases/
|
|
|
|
DISTNAME= rdesktop-1.0.0
|
|
|
|
|
2001-08-18 19:24:24 -04:00
|
|
|
PATCH_SITES= http://bibl4.oru.se/projects/rdesktop/ \
|
|
|
|
http://bibl4.oru.se/projects/rdesktop/patch19/
|
2001-12-16 22:43:00 -05:00
|
|
|
PATCHFILES= rdesktop-unified-patch19-7-6.bz2
|
2001-06-04 22:07:54 -04:00
|
|
|
PATCH_DIST_STRIP= -p2
|
|
|
|
|
|
|
|
MAINTAINER= chris@aims.com.au
|
|
|
|
|
|
|
|
USE_XLIB= yes
|
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_OPENSSL= yes
|
2002-06-29 21:47:07 -04:00
|
|
|
USE_REINPLACE= yes
|
2001-06-04 22:07:54 -04:00
|
|
|
|
|
|
|
MAN1= rdesktop.1
|
|
|
|
ALL_TARGET=
|
|
|
|
|
2002-04-02 12:11:57 -05:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2002-04-02 17:41:38 -05:00
|
|
|
.if ${OSVERSION} > 500023
|
2002-06-29 21:47:07 -04:00
|
|
|
LIB_DEPENDS= gmp.6:${PORTSDIR}/math/libgmp4
|
2002-04-02 12:11:57 -05:00
|
|
|
.endif
|
|
|
|
|
2001-06-04 22:07:54 -04:00
|
|
|
do-patch:
|
|
|
|
@${EXTRACT_CMD} -dc ${_DISTDIR}/${PATCHFILES} | \
|
|
|
|
${PATCH} ${PATCH_DIST_ARGS}
|
2002-04-03 13:06:08 -05:00
|
|
|
.if ${OSVERSION} > 500023
|
2002-06-29 21:47:07 -04:00
|
|
|
@${REINPLACE_CMD} -e 's:-O2.*-Wall:${CFLAGS} -I${LOCALBASE}/include:g' \
|
2002-04-03 13:06:08 -05:00
|
|
|
${WRKSRC}/Makefile
|
2002-06-29 21:47:07 -04:00
|
|
|
@${REINPLACE_CMD} -e 's:-lgmp:-L${LOCALBASE}/lib -lgmp:g' \
|
2002-04-02 12:11:57 -05:00
|
|
|
${WRKSRC}/Makefile
|
|
|
|
.else
|
2002-06-29 21:47:07 -04:00
|
|
|
@${REINPLACE_CMD} -e 's:-O2.*-Wall:${CFLAGS}:g' ${WRKSRC}/Makefile
|
2002-04-02 12:11:57 -05:00
|
|
|
.endif
|
2002-06-29 21:47:07 -04:00
|
|
|
@${REINPLACE_CMD} -e 's:/usr/X11R6/:${X11BASE}/:g' ${WRKSRC}/Makefile
|
|
|
|
@${REINPLACE_CMD} -e 's:^PREFIX.*:PREFIX=${PREFIX}:g' ${WRKSRC}/Makefile
|
|
|
|
@${REINPLACE_CMD} -e 's:^install.*:install\: rdesktop:g' \
|
|
|
|
${WRKSRC}/Makefile
|
2002-07-31 18:11:54 -04:00
|
|
|
@${REINPLACE_CMD} -e 's:^.*(INSTALL) rdp-srvr.*::g' ${WRKSRC}/Makefile
|
2002-06-29 21:47:07 -04:00
|
|
|
@${REINPLACE_CMD} -e 's:<endian.h>:<machine/endian.h>:g' \
|
|
|
|
${WRKSRC}/rdesktop.h
|
2001-06-04 22:07:54 -04:00
|
|
|
|
2002-04-02 12:11:57 -05:00
|
|
|
.include <bsd.port.post.mk>
|