From owner-freebsd-questions@FreeBSD.ORG Tue Jul 31 19:02:08 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B768516A41A for ; Tue, 31 Jul 2007 19:02:08 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from ns1.jnielsen.net (ns1.jnielsen.net [69.55.238.237]) by mx1.freebsd.org (Postfix) with ESMTP id 9466713C459 for ; Tue, 31 Jul 2007 19:02:08 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from localhost (jn@ns1 [69.55.238.237]) (authenticated bits=0) by ns1.jnielsen.net (8.12.9p2/8.12.9) with ESMTP id l6VJ252r002766; Tue, 31 Jul 2007 15:02:06 -0400 (EDT) (envelope-from lists@jnielsen.net) From: John Nielsen To: freebsd-questions@freebsd.org Date: Tue, 31 Jul 2007 15:01:33 -0400 User-Agent: KMail/1.9.7 References: <46AB9EB4.5080305@cyberleo.net> <43868.212.72.24.148.1185710699.squirrel@rakhesh.com> <46AF6077.5090000@cyberleo.net> In-Reply-To: <46AF6077.5090000@cyberleo.net> X-Face: #X5#Y*q>F:]zT!DegL3z5Xo'^MN[$8k\[4^3rN~wm=s=Uw(sW}R?3b^*f1Wu*.<=?utf-8?q?of=5F4NrS=0A=09P*M/9CpxDo!D6?=)IY1w<9B1jB; tBQf[RU-R<,I)e"$q7N7 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200707311501.33241.lists@jnielsen.net> X-Virus-Scanned: ClamAV version 0.88.4, clamav-milter version 0.88.4 on ns1.jnielsen.net X-Virus-Status: Clean Cc: CyberLeo Kitsana Subject: Re: Custom builds from ports X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jul 2007 19:02:08 -0000 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