Peter Pentchev roam at ringlet.net
Thu Jun 25 15:17:00 UTC 2009

On Thu, Jun 25, 2009 at 09:40:42AM -0500, Kirk Strauser wrote:
> Is there a standard way to write ports which use GNU_CONFIGURE to follow 
> NOPORTDOCS?  Ideally it'd be something as simple as setting --docdir=NULL or 
> similar, and even more ideally by having bsd.port.mk taking care of that. :-)

Not really.  What I usually do is have a post-patch: target that
does a REINPLACE_CMD on all the Makefile.in's found in the port's
directpry and just removes the "install-doc" target; something like:

	@${REINPLACE_CMD} -E -e 's/ install-docDATA/ /; s/^(SUBDIRS.+)doc/\1/' \
	@${REINPLACE_CMD} -E -e 's/([^n])install-examplesDATA/\1/' \

This is taken from the security/stunnel port; you may need to fit it
for your specific port's needs, or, if there are many Makefile.in files,
use ${FIND} | ${XARGS} to process them all at once.


Peter Pentchev	roam at ringlet.net    roam at space.bg    roam at FreeBSD.org
PGP key:	http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint	FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
Hey, out there - is it *you* reading me, or is it someone else?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20090625/e168e1b5/attachment.pgp

More information about the freebsd-ports mailing list