summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-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