Date: Sun, 22 Jun 2014 02:40:50 -0700 From: Alfred Perlstein <alfred@freebsd.org> To: freebsd-ports@freebsd.org Subject: Re: Way to make settings in /etc/make.conf effective only for ports Message-ID: <53A6A4A2.7090009@freebsd.org> In-Reply-To: <alpine.BSF.2.00.1406221114310.22555@fire.magemana.nl> References: <20140622.164916.109390522.yasu@utahime.org> <alpine.BSF.2.00.1406221114310.22555@fire.magemana.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
On 6/22/14, 2:20 AM, Melvyn Sopacua wrote: > 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 What about using a check for ../../Mk/bsd.ports.mk or ../Mk/bsd.ports.mk ? > > 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 > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53A6A4A2.7090009>