Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Jun 2014 11:20:10 +0200 (CEST)
From:      Melvyn Sopacua <melvyn@magemana.nl>
To:        Yasuhiro KIMURA <yasu@utahime.org>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Way to make settings in /etc/make.conf effective only for ports
Message-ID:  <alpine.BSF.2.00.1406221114310.22555@fire.magemana.nl>
In-Reply-To: <20140622.164916.109390522.yasu@utahime.org>
References:  <20140622.164916.109390522.yasu@utahime.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Yasuhiro,

On Sun, 22 Jun 2014, Yasuhiro KIMURA wrote:

> Recently I found some of settings for ports in /etc/make.conf
> interfere with other software project. So are there any way to make
> settings in /etc/make.conf effective only for ports?

You can wrap those settings in .CURDIR check:
.if !empty(.CURDIR:M/usr/ports/*)
# port settings here
.endif

Alternatively, you can make a different file, say /etc/make.ports.conf
and then build ports with the environment variable __MAKE_CONF set to
it.
--
Melvyn



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