From owner-freebsd-ports@FreeBSD.ORG Tue Apr 1 21:28:56 2003 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 9249037B401 for ; Tue, 1 Apr 2003 21:28:56 -0800 (PST) Received: from CRWdog.demon.co.uk (12-228-200-39.client.attbi.com [12.228.200.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id D923443F75 for ; Tue, 1 Apr 2003 21:28:55 -0800 (PST) (envelope-from spadger@best.com) Received: from localhost (localhost [127.0.0.1]) by CRWdog.demon.co.uk (Postfix) with ESMTP id EA3D69E; Tue, 1 Apr 2003 21:28:17 -0800 (PST) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Roger Merritt In-Reply-To: Message from Roger Merritt <5.2.0.9.0.20030402094202.00a0b9c0@127.0.0.1> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 01 Apr 2003 21:28:17 -0800 From: Andy Sparrow Message-Id: <20030402052817.EA3D69E@CRWdog.demon.co.uk> cc: freebsd-ports@freebsd.org Subject: Re: Setting make options permanently (WITHOUT_GNOME, etc) 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: Wed, 02 Apr 2003 05:28:56 -0000 > > > I've been wondering whether it is possible to make make (pardon the > > > wording) always use specific options. For example, I see that many ports > > > allow the user to set WITHOUT_GNOME or WITHOUT_X prior to building the > > > port. > >Add them to /etc/make.conf > > Another good way is to set them in /usr/local/etc/pkgtools.conf, if you use > 'portupgrade'. That way you can set them for only the ports they apply to. Another way is to set the options on a per-port basis in 'Makefile.local' in the ports directory. This is then read in automagically by the ports makefiles. I happen to like this approach, as it keeps per-port options local to the port, which I find a convenient place to save it after you've scraped the options you want out of the Makefile itself. It also allows you to build some ports with different options without having to set them globally (e.g. in make.conf). It also doesn't clutter up pkgtools.conf (which I edit so infrequently I can never remember what its called or where it lives). I find the individual port directory the most intuitive and logical place to look for local port-specific option settings, and it doesn't require you to install 'portupgrade' (which is, actually, very good - I use it almost exclusively). HTH. AS