Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Apr 2008 14:35:12 +0100
From:      Daniel Bye <freebsd-questions@slightlystrange.org>
To:        freebsd-questions@freebsd.org
Cc:        Grant Peel <gpeel@thenetnow.com>
Subject:   Re: Ports Question
Message-ID:  <20080427133512.GA1362@torus.slightlystrange.org>
In-Reply-To: <20080426231957.GA90187@slackbox.xs4all.nl>
References:  <000b01c8a7e1$39c74520$6501a8c0@GRANT> <20080426231957.GA90187@slackbox.xs4all.nl>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080427133512.GA1362>