From e0ee15c1f515396d2573e080af8217b49513c4ba Mon Sep 17 00:00:00 2001 From: "David W. Chapman Jr." Date: Wed, 3 Apr 2002 18:06:08 +0000 Subject: Fix LDFLAG to for libgmp depend Submitted by: maintainer --- net/rdesktop/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'net/rdesktop') 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 -- cgit v1.2.3