HEADS UP: New bsd.*.mk changes
Eivind Eklund
eivind at FreeBSD.org
Tue Jan 20 01:51:09 PST 2004
On Tue, Jan 20, 2004 at 04:24:55AM -0500, Joe Marcus Clarke wrote:
> Type: FEATURE
>
> Title: Add per-port persistent build options with a menu-driven
> front-end
>
> Affects: bsd.port.mk
>
> Description: Probably one of the most anticipated new features for the
> ports system is the ability to have persistent per-port build options.
> This new feature adds that functionality as well as a new menu-driven
> interface for setting those per-port options. Porters will need to set
> the OPTIONS macro in their port's Makefile to a list of WITH_ options
> supported by that port. The format is <option> "<description>"
> [on|off]. For example: FLEXRESP "Flexible response to events" off.
> This says that this port supports a WITH_FLEXRESP option that is not
> defined by default. This option's description is, "Flexible response
> to events." Multiple options should be chained into the one OPTIONS
> macro. NOTE: For OPTIONS to work, you must define OPTIONS before
> bsd.port.pre.mk. In order to configure these options, use the
> ``config'' target. Doing ``make config'' will pop up a curses-based
> dialog which lists all the available options for the given port.
> Changes are saved in a per-port directory under PORTS_DBDIR (default:
> /var/db/ports). To view configurable options for a port, use the
> ``showconfig'' target. To set all port options back to the defaults,
> use the ``rmconfig'' target.
>
> PR:
>
> Submitted by: eivind
I think about half the credit should go to kris (he did a bunch
of work to bang my rough patches into line with port system
requirements - I just did the initial and debugging work.)
Eivind.
More information about the freebsd-ports
mailing list