From owner-freebsd-questions@FreeBSD.ORG Sun Jul 2 09:48:27 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6882016A412 for ; Sun, 2 Jul 2006 09:48:27 +0000 (UTC) (envelope-from nikolas.britton@gmail.com) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id DFE2843D45 for ; Sun, 2 Jul 2006 09:48:26 +0000 (GMT) (envelope-from nikolas.britton@gmail.com) Received: by nz-out-0102.google.com with SMTP id x3so270268nzd for ; Sun, 02 Jul 2006 02:48:26 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=eBvAcP/v/JUKvLtSeS6T+Wb7rD4oory9TI8IBvINfrSWwmxnZAq1EN05+CEyrKC6BVEvNYlPEZ4inSQwcWjYa+9Aa4bjQwsWsD+t4Ve7FEVFqmuezY2ZR0Z0CDTvUyA6+6hcN0ZGeWUAIrLLa4lCyO8pymYe+2dRXYMN4r80p/Y= Received: by 10.36.55.2 with SMTP id d2mr138713nza; Sun, 02 Jul 2006 02:48:25 -0700 (PDT) Received: by 10.36.12.11 with HTTP; Sun, 2 Jul 2006 02:48:25 -0700 (PDT) Message-ID: Date: Sun, 2 Jul 2006 04:48:25 -0500 From: "Nikolas Britton" To: "Kevin Kinsey" In-Reply-To: <44A579CF.9070708@daleco.biz> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060630161046.GE2111@tigger.digitaltorque.ca> <200606301131.29593.daeg@houston.rr.com> <20060630182544.GG2111@tigger.digitaltorque.ca> <44A579CF.9070708@daleco.biz> Cc: David J Brooks , freebsd-questions@freebsd.org, "Michael P. Soulier" Subject: Re: batching port builds 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: Sun, 02 Jul 2006 09:48:27 -0000 On 6/30/06, Kevin Kinsey wrote: > Michael P. Soulier wrote: > > On 30/06/06 David J Brooks said: > > > >> If you do 'make -DBATCH' instead of 'make' - you will use the preset > >> defaults for each port with options. Or you can do > >> 'make config-recursive' - which will offer you all the option screens for > >> the port in whose directory you're currently in and all its dependencies. > >> > >> See 'man ports' for more information. > >> > >> To use those with 'portupgrade -a' will probably take some custom scripting. > > > > Ah, so there's no make.conf option for this? > > > > ?? You can even set BATCH=yes in your environment. I'm > pretty sure you can in make.conf, also, but IIRC you might > not want to do that . . . > Why??? What I do is set BATCH=yes in make.conf and If I need to change the default options I use a if block in make.conf: .if ${.CURDIR:M*/databases/mysql*} BROKEN=yes .endif .if ${.CURDIR:M*/www/horde*} WITHOUT_MYSQL=yes WITH_POSTGRESQL=yes .endif .if ${.CURDIR:M*/foo/bar} baz .endif Et Cetera, etc. The first one halts any port that wants MySQL as a dependence. The rest is self explanatory. You can also put any make option in them because it works like a Makefile, here is an imaginary example: .if ${.CURDIR:M*/www/firefox*} PORTNAME=opera DISTVERSION=18 CPUTYPE=athlon512 MASTER_SITE_OVERRIDE=http://foobar PERL_VER=8.6.5 PERL_VERSION=8.6.5 WANT_GNOME=no-way WANT_QT=hell-yes CFLAGS+= -O3 USE_GCC=10 OSVERSION=1200000 .include "${.CURDIR}/../../x11/kde3/Makefile" .endif -- BSD Podcasts @: http://bsdtalk.blogspot.com/ http://freebsdforall.blogspot.com/