Date: Sat, 24 Mar 2012 00:49:13 +0100 From: Mel Flynn <rflynn@acsalaska.net> To: Michael Scheidell <scheidell@freebsd.org> Cc: Chris Rees <crees@FreeBSD.org>, freebsd-ports@freebsd.org Subject: Re: How useful is %%DATADIR%%, anyway? Message-ID: <4F6D0BF9.2090700@acsalaska.net> In-Reply-To: <4F6D07C0.5040602@freebsd.org> References: <CADLo839cUtxHJNqYQtvaFSp9Jjg21Hsn0U7xiOS9JuGmkhETmg@mail.gmail.com> <4F6CE755.8020502@FreeBSD.org> <CADLo83_d=iKCobid_HoD7OT5bZAGvaKJxThjxm%2B2Xw%2BMcyGqvA@mail.gmail.com> <4F6D07C0.5040602@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 3/24/2012 00:31, Michael Scheidell wrote: > > > On 3/23/12 6:27 PM, Chris Rees wrote: >> Almost. PORTDOCS=* in the Makefile basically uses find on ${DOCSDIR} >> and sticks it into TMPPLIST. The advantage is that we then have one >> line in the Makefile instead of up to 2000 in pkg-plist. > > thats frekeing magic.. how did it find the source in $WRKDIR/specs? It doesn't. It looks at ${DOCSDIR}. See add-plist-docs target in Mk/bsd.port.mk. As such the requirement for this to work, is that docs are installed in ${DOCSDIR}. If a port has a valid reason to not install documentation into ${PREFIX}/share/doc/${PORTNAME} then DOCSDIR should be set in the port's Makefile. Same applies to PORTDATA and PORTEXAMPLES and their respective DATADIR and EXAMPLESDIR. I think even more space can be saved if a PORTWWW is introduced, though PORTWWW=* should be used more carefully as WWWDIR can be dynamic. -- Mel
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F6D0BF9.2090700>