From owner-freebsd-questions@FreeBSD.ORG Mon Feb 14 17:14:33 2005 Return-Path: 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 713F416A4CE for ; Mon, 14 Feb 2005 17:14:33 +0000 (GMT) Received: from out011.verizon.net (out011pub.verizon.net [206.46.170.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD6C343D45 for ; Mon, 14 Feb 2005 17:14:32 +0000 (GMT) (envelope-from reso3w83@verizon.net) Received: from ringworm.mechee.com ([4.26.84.7]) by out011.verizon.net ESMTP <20050214171432.YPKY28171.out011.verizon.net@ringworm.mechee.com>; Mon, 14 Feb 2005 11:14:32 -0600 Received: by ringworm.mechee.com (Postfix, from userid 1001) id 2FBF02CE740; Mon, 14 Feb 2005 09:10:15 -0800 (PST) From: "Michael C. Shultz" To: freebsd-questions@freebsd.org Date: Mon, 14 Feb 2005 09:10:14 -0800 User-Agent: KMail/1.7.2 References: <007501c511b8$2d9fcff0$6401a8c0@GRANT> <04c301c51213$03845550$7702a8c0@officeeagle> <4210D770.5050602@xecu.net> In-Reply-To: <4210D770.5050602@xecu.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200502140910.14902.reso3w83@verizon.net> X-Authentication-Info: Submitted using SMTP AUTH at out011.verizon.net from [4.26.84.7] at Mon, 14 Feb 2005 11:14:31 -0600 Subject: Re: Ports X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Feb 2005 17:14:33 -0000 On Monday 14 February 2005 08:53 am, Christopher McGee wrote: > Paul Schmehl wrote: > > ----- Original Message ----- From: "Erik Norgaard" > > > > To: "Paul Schmehl" > > Cc: "Grant Peel" ; > > Sent: Sunday, February 13, 2005 > > 2:43 PM > > Subject: Re: Ports > > > >> Taking an arbitrary post, it appears that make.conf is not always > >> the best place since this sets options globally. But thanks, I > >> have now learned how to get my ports compiled with support for a4 > >> paper and _not_ letter :-) > > > > While that is true, you can also set options for individual ports. > > > > Paul Schmehl (pauls@utdallas.edu) > > Adjunct Information Security Officer > > The University of Texas at Dallas > > AVIEN Founding Member > > http://www.utdallas.edu/~pauls/ > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to > > "freebsd-questions-unsubscribe@freebsd.org" > > Could you please give some detail about setting options for > individual ports in make.conf? Maybe I missed something in 'man > make.conf' or 'man ports' but everything seems to refer to global > options. The only example I've found is in man portmanager, but I'm > still a little unsure about the how to do it properly. > This example from portmanager's manual is how to do it in make.conf: .if ${.CURDIR:M*/local/sysutils/portmanager} PREFIX=/home/mike/TEMP .endif # .if ${.CURDIR:M*/multimedia/mplayer} WITH_OPTIMIZED_CFLAGS=yes WITHOUT_RUNTIME_CPUDETECTION=yes \ WITH_GTK1=yes WITH_RTC=yes WITH_LIBUNGIF=yes WITH_ARTS=yes \ WITH_FRIBIDI=yes WITH_CDPARANOIA=yes WITH_LIBDV=yes \ WITH_MAD=yes WITH_SVGALIB=yes WITH_AALIB=yes WITH_THEORA=yes \ WITH_SDL=yes WITH_ESOUND=yes WITH_VORBIS=yes WITH_XANIM=yes \ WITH_LIVEMEDIA=yes WITH_MATROSKA=yes WITH_XVID=yes WITH_LZO=yes \ WITH_XMMS=yes WITH_LANG=en .endif Just change the "multimedia/mplayer" of .if ${.CURDIR:M*/multimedia/mplayer} to the port you want to save settings for. It is interpreted as something like "when the current directory matches this pattern, use these WITH_* values" -Mike