make.conf options and poudriere

Matthew Seaman matthew at FreeBSD.org
Fri Jan 20 14:03:31 UTC 2017


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

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

	Cheers,

	Matthew

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 972 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20170120/e28466a5/attachment.sig>


More information about the freebsd-hackers mailing list