WRKDIRPREFIXPORTSDIR?

meta meta at vmeta.jp
Sun Feb 10 18:26:05 UTC 2013


Thanks for the detailed introduction.
It works!

On Sat, Feb 09, 2013 at 09:39:53PM +0000, Matthew Seaman wrote:
> On 09/02/2013 18:37, meta wrote:
> > Porter's handbook section 12.3 mentions WRKDIREPREFIXPORTSDIR,
> > but I can't find it anywhere.
> > 
> > $ grep WRKDIRPREFIXPORTSDIR /usr/ports/Mk/*
> >   -> not found
> > $ find /usr/ports -name Makefile -depth 3 | xargs grep WRKDIRPREFIXPORTSDIR
> >   -> not found
> > 
> > Is it obsolete and has it disappeared? What's the alternative?
> 
> That looks like a flaw in the way the Porter's Handbook is converted
> into HTML.
> 
> There isn't a variable 'WRKDIRPREFIXPORTSDIR' [*] as the PH apparently
> claims there is.  Instead there are two variables:
> 
>      ${WRKDIRPREFIX}
>      ${PORTSDIR}
> 
> So: taking the www/apache22 port as an example, and setting WRKDIRPREFIX
> to a distinct value as it's usually empty, we see:
> 
> % cd /usr/ports/www/apache22
> % setenv WRKDIRPREFIX /usr/obj
> % make -V WRKDIRPREFIX
> /usr/obj
> % make -V PORTSDIR
> /usr/ports
> % make -V WRKDIR
> /usr/obj/usr/ports/www/apache22/work
> 
> So you can see that ${WRKDIR} is composed as:
> 
> ${WRKDIRPREFIX}${PORTSDIR}/www/apache22/work
> 
> All the $-signs and other punctuation seems to have gone missing from
> that section in the PH.
> 
> 	Cheers,
> 
> 	Matthew
> 
> [*] Nor indeed WRKDIREPREFIXPORTSDIR, but that was probably a typo.
> 
> -- 
> Dr Matthew J Seaman MA, D.Phil.
> 
> PGP: http://www.infracaninophile.co.uk/pgpkey
> JID: matthew at infracaninophile.co.uk
> 



-- 
`whois vmeta.jp | nkf -w`
meta <meta at vmeta.jp>


More information about the freebsd-ports mailing list