Conditionals in pkg-plist
Stephen Montgomery-Smith
stephen at math.missouri.edu
Mon Mar 16 05:54:38 PDT 2009
Alex Povolotsky wrote:
> Hello!
>
> How do I implement conditional in pkg-plist?
>
> if WITH_STARTTLS is defined, %%PORTDOCS%%%%DOCSDIR%%/README.STARTTLS
> 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
http://www.freebsd.org/doc/en/books/porters-handbook/plist.html#PLIST-SUB).
More information about the freebsd-ports
mailing list