Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Jan 2017 22:30:12 +0700
From:      Victor Sudakov <sudakov+freebsd@sibptus.tomsk.ru>
To:        freebsd-hackers@freebsd.org
Subject:   Re: make.conf options and poudriere
Message-ID:  <20170120153012.GA77842@admin.sibptus.transneft.ru>
In-Reply-To: <554f6171-cb2e-596b-595c-9cde36cf3f6f@FreeBSD.org>
References:  <20170120095008.GA75122@admin.sibptus.transneft.ru> <1a270201-74ff-0e9b-7eb6-0af7c9846a12@FreeBSD.org> <20170120124731.GA75275@admin.sibptus.transneft.ru> <554f6171-cb2e-596b-595c-9cde36cf3f6f@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Matthew Seaman wrote:
> On 2017/01/20 12:47, sudakov+freebsd@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



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