Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Feb 2007 09:46:29 -0500
From:      Randy Pratt <bsd-unix@earthlink.net>
To:        "n j" <nino80@gmail.com>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Makefile knobs
Message-ID:  <20070206094629.da378da5.bsd-unix@earthlink.net>
In-Reply-To: <92bcbda50702060514n70349b11j56e8b93e151fbcdb@mail.gmail.com>
References:  <92bcbda50702060514n70349b11j56e8b93e151fbcdb@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 6 Feb 2007 14:14:29 +0100
"n j" <nino80@gmail.com> wrote:

> Hello,
> 
> I have a question regarding the various knobs one can set while
> building a port. The problem as I see it is that the user usually has
> to be a makefile lingo expert (okay, not an expert, but you catch my
> drift) to decipher all the various options and set perhaps only the
> one he really needs. So, my question is: is there a port that does
> that for you? Reads makefile options from a makefile and prints them
> out in a nicely ordered way to you? If there's no such port, is it
> actually possible to create one (meaning is it possible to get needed
> information from a makefile in an automated fashion)?

The "portsopt" might be what you're looking for:

  Shows WITH(OUT)-knobs of a port makefile and if you want also
  the knobs of all port dependencies.

  WWW: http://www.chruetertee.ch/portsopt/

It has recently moved from the sysutils category to ports-mgmt
category.  Its location will depend on when you last updated your
ports tree.  While it will show various knobs, their purpose may
not be apparent without further investigation.

There are quite a few ports that have an options screen which you
can access by first doing a "make config" before building and
selecting options. It will store those options in /var/db/ports/...
directories and use them for future builds ("man 7 ports" for more
info).  I would suspect that more ports will use this approach in the
future.

HTH,

Randy
-- 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070206094629.da378da5.bsd-unix>