Ports build parameters (knobs)
Gabriel Linder
linder at jeuxvideo.com
Wed Aug 22 05:37:45 PDT 2007
On Wed, 22 Aug 2007 13:17:17 +0200
Roland Smith <rsmith at xs4all.nl> wrote:
> 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.
>
Because I was thinking that everything possible was included
in /usr/ports/KNOBS, which is not the case, I know now.
> > 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.
>
That's an idea, but I was looking for a list similar
to /usr/ports/KNOBS, if such a list exists. If not, I guess I will have
to run grep on /usr/ports :)
> > 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.
Thanks for this precision !
More information about the freebsd-questions
mailing list