Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Mar 2009 07:54:36 -0500
From:      Stephen Montgomery-Smith <stephen@math.missouri.edu>
To:        Alex Povolotsky <tarkhil@webmail.sub.ru>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Conditionals in pkg-plist
Message-ID:  <49BE4C0C.5000703@math.missouri.edu>
In-Reply-To: <49BE398A.8080708@webmail.sub.ru>
References:  <49BE398A.8080708@webmail.sub.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
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).




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49BE4C0C.5000703>