> On 24 May, 2017, at 21:52, Thomas Mueller <[email protected]> wrote:
> 
> Where do I find documentation so I get the correct syntax for setting ports 
> options in /etc/make.conf ?
> 
> I tried "man ports", "man make", "man make.conf", and the online Porters' 
> Handbook but have been unable to find the needle in the haystack.
> 
> NetBSD pkgsrc and Gentoo (Linux) portage document this much better.
> 
> 
> Tom

You'll find some info in the instructions at the top of 
/usr/ports/Mk/bsd.options.mk; there's not a lot of info because it's not 
generally the preferred place to specify options.

To turn something off by default on all ports (which can always be overridden 
by make config),
OPTIONS_UNSET=  NLS

To turn something off which overrides make config,
OPTIONS_UNSET_FORCE=    NLS

You can set options for individual ports in make.conf too, though it's almost 
always a better idea to run 'make config' or 'poudriere options':
/usr/ports/editors/vim$ make -V OPTIONS_NAME
editors_vim

make.conf:
editors_vim_UNSET=      NLS

# Adam


-- 
Adam Weinberger
[email protected]
https://www.adamw.org

_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[email protected]"

Reply via email to