Generating packages without documentation

Ion-Mihai Tetcu itetcu at
Mon Feb 9 15:55:37 PST 2009

On Mon, 09 Feb 2009 21:46:12 +0100
Matias Surdi <matiassurdi at> wrote:

> Hi,
> When I build a package with "make package" for a port, the resulting 
> package contains also the docs (which upon installation are located
> in /usr/local/share/doc/[package]
> Which is the best way to exclude those files in the generated package?

make clean && make -DNOPORTDOCS package clean

Companions of this are NOPORTEXAMPLES and NOPORTDATA.

You might want to check on
if the the ports you want to build packages for really respect NOPORTDOCS.
Of course, patches for ports that don't conform are welcome (CC me on
the PR and I'll commit them).

IOnut - Un^d^dregistered ;) FreeBSD "user"
  "Intellectual Property" is   nowhere near as valuable   as "Intellect"
FreeBSD committer -> itetcu at, PGP Key ID 057E9F8B493A297B
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url :

More information about the freebsd-ports mailing list