From owner-freebsd-ports@FreeBSD.ORG Mon Feb 23 15:33:39 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7F67D16A4CE; Mon, 23 Feb 2004 15:33:39 -0800 (PST) Received: from geekpunk.net (unknown [160.129.138.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id 412AB43D1D; Mon, 23 Feb 2004 15:33:39 -0800 (PST) (envelope-from bandix@geekpunk.net) Received: from localhost.my.domain (taran [127.0.0.1]) by geekpunk.net (8.12.8p1/8.12.6) with ESMTP id i1NNXbe4006581; Mon, 23 Feb 2004 17:33:37 -0600 (CST) (envelope-from bandix@geekpunk.net) Received: (from bandix@localhost) by localhost.my.domain (8.12.8p1/8.12.8/Submit) id i1NNXbKR006580; Mon, 23 Feb 2004 17:33:37 -0600 (CST) Date: Mon, 23 Feb 2004 17:33:37 -0600 From: "Brandon D. Valentine" To: freebsd-ports@freebsd.org, portmgr@freebsd.org Message-ID: <20040223233336.GI383@geekpunk.net> References: <20040223211817.GA53330@mossy.its.rndex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040223211817.GA53330@mossy.its.rndex.ru> User-Agent: Mutt/1.4.1i Subject: Re: Global ports customization X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Feb 2004 23:33:39 -0000 On Tue, Feb 24, 2004 at 12:18:17AM +0300, Rodion Novoselov wrote: > > I'm used to putting down customization things for ports into > /etc/make.conf file. However, I consider it to be a pretty wrong place > because /etc/make.conf is included implicitly every time make runs no > matter whether I build a port or something else. I think you fail to understand and appreciate that you are using UNIX. TMTOWTDI. ;-) 1) Wrap your make.conf entries in a conditional: .if defined(PORTSDIR) WITH_MY_OPTIONS=YES .endif 2) Use portupgrade and put your customizations in ${PREFIX}/etc/pkgtools.conf in the MAKE_ARGS section. 3) Submit updates to all of your favorite ports to add support for the new config target and OPTIONS magic. Brandon D. Valentine -- brandon@dvalentine.com http://www.geekpunk.net Pseudo-Random Googlism: winter is subdued at length / spring