phpmyadmin name in pkgng
Matthew Seaman
m.seaman at infracaninophile.co.uk
Tue Apr 22 06:14:59 UTC 2014
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?
>
> 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=yes.
>
> 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= yes
WITHOUT_NLS= yes
to turn off X11 and NLS support generally, nowadays you'ld use:
OPTIONS_UNSET+= X11 NLS
You can also turn options on or off per port by:
portname_SET= FOO BAR
portname_USET= 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='X11 XFT XIM XPM' WITH='XML'
Read the comments in /usr/ports/Mk/bsd.options.mk for more information.
Cheers,
Matthew
--
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey
JID: matthew at infracaninophile.co.uk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1036 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20140422/c8936e9c/attachment.sig>
More information about the freebsd-questions
mailing list