Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Apr 2014 07:14:40 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        freebsd-questions@freebsd.org
Subject:   Re: phpmyadmin name in pkgng
Message-ID:  <535608D0.20900@infracaninophile.co.uk>
In-Reply-To: <20140421213503.d769f6e3.freebsd@edvax.de>
References:  <5353E924.8070409@a1poweruser.com> <5353EA05.9010200@FreeBSD.org> <535526B6.1080706@a1poweruser.com> <53552FCE.6090801@FreeBSD.org> <535559D7.9010408@a1poweruser.com> <E85E602E-FF49-4EFA-BC6D-6C7A568E63EB@gmail.com> <53556867.5030009@a1poweruser.com> <20140421213503.d769f6e3.freebsd@edvax.de>

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

On 21/04/2014 20:35, Polytropon wrote:
> In the past, there has been such a mechanism which I've been
> using for things like configuring mplayer. Maybe you can also
> try this in your case?
>=20
> Go into the port's directory and create a file Makefile.local.
> In this file, you can define the options (which you can get
> their names from the port's Makefile). The options usually
> have the form of WITH_SOMETHING=3Dyes.
>=20
> Downside: When you update your ports tree, the file will be
> removed, so keep a backup!

WITH_FOO and WITHOUT_BAR is pretty much out of date now.  The OPTIONS
mechanism doesn't use that syntax any more -- there are a few variables
of that form still around, but many fewer than previously.

So, for example, where, in /etc/make.conf, you might once have used:

WITHOUT_X11=3D yes
WITHOUT_NLS=3D yes

to turn off X11 and NLS support generally, nowadays you'ld use:

OPTIONS_UNSET+=3D X11 NLS

You can also turn options on or off per port by:

portname_SET=3D FOO BAR
portname_USET=3D BAZ BLURFL

Now, OPTIONS_SET, OPTIONS_UNSET, portname_SET or portname_UNSET are
overridden by anything that is configured per port using an options
dialogue.  If you prefer /etc/make.conf to take precedence, then use
OPTIONS_SET_FORCE, OPTIONS_UNSET_FORCE, portname_SET_FORCE or
portname_UNSET_FORCE.

`portname' is the output of:

   make -C /usr/ports/category/port -V OPTIONS_NAME

eg,

# make -C /usr/ports/databases/phpmyadmin -V OPTIONS_NAME

databases_phpmyadmin

All this stuff goes into /etc/make.conf, which is safe from being
trashed when you update your ports tree.  There are also some make(1)
command line options which have the ultimate level of override:

   make -C /usr/ports/exitors/emacs WITHOUT=3D'X11 XFT XIM XPM' WITH=3D'X=
ML'

Read the comments in /usr/ports/Mk/bsd.options.mk for more information.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.

PGP: http://www.infracaninophile.co.uk/pgpkey
JID: matthew@infracaninophile.co.uk


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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.20 (Darwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQJ8BAEBCgBmBQJTVgjWXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC
QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATaRUP/iTxqyD11U3MQZx8Vo4ot37X
kMIRLO9fJ4F4i3vmQqS1n9MUyfJ7Bbpv/LA0ZMSSv+I5Agejg5hdT9cUyOCK9mTf
wjoa8WMM7iXLvBqtcyIPNwN5RcxQ7n7FqRW2YUCv9SKug7Q+CuFacMsaLhp6eCat
LhNmXKuTUbB/slmgXW4Il+Ob1EIfBuXRLYiZPFotY+YJB58IvXyAqtKrakZcJf4p
Blq8E/LPlKR4hrw78udVSNUXPE06eZNTVSGup0/XpE5HXJyd99n0KBbWOVihv/t4
rbdv/m8jKQj99ZMo4EYWO00c3rupwJrdM1gg7mfX7RRBYiYfl0xJySTw92A93VeZ
opBAFCDTU8S/YLFPpICxIeBCrM13tczBbPg3/hQPnRAG6IGLMxUE/1CDk7upUj9j
2mZByaLAKg6QLQFwJ9gyLd+xDRqaJK51mzroWzVgCWmAGg4Nhzjk9mJSIgajIRVS
mpTfhDcZ+AgHFTUEUkKueILpfGWN7UQ4YeStJFVZ7k1iY9cnCQpxgf06v/vtMniw
fA3QY/Ji9UbxPD3Yfs90opmbwfkETcBsBaw8R7haW3JJmYfT+IOp2h21fFLkEkYD
ly9WI7EdRMn9a+SQN3XtSlmvIJpW2qoL72vAFBywqyTz7+dsWKhX6n4T6qUJsJer
sP8ZsdVocdUUMvLK3LGO
=2o6L
-----END PGP SIGNATURE-----

--TQQ812VCcEcx85lg95MxjaDGxmDv9IaEi--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?535608D0.20900>