Date: Thu, 11 Feb 1999 12:46:35 +0200 From: Sheldon Hearn <axl@iafrica.com> To: ports@FreeBSD.ORG Subject: Re: Side-effects of changing WRKDIR in bsd.port.mk? Message-ID: <13664.918729995@axl.noc.iafrica.com> In-Reply-To: Your message of "Thu, 11 Feb 1999 12:08:33 %2B0200." <4467.918727713@axl.noc.iafrica.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 11 Feb 1999 12:08:33 +0200, Sheldon Hearn wrote: > Can anyone think of any nasty side-effects of using the following patch > to effect this change? Hmmm, having given this a little more thought, I suspect the following diff might actually be useful to others: Index: bsd.port.mk =================================================================== RCS file: /home/ncvs/ports/Mk/bsd.port.mk,v retrieving revision 1.304 diff -u -d -r1.304 bsd.port.mk --- bsd.port.mk 1999/02/03 11:06:19 1.304 +++ bsd.port.mk 1999/02/11 10:43:43 @@ -526,7 +526,12 @@ # Start of post-makefile section. .if !defined(BEFOREPORTMK) -WRKDIR?= ${WRKDIRPREFIX}${.CURDIR}/work +.if defined(WRKDIRPREFIX) +WRKDIR?= \ + ${WRKDIRPREFIX}/`echo ${.CURDIR}|sed -e 's,^${PORTSDIR}/*,,'`/work +.else +WRKDIR?= ${.CURDIR}/work +.endif .if defined(NO_WRKSUBDIR) WRKSRC?= ${WRKDIR} .else If anyone has the horse-power to test this out with a package run on a box that has WRKDIRPREFIX defined and different from /usr/ports, feedback would be great. Ciao, Sheldon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?13664.918729995>