Date: Wed, 02 Apr 2003 13:57:53 +0700 From: Roger Merritt <mcrogerm@stjohn.ac.th> To: Andy Sparrow <spadger@best.com> Cc: freebsd-ports@freebsd.org Subject: Re: Setting make options permanently (WITHOUT_GNOME, etc) Message-ID: <5.2.0.9.0.20030402135505.00a10ec0@127.0.0.1> In-Reply-To: <20030402052817.EA3D69E@CRWdog.demon.co.uk> References: <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
At 12:28 PM 4/2/03, Andy Sparrow wrote: > > > > 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). Interesting. What happens when you upgrade? I don't think Mergemaster looks at anything but /etc. Does the Makefile.local file ever get overwritten? Or when cvsupping? I confess I'm not that happy with using pkgtools.conf. -- Roger
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.2.0.9.0.20030402135505.00a10ec0>