Date: Tue, 31 Jul 2007 15:01:33 -0400 From: John Nielsen <lists@jnielsen.net> To: freebsd-questions@freebsd.org Cc: CyberLeo Kitsana <cyberleo@cyberleo.net> Subject: Re: Custom builds from ports Message-ID: <200707311501.33241.lists@jnielsen.net> In-Reply-To: <46AF6077.5090000@cyberleo.net> References: <46AB9EB4.5080305@cyberleo.net> <43868.212.72.24.148.1185710699.squirrel@rakhesh.com> <46AF6077.5090000@cyberleo.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 31 July 2007 12:16:32 pm CyberLeo Kitsana wrote: > Rakhesh Sasidharan wrote: > > On Sun, July 29, 2007 01:37, N.J. Mann wrote: > >> In message <46AB9EB4.5080305@cyberleo.net>, CyberLeo Kitsana wrote: > >>> Is there a way to specify which ports certain options are to be applied > >>> to, without having to craft custom command lines and build ports > >>> individually? > >> > >> Is ports-mgmt/portconf what you are looking for? > > > > I didn't know about ports-mgmt/portconf (will check it out now) but what > > I use is the make.conf file. > > > > This blog post > > (http://blog.innerewut.de/articles/2006/01/14/upgrading-ports-and-preserv > >e-mak e-options) is what enlightened me. And here's how the application > > specific bits of my make.conf file looks: > > > > .if ${.CURDIR:M*/shells/bash} > > WITH_STATIC_BASH=yes > > PREFIX=/ > > .endif > > > > .if ${.CURDIR:M*/print/cups} > > CUPS_OVERWRITE_BASE=yes > > NO_LPR=yes > > WITH_CUPS=yes > > .endif > > > > .if ${.CURDIR:M*/databases/mysql50-*} > > # these two options supposedly give a speed boost > > BUILD_OPTIMIZED=yes > > BUILD_STATIC=yes > > .endif > > > > As you can see in the shells/bash case, I can even pass along PREFIX etc > > arguments. > > > > Hope that helps. > > That's exactly what I was looking for. Also, if you use portupgrade there's a MAKE_ARGS section of /usr/local/etc/pkgtools.conf. JN
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707311501.33241.lists>