Conditionals in pkg-plist
stephen at math.missouri.edu
Mon Mar 16 05:54:38 PDT 2009
Alex Povolotsky wrote:
> 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.
You want to use PLIST_SUB where a variable optionally gets the value
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