Add section describing USE_ and WANT_ variables.
Reviewed by: ports@
This commit is contained in:
parent
66c9c4c128
commit
c125c5bf0d
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=39167
1 changed files with 36 additions and 0 deletions
|
@ -3895,6 +3895,42 @@ LIB_DEPENDS= bar:${PORTSDIR}/foo/bar
|
|||
installation, and updating of these ports and their
|
||||
packages.</para>
|
||||
</sect2>
|
||||
|
||||
<sect2 id="use-want">
|
||||
<title><makevar>USE_</makevar> and
|
||||
<makevar>WANT_</makevar></title>
|
||||
|
||||
<para><makevar>USE_</makevar> variables are set by the port
|
||||
maintainer to define software on which this port depends. A
|
||||
port that needs Firefox would set</para>
|
||||
|
||||
<programlisting>USE_FIREFOX= yes</programlisting>
|
||||
|
||||
<para>Some <makevar>USE_</makevar> variables can accept
|
||||
version numbers or other parameters. For example, a port
|
||||
that requires Apache 2.2 would set</para>
|
||||
|
||||
<programlisting>USE_APACHE= 22</programlisting>
|
||||
|
||||
<para>For more control over dependencies in some cases,
|
||||
<makevar>WANT_</makevar> variables are available to more
|
||||
precisely specify what is needed. For example, consider the
|
||||
<filename role="package">mail/squirrelmail</filename> port.
|
||||
This port needs some PHP modules, which are listed in the
|
||||
<makevar>USE_PHP</makevar> variable:</para>
|
||||
|
||||
<programlisting>USE_PHP= session mhash gettext mbstring pcre openssl xml</programlisting>
|
||||
|
||||
<para>Those modules may be available in CLI or web versions,
|
||||
so the web version is selected with a
|
||||
<makevar>WANT_</makevar> variable:</para>
|
||||
|
||||
<programlisting>WANT_PHP_WEB= yes</programlisting>
|
||||
|
||||
<para>Available <makevar>USE_</makevar> and
|
||||
<makevar>WANT_</makevar> variables are defined in the files
|
||||
in <filename>/usr/ports/Mk</filename>.</para>
|
||||
</sect2>
|
||||
</sect1>
|
||||
|
||||
<sect1 id="makefile-masterdir">
|
||||
|
|
Loading…
Reference in a new issue