Follow the USE-ification of USES=php.

Reviewed by:	wblock
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D7007
This commit is contained in:
Mathieu Arnold 2016-06-28 16:27:03 +00:00
parent c53c0a8946
commit 20ab3a92d7
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=49019
2 changed files with 123 additions and 81 deletions

View file

@ -3440,84 +3440,8 @@ do-install:
<title>PHP</title>
<para><application>PHP</application> web applications declare
their dependency on it with <literal>USES=php</literal>.
Variables are used to specify which
<application>PHP</application> modules are required.</para>
<table frame="none" xml:id="using-php-variables">
<title>Variables for Ports That Use PHP</title>
<tgroup cols="2">
<tbody>
<row>
<entry><varname>USE_PHP</varname></entry>
<entry>The list of required PHP extensions. Example:
<literal>pcre xml gettext</literal></entry>
</row>
<row>
<entry><varname>DEFAULT_PHP_VER</varname></entry>
<entry>Selects which major version of PHP will be
installed as a dependency when no PHP is installed
yet. Default is <literal>5</literal>. Possible
values: <literal>4</literal>,
<literal>5</literal></entry>
</row>
<row>
<entry><varname>IGNORE_WITH_PHP</varname></entry>
<entry>The port does not work with PHP of the given
version. Possible values: <literal>4</literal>,
<literal>5</literal></entry>
</row>
<row>
<entry><varname>USE_PHPIZE</varname></entry>
<entry>The port will be built as a PHP
extension.</entry>
</row>
<row>
<entry><varname>USE_PHPEXT</varname></entry>
<entry>The port will be treated as a PHP extension,
including installation and registration in the
extension registry.</entry>
</row>
<row>
<entry><varname>USE_PHP_BUILD</varname></entry>
<entry>Set PHP as a build dependency.</entry>
</row>
<row>
<entry><varname>WANT_PHP_CLI</varname></entry>
<entry>Want the CLI (command line) version of
PHP.</entry>
</row>
<row>
<entry><varname>WANT_PHP_CGI</varname></entry>
<entry>Want the CGI version of PHP.</entry>
</row>
<row>
<entry><varname>WANT_PHP_MOD</varname></entry>
<entry>Want the Apache module version of PHP.</entry>
</row>
<row>
<entry><varname>WANT_PHP_SCR</varname></entry>
<entry>Want the CLI or the CGI version of PHP.</entry>
</row>
<row>
<entry><varname>WANT_PHP_WEB</varname></entry>
<entry>Want the Apache module or the CGI version of
PHP.</entry>
</row>
</tbody>
</tgroup>
</table>
their dependency on it with <literal>USES=php</literal>. See
<xref linkend="uses-php"/> for more information.</para>
</sect2>
<sect2 xml:id="php-pear">

View file

@ -1725,10 +1725,128 @@ USE_MATE= menus:build intlhack</programlisting>
<sect1 xml:id="uses-php">
<title><literal>php</literal></title>
<para>Possible arguments: (none)</para>
<para>Possible arguments: (none), <literal>phpize</literal>,
<literal>ext</literal>, <literal>zend</literal>,
<literal>build</literal>, <literal>cli</literal>,
<literal>cgi</literal>, <literal>mod</literal>,
<literal>web</literal>, <literal>embed</literal></para>
<para>Provide support for <application>PHP</application>. See
<xref linkend="php-variables"/> for more information.</para>
<para>Provide support for <application>PHP</application>. Add a
runtime dependency on the default PHP version, <package
role="port">lang/php56</package>.</para>
<variablelist>
<varlistentry>
<term><literal>phpize</literal></term>
<listitem>
<para>Use to build a <application>PHP</application>
extension.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>ext</literal></term>
<listitem>
<para>Use to build, install and register a
<application>PHP</application> extension.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>zend</literal></term>
<listitem>
<para>Use to build, install and register a Zend
extension.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>build</literal></term>
<listitem>
<para>Set <application>PHP</application> also as a
build-time dependency.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>cli</literal></term>
<listitem>
<para>Needs the CLI version of
<application>PHP</application>.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>cgi</literal></term>
<listitem>
<para>Needs the CGI version of
<application>PHP</application>.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>mod</literal></term>
<listitem>
<para>Needs the <application>Apache</application> module for
<application>PHP</application>.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>web</literal></term>
<listitem>
<para>Needs the <application>Apache</application> module or
the <acronym>CGI</acronym> version of
<application>PHP</application>.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>embed</literal></term>
<listitem>
<para>Needs the embedded library version of
<application>PHP</application>.</para>
</listitem>
</varlistentry>
</variablelist>
<para>Variables are used to specify which
<application>PHP</application> modules are required, as well as
which version of <application>PHP</application> are
supported.</para>
<variablelist>
<varlistentry>
<term><varname>USE_PHP</varname></term>
<listitem>
<para>The list of required <application>PHP</application>
extensions. Example: <literal>pcre xml
gettext</literal></para>
</listitem>
</varlistentry>
<varlistentry>
<term><varname>DEFAULT_PHP_VER</varname></term>
<listitem>
<para>Selects which major version of
<application>PHP</application> will be installed as a
dependency when no <application>PHP</application> is
installed yet. Default is <literal>56</literal>.
Possible values: <literal>55</literal>,
<literal>56</literal>, and <literal>7</literal>.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><varname>IGNORE_WITH_PHP</varname></term>
<listitem>
<para>The port does not work with
<application>PHP</application> of the given version.
Possible values: <literal>55</literal>,
<literal>56</literal>, and <literal>7</literal>.</para>
</listitem>
</varlistentry>
</variablelist>
</sect1>
<sect1 xml:id="uses-pkgconfig">