From owner-freebsd-questions@FreeBSD.ORG Sun Apr 27 13:35:22 2008 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 A87011065675 for ; Sun, 27 Apr 2008 13:35:22 +0000 (UTC) (envelope-from freebsd-questions@slightlystrange.org) Received: from mtaout02-winn.ispmail.ntl.com (mtaout02-winn.ispmail.ntl.com [81.103.221.48]) by mx1.freebsd.org (Postfix) with ESMTP id 393D68FC26 for ; Sun, 27 Apr 2008 13:35:22 +0000 (UTC) (envelope-from freebsd-questions@slightlystrange.org) Received: from aamtaout04-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout02-winn.ispmail.ntl.com with ESMTP id <20080427133848.DWIV17818.mtaout02-winn.ispmail.ntl.com@aamtaout04-winn.ispmail.ntl.com>; Sun, 27 Apr 2008 14:38:48 +0100 Received: from catflap.slightlystrange.org ([86.6.1.242]) by aamtaout04-winn.ispmail.ntl.com with ESMTP id <20080427133526.XCTB29112.aamtaout04-winn.ispmail.ntl.com@catflap.slightlystrange.org>; Sun, 27 Apr 2008 14:35:26 +0100 Received: by catflap.slightlystrange.org (Postfix, from userid 106) id 2C33761BC; Sun, 27 Apr 2008 14:35:15 +0100 (BST) Received: from torus.slightlystrange.org (torus.slightlystrange.org [10.1.3.50]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by catflap.slightlystrange.org (Postfix) with ESMTPS id DB4F3614E; Sun, 27 Apr 2008 14:35:14 +0100 (BST) Received: (from danielby@localhost) by torus.slightlystrange.org (8.14.2/8.13.4/Submit) id m3RDZDEG025642; Sun, 27 Apr 2008 14:35:13 +0100 (BST) (envelope-from freebsd-questions@slightlystrange.org) Date: Sun, 27 Apr 2008 14:35:12 +0100 From: Daniel Bye To: freebsd-questions@freebsd.org Message-ID: <20080427133512.GA1362@torus.slightlystrange.org> Mail-Followup-To: freebsd-questions@freebsd.org, Grant Peel References: <000b01c8a7e1$39c74520$6501a8c0@GRANT> <20080426231957.GA90187@slackbox.xs4all.nl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="zYM0uCDKw75PZbzx" Content-Disposition: inline In-Reply-To: <20080426231957.GA90187@slackbox.xs4all.nl> User-Agent: Mutt/1.4.2.3i X-PGP-Fingerprint: D349 B109 0EB8 2554 4D75 B79A 8B17 F97C 1622 166A X-Operating-System: FreeBSD 7.0-RELEASE i386 Cc: Grant Peel Subject: Re: Ports Question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Bye List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Apr 2008 13:35:22 -0000 --zYM0uCDKw75PZbzx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Apr 27, 2008 at 01:19:57AM +0200, Roland Smith wrote: > On Sat, Apr 26, 2008 at 04:40:58PM -0400, Grant Peel wrote: > > Hi all, > >=20 > > What is the proper method to pass configure arguments when installing a= =20 > > port? >=20 > While you can supply arguments on the command line, it is hard to > remember. >=20 > Therefore I think it is best to set arguments in make.conf. For example; >=20 > ---------- make.conf excerpt ---------- > .if ${.CURDIR:M*/graphics/xpdf} > A4=3Dyes > .endif >=20 > .if ${.CURDIR:M*/mail/mutt-devel} > WITH_MUTT_SLANG2=3Dyes > WITHOUT_MUTT_HTML=3Dyes=20 > WITHOUT_MUTT_XML=3Dyes=20 > WITHOUT_MUTT_COMPRESSED_FOLDERS=3Dyes=20 > WITHOUT_NLS=3Dyes=20 > NOPORTDOCS=3Dyes > .endif >=20 > .if ${.CURDIR:M*/print/cups*} > CUPS_OVERWRITE_BASE=3Dtrue > .endif > ---------- make.conf excerpt ---------- >=20 > The '.if' statement ensures that the variables are only set when make is > called from the praticular port direction. I find the portconf method a little easier to manage - installing=20 ports-mgmt/portconf adds some lines to your make.conf, which allow you to set options for your ports in a file called /usr/local/etc/ports.conf. For example, mail/exim: WITH_MYSQL=3D1 | WITH_SPF=3D1 The file is honoured by manual builds, and by the likes of portinstall, portmaster etc. Dan --=20 Daniel Bye _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ --zYM0uCDKw75PZbzx Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (FreeBSD) iEYEARECAAYFAkgUgRAACgkQixf5fBYiFmp5ywCfe7XpM6h2gxRsNF3zAo/u96I4 vEYAoLtO1rUbg41+GkesfwJ+hP8NK2uc =NBvx -----END PGP SIGNATURE----- --zYM0uCDKw75PZbzx--