On Mon, 11 Jun 2012, Baptiste Daroussin wrote:
The logic has probably gotten twisted around, and it's been long enough
since I did this that I don't recall the situation. I think it was just
to prevent the options screen from appearing if NOPORTDOCS and
NOPORTEXAMPLES were set.
I don't see a way to do that without using the old versions of those
variables. The new ones have not been set until after
bsd.port.options.mk is included, and by then the dialog has been shown.
Do not put OPTIONS_DEFINE and you won't get a dialog UI but still can test
PORT_OPTIONS:MEXAMPLES and PORT_OPTIONS:MDOCS
The original:
.if !defined(NOPORTDOCS)
OPTIONS+= REFDOCS "Install the reference documents" on
.endif
.if !defined(NOPORTEXAMPLES)
OPTIONS+= EXAMPLES "Install the example code" on
.endif
.include <bsd.port.options.mk>
So if the user has set NOPORTDOCS in make.conf, that option does not
appear in the dialog. Likewise with NOPORTEXAMPLES, and if both are
set, the dialog does not appear at all.
If either docs or examples are allowed, the user gets the chance to turn
them off for this port.
_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"