Date: Tue, 01 Apr 2003 21:28:17 -0800 From: Andy Sparrow <spadger@best.com> To: Roger Merritt <mcrogerm@stjohn.ac.th> Cc: freebsd-ports@freebsd.org Subject: Re: Setting make options permanently (WITHOUT_GNOME, etc) Message-ID: <20030402052817.EA3D69E@CRWdog.demon.co.uk> In-Reply-To: Message from Roger Merritt <mcrogerm@stjohn.ac.th> <5.2.0.9.0.20030402094202.00a0b9c0@127.0.0.1>
next in thread | previous in thread | raw e-mail | index | archive | help
> > > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030402052817.EA3D69E>