Ports Question

Roland Smith rsmith at xs4all.nl
Sat Apr 26 23:20:00 UTC 2008


On Sat, Apr 26, 2008 at 04:40:58PM -0400, Grant Peel wrote:
> Hi all,
> 
> What is the proper method to pass configure arguments when installing a 
> port?

While you can supply arguments on the command line, it is hard to
remember.

Therefore I think it is best to set arguments in make.conf. For example;

---------- make.conf excerpt ----------
.if ${.CURDIR:M*/graphics/xpdf}
A4=yes
.endif

.if ${.CURDIR:M*/mail/mutt-devel}
WITH_MUTT_SLANG2=yes
WITHOUT_MUTT_HTML=yes 
WITHOUT_MUTT_XML=yes 
WITHOUT_MUTT_COMPRESSED_FOLDERS=yes 
WITHOUT_NLS=yes 
NOPORTDOCS=yes
.endif

.if ${.CURDIR:M*/print/cups*}
CUPS_OVERWRITE_BASE=true
.endif
---------- make.conf excerpt ----------

The '.if' statement ensures that the variables are only set when make is
called from the praticular port direction.

Roland
-- 
R.F.Smith                                   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20080426/46b9ff62/attachment.pgp


More information about the freebsd-questions mailing list