From owner-freebsd-ports@FreeBSD.ORG Sun Jun 22 09:40:02 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9BE573DC for ; Sun, 22 Jun 2014 09:40:02 +0000 (UTC) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 88AE2258F for ; Sun, 22 Jun 2014 09:40:02 +0000 (UTC) Received: from u10-2-32-011.office.norse-data.com (unknown [50.204.88.51]) by elvis.mu.org (Postfix) with ESMTPSA id E0A061A3C1E for ; Sun, 22 Jun 2014 02:40:01 -0700 (PDT) Message-ID: <53A6A4A2.7090009@freebsd.org> Date: Sun, 22 Jun 2014 02:40:50 -0700 From: Alfred Perlstein Organization: FreeBSD User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: freebsd-ports@freebsd.org Subject: Re: Way to make settings in /etc/make.conf effective only for ports References: <20140622.164916.109390522.yasu@utahime.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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:40:02 -0000 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" >