Conditionals in pkg-plist

Stephen Montgomery-Smith stephen at
Mon Mar 16 05:54:38 PDT 2009

Alex Povolotsky wrote:
> Hello!
> How do I implement conditional in pkg-plist?
> should be added to package list.
> I haven't found approporate instructions in porter's handbook.
> Alex.

You want to use PLIST_SUB where a variable optionally gets the value 
"@comment ".

There are many examples in the ports.  For example, math/oleo - see how 
it handles the NLS option.

(A paragraph about this would make a good addition to

More information about the freebsd-ports mailing list