make.conf options and poudriere

Victor Sudakov sudakov+freebsd at sibptus.tomsk.ru
Fri Jan 20 15:30:18 UTC 2017


Matthew Seaman wrote:
> On 2017/01/20 12:47, sudakov+freebsd at sibptus.tomsk.ru wrote:
> > The question is not about this particular option but in fact any arbitrary
> > Makefile variable. Maybe FLOW_CAPTURE_SPOOL= just for example.
> > 
> > How do I redefine or unset such variables depending on the port,
> > without actually editing the port's Makefile itself? I would prefer to
> > do it from /usr/local/etc/poudriere.d/foo-bar-make.conf
> 
> Ah -- then you need to set variables conditionally on what the current
> working directory is.
> 
> .if $(.CURDIR:M*/net-mgmt/flow-tools)
> FLOW_CAPTURE_SPOOL= something
> .endif

And to unset the variable altogether?

> 
> You may need to use ?= rather than = for the assignment.  Unfortunately
> this cannot be guaranteed to work, but mostly it does.

I thought there was a FreeBSD ports specific mechanism, but there
seems to be none. Generic makefile syntax should be used. Thank you for
clarification.



-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
AS43859


More information about the freebsd-hackers mailing list