Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Sep 2009 20:46:28 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        HM 2K <nfhm2k@gmail.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: make options
Message-ID:  <4AB53514.3020007@infracaninophile.co.uk>
In-Reply-To: <7f7d0a670909191056l2ee31666l3d8925bbce2ce87a@mail.gmail.com>
References:  <7f7d0a670909191056l2ee31666l3d8925bbce2ce87a@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigEA3B4C3D13E6A31F99CFFD36
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable

HM 2K wrote:
> When making some ports, they display an "options" interface.
>=20
> Is there a way to specify these options so that the interface does not
> appear?

You only get the options dialogue one time -- once you've answered the=20
questions it asks, it writes the answers into per-port subdirectories
of /var/db/ports/.  So long as the set of options remains constant, you
won't be presented with an options dialogue again for that port, although=

you can just run 'make config' at any time to change your choices.

Now, if you want to automate building of ports and not suffer the frustra=
tion
of your build machine sitting there uselessly all night waiting for you t=
o
tick some box, there are two choices.

  * Define BATCH in the make environment or as a variable in /etc/make.co=
nf.
    This will cause all OPTIONS dialogues to be suppressed and the port w=
ill be
    built with the defaults where no previous settings exist.

  * Run 'make config-recursive' for every important port you want to buil=
d.
    You will have to re-run the command repeatedly until you no longer ge=
t
    prompted with any OPTIONS dialogues -- turning an option on or off=20
    will generally result in modifying the ports dependencies, and newly
    introduced dependencies may well have their own OPTIONS dialogues.

Of course, you can supply the same information that is generated by the
OPTIONS dialogues by alternate means.  The output of the dialogues are ju=
st
small Makefiles, which you could copy from another system, or write by=20
hand.  In principle you could incorporate the same variable settings in s=
ay,
/etc/make.conf but I've never tried that and cannot confirm that it works=

as expected.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
                                                  Kent, CT11 9PW


--------------enigEA3B4C3D13E6A31F99CFFD36
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.13 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREIAAYFAkq1NRoACgkQ8Mjk52CukIxjKwCfSDBiG79MSEVk52DfIAPrMINc
dZcAni4VMyDhwzla8ozNioToTof2N9xe
=YFT4
-----END PGP SIGNATURE-----

--------------enigEA3B4C3D13E6A31F99CFFD36--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4AB53514.3020007>