From owner-freebsd-ports@FreeBSD.ORG Sun Jun 22 13:03:07 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 4B208DB0 for ; Sun, 22 Jun 2014 13:03:07 +0000 (UTC) Received: from nskntmtas05p.mx.bigpond.com (nskntmtas05p.mx.bigpond.com [61.9.168.149]) by mx1.freebsd.org (Postfix) with ESMTP id D8F292466 for ; Sun, 22 Jun 2014 13:03:06 +0000 (UTC) Received: from nskntcmgw05p ([61.9.169.165]) by nskntmtas05p.mx.bigpond.com with ESMTP id <20140622130259.JEX19653.nskntmtas05p.mx.bigpond.com@nskntcmgw05p> for ; Sun, 22 Jun 2014 13:02:59 +0000 Received: from hermes.heuristicsystems.com.au ([121.210.107.100]) by nskntcmgw05p with BigPond Outbound id HR2y1o00429zwdD01R2yzK; Sun, 22 Jun 2014 13:02:59 +0000 X-Authority-Analysis: v=2.0 cv=W5W6pGqk c=1 sm=1 a=SEJ2iDwVkb98DYvesvueMw==:17 a=JipEcVzqA9wA:10 a=LBk-feslwm8A:10 a=8nJEP1OIZ-IA:10 a=GHIR_BbyAAAA:8 a=6I5d2MoRAAAA:8 a=1fkWyFJUZbihh1mGVvcA:9 a=wPNLvfGTeEIA:10 a=SV7veod9ZcQA:10 a=SEJ2iDwVkb98DYvesvueMw==:117 Received: from [10.0.5.3] (ewsw01.hs [10.0.5.3]) (authenticated bits=0) by hermes.heuristicsystems.com.au (8.14.5/8.13.6) with ESMTP id s5MD2IY3021755 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Sun, 22 Jun 2014 23:02:19 +1000 (EST) (envelope-from dewayne.geraghty@heuristicsystems.com.au) Message-ID: <53A6D3DA.1080705@heuristicsystems.com.au> Date: Sun, 22 Jun 2014 23:02:18 +1000 From: Dewayne Geraghty User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.3.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> <53A6A4A2.7090009@freebsd.org> In-Reply-To: <53A6A4A2.7090009@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1 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 13:03:07 -0000 On 22/06/2014 7:40 PM, Alfred Perlstein wrote: > > 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" >> > > _______________________________________________ > 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" > > Simplest way would be to install ports-mgmt/portconf. The installation appends what's needed to /etc/make.conf Then you need to add to /usr/local/etc/ports.conf to enable what you require the port to do. Something like: databases/mariadb55-client: mariadb_UNSET=MAXKEY X11 GNOMEVFS lang/perl*: OPTIONS_SET=THREADS PERL_64BITINT lang/php5: php5_UNSET=DEBUG MULTIBYTE X11 GNOMEVFS | php5_SET=APACHE SUHOSIN should give you a sense of what you can do. The above is an extract from a script that was used during the transition from WITH_|WITHOUT_ to OPTIONS_SET|OPTIONS_UNSET and ${UNIQUENAME}_SET${UNIQUENAME}_UNSET, but it should serve to give you a clue as to how to make tweaking your ports a lot easier. Then when you want to make a port just make -DBATCH this avoids the dialogue and provides consistency when building a lot of ports across different machines &/or platforms. It also saves cluttering your make.conf. Regards, Dewayne.