aboutsummaryrefslogtreecommitdiffstats
path: root/net/rdesktop
diff options
context:
space:
mode:
authordwcjr <dwcjr@FreeBSD.org>2002-04-04 02:06:08 +0800
committerdwcjr <dwcjr@FreeBSD.org>2002-04-04 02:06:08 +0800
commit0883b140ad6fca0e7fbc5e82d542d415fec864d5 (patch)
tree0aa81743deb930746ed42a04d5a7c389dd8f61ed /net/rdesktop
parent307e105f6e826fa3a78e72cd638e498faebe0adb (diff)
downloadfreebsd-ports-gnome-0883b140ad6fca0e7fbc5e82d542d415fec864d5.tar.gz
freebsd-ports-gnome-0883b140ad6fca0e7fbc5e82d542d415fec864d5.tar.zst
freebsd-ports-gnome-0883b140ad6fca0e7fbc5e82d542d415fec864d5.zip
Fix LDFLAG to for libgmp depend
Submitted by: maintainer
Diffstat (limited to 'net/rdesktop')
-rw-r--r--net/rdesktop/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/rdesktop/Makefile b/net/rdesktop/Makefile
index 09b5edda21d3..99f0bb63f55d 100644
--- a/net/rdesktop/Makefile
+++ b/net/rdesktop/Makefile
@@ -35,8 +35,10 @@ LIB_DEPENDS= gmp.4:${PORTSDIR}/math/libgmp3
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' \
+.if ${OSVERSION} > 500023
+ @${PERL} -pi.orig -e 's:-O2.*-Wall:${CFLAGS} -I${LOCALBASE}/include:g' \
+ ${WRKSRC}/Makefile
+ @${PERL} -pi.orig -e 's:-lgmp:-L${LOCALBASE}/lib -lgmp:g' \
${WRKSRC}/Makefile
.else
@${PERL} -pi.orig -e 's:-O2.*-Wall:${CFLAGS}:g' ${WRKSRC}/Makefile