aboutsummaryrefslogtreecommitdiff
path: root/net/rdesktop
diff options
context:
space:
mode:
authorDavid W. Chapman Jr. <dwcjr@FreeBSD.org>2002-04-02 17:11:57 +0000
committerDavid W. Chapman Jr. <dwcjr@FreeBSD.org>2002-04-02 17:11:57 +0000
commit564d6717a31bc01fab4fecb92bb907e04cce0046 (patch)
treeed7629ce8c54f64dfefac2a0f99279c85553f2a4 /net/rdesktop
parentcd3d09458cd805aad1c334fce9998af2164ce555 (diff)
downloadports-564d6717a31bc01fab4fecb92bb907e04cce0046.tar.gz
ports-564d6717a31bc01fab4fecb92bb907e04cce0046.zip
Notes
Diffstat (limited to 'net/rdesktop')
-rw-r--r--net/rdesktop/Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/net/rdesktop/Makefile b/net/rdesktop/Makefile
index c962bd51125a..b44044db34ac 100644
--- a/net/rdesktop/Makefile
+++ b/net/rdesktop/Makefile
@@ -26,14 +26,26 @@ USE_OPENSSL= yes
MAN1= rdesktop.1
ALL_TARGET=
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} >= 500023
+BUILD_DEPENDS= ${PREFIX}/include/gmp.h:${PORTSDIR}/math/libgmp-freebsd
+RUN_DEPENDS= ${PREFIX}/include/gmp.h:${PORTSDIR}/math/libgmp-freebsd
+.endif
+
do-patch:
@${EXTRACT_CMD} -dc ${_DISTDIR}/${PATCHFILES} | \
${PATCH} ${PATCH_DIST_ARGS}
+.if ${OSVERSION} >= 500023
+ @${PERL} -pi.orig -e 's:-O2.*-Wall:${CFLAGS} -I${PREFIX}/include:g' \
+ ${WRKSRC}/Makefile
+.else
@${PERL} -pi.orig -e 's:-O2.*-Wall:${CFLAGS}:g' ${WRKSRC}/Makefile
+.endif
@${PERL} -pi.orig -e 's:/usr/X11R6/:${X11BASE}/:g' ${WRKSRC}/Makefile
@${PERL} -pi.orig -e 's:^PREFIX.*:PREFIX=${PREFIX}:g' ${WRKSRC}/Makefile
@${PERL} -pi.orig -e 's:^install.*:install\: rdesktop:g' ${WRKSRC}/Makefile
@${PERL} -pi.orig -e 's:^.*\(INSTALL\) rdp-srvr.*::g' ${WRKSRC}/Makefile
@${PERL} -pi.orig -e 's:<endian.h>:<machine/endian.h>:g' ${WRKSRC}/rdesktop.h
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>