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: .ifdef(NOPORTDOCS) @${REINPLACE_CMD} -E -e 's/ install-docDATA/ /; s/^(SUBDIRS.+)doc/\1/' \ ${WRKSRC}/Makefile.in @${REINPLACE_CMD} -E -e 's/([^n])install-examplesDATA/\1/' \ ${WRKSRC}/tools/Makefile.in .endif 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. G'luck, Peter -- Peter Pentchev r...@ringlet.net r...@space.bg r...@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?
pgpn3xqcd84du.pgp
Description: PGP signature