Date: Mon, 25 Dec 2006 20:35:36 +0100 From: Gabor Kovesdan <gabor@FreeBSD.org> To: Aaron Dalton <aaron@daltons.ca> Cc: FreeBSD Ports <ports@freebsd.org> Subject: Re: NOPORTDOCS question Message-ID: <45902808.9060700@FreeBSD.org> In-Reply-To: <45901A0E.1090005@daltons.ca> References: <45901A0E.1090005@daltons.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
Aaron Dalton schrieb: > I've been away for a number of months and after grepping the ports tree > for a while, I have decided that there must have been some change to the > way NOPORTDOCS is handled. Could somebody point me to a port, or post > an example, of the "correct" way to now handle port docs and NOPORTDOCS > in the Makefile and plist? > > Thanks for your time. > There are two kinds of NOPORTDOCS use. 1, If you don't have a pgk-plist. Look at e.g. archivers/mtf. The files you install into DOCSDIR should be listed in PORTDOCS and it is handled automatically at install-time when the packing list is generated. 2, If you have a pkg-plist. Look at e.g. archivers/xdms. In pkg-plist you have to put %%PORTDOCS%% before the affected files and it will be replaced with "@comment " if NOPORTDOCS is set and removed if unset at install-time. I think that's all you should know about NOPORTDOCS. Oh, and the installation of those files should be done in the post-install target. And don't forget to use ${MKDIR} ${DOCSDIR}. ${MKDIR} is actually set to mkdir -p, so it will create the directories recursively if don't exist. Cheers, Gabor
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45902808.9060700>