From owner-freebsd-ports@FreeBSD.ORG Sun Jun 22 09:20:10 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D1FE9B4E for ; Sun, 22 Jun 2014 09:20:10 +0000 (UTC) Received: from fire.magemana.nl (magemana.nl [IPv6:2a01:7c8:aaae:25e::1]) by mx1.freebsd.org (Postfix) with ESMTP id 9AE062408 for ; Sun, 22 Jun 2014 09:20:10 +0000 (UTC) Received: by fire.magemana.nl (Postfix, from userid 1003) id 15AE54AB4BF; Sun, 22 Jun 2014 11:20:10 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by fire.magemana.nl (Postfix) with ESMTP id 12A104AB4BB; Sun, 22 Jun 2014 11:20:10 +0200 (CEST) Date: Sun, 22 Jun 2014 11:20:10 +0200 (CEST) From: Melvyn Sopacua To: Yasuhiro KIMURA Subject: Re: Way to make settings in /etc/make.conf effective only for ports In-Reply-To: <20140622.164916.109390522.yasu@utahime.org> Message-ID: References: <20140622.164916.109390522.yasu@utahime.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Jun 2014 09:20:10 -0000 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