Ports build parameters (knobs)

Roland Smith rsmith at xs4all.nl
Wed Aug 22 04:26:17 PDT 2007


On Wed, Aug 22, 2007 at 09:54:08AM +0200, Gabriel Linder wrote:
> Hello,
> 
> During the build of the graphical portion of my new FreeBSD-powered
> laptop I noticed that some knobs are not listed in /usr/ports/KNOBS and
> so, I can't add them to make.conf before building the packages.

I don't see why not.
 
> When I run "make fetch-recursive" for fluxbox, I get :
> 
> WITH_DEBUG=yes          Build with debugging symbols
> WITH_DOCHTML=yes        Install the HTML documentation
> WITH_DOCPDF=yes         Install the PDF documentation
> WITH_GNOME=yes          Enable GNOME support
> WITH_IMLIB2=yes         Enable Imlib2 (pixmap themes) support
> [snip]
> 
> and for libiconv :
> 
> WITHOUT_EXTRA_ENCODINGS=yes     Disable extra character sets
> WITH_EXTRA_PATCHES=yes          Apply extra patches (fixes cp932, adds
> EUCJP-MS)
> 
> GNOME and DEBUG are listed in /usr/ports/KNOBS, but IMLIB2 and
> EXTRA_PATCHES are not... Is there a way to have the full list of
> supported build options?

Look at the port Makefile.

> Or maybe I am wrong and these settings are not
> supposed to be in make.conf but in /var/db/ports/<portname>/options, if
> so please let me know :)

If they aren't OPTIONS, just list them in make.conf like this;

.if ${.CURDIR:M*/x11-wm/fluxbox}
WITH_IMLIB2=yes
.endif

This way the variables are only defined when make is called from a
directory that ends in x11-wm/fluxbox.

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: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20070822/9f5ca9dd/attachment.pgp


More information about the freebsd-questions mailing list