From owner-freebsd-questions@FreeBSD.ORG Tue Jul 31 18:55:55 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 0E60816A41F for ; Tue, 31 Jul 2007 18:55:55 +0000 (UTC) (envelope-from cyberleo@cyberleo.net) Received: from pizzabox.cyberleo.net (alpha.cyberleo.net [198.145.45.10]) by mx1.freebsd.org (Postfix) with ESMTP id 8836C13C47E for ; Tue, 31 Jul 2007 18:55:53 +0000 (UTC) (envelope-from cyberleo@cyberleo.net) Received: (qmail 57920 invoked from network); 31 Jul 2007 18:55:52 -0000 Received: from adsl-75-3-94-126.dsl.chcgil.sbcglobal.net (HELO ?172.16.44.14?) (cyberleo@cyberleo.net@75.3.94.126) by alpha.cyberleo.net with ESMTPA; 31 Jul 2007 18:55:52 -0000 Message-ID: <46AF6077.5090000@cyberleo.net> Date: Tue, 31 Jul 2007 11:16:32 -0500 From: CyberLeo Kitsana User-Agent: Thunderbird 2.0.0.4 (X11/20070604) MIME-Version: 1.0 To: Rakhesh Sasidharan References: <46AB9EB4.5080305@cyberleo.net> <20070728213750.GA93017@oberon.njm.f2s.com> <43868.212.72.24.148.1185710699.squirrel@rakhesh.com> In-Reply-To: <43868.212.72.24.148.1185710699.squirrel@rakhesh.com> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Cc: FreeBSD Questions 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 18:55:55 -0000 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-preserve-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. Thanks! -- Fuzzy love, -CyberLeo Technical Administrator CyberLeo.Net Webhosting http://www.CyberLeo.Net Furry Peace! - http://wwww.fur.com/peace/