diff options
author | dwcjr <dwcjr@FreeBSD.org> | 2002-04-03 01:11:57 +0800 |
---|---|---|
committer | dwcjr <dwcjr@FreeBSD.org> | 2002-04-03 01:11:57 +0800 |
commit | e18514164b4199b401c241f7949fb1c46dd4fbdd (patch) | |
tree | 048b28353110b353f6573d7edebb53a569572c00 /net | |
parent | 60581e777c94df9ab488f701982ab6c37384d4da (diff) | |
download | freebsd-ports-gnome-e18514164b4199b401c241f7949fb1c46dd4fbdd.tar.gz freebsd-ports-gnome-e18514164b4199b401c241f7949fb1c46dd4fbdd.tar.zst freebsd-ports-gnome-e18514164b4199b401c241f7949fb1c46dd4fbdd.zip |
Fix for -current due to lack of libgmp in base system
PR: 36651
Submitted by: maintainer
Diffstat (limited to 'net')
-rw-r--r-- | net/rdesktop/Makefile | 14 |
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> |