The translation is temporarily closed for contributions due to maintenance, please come back later.

Source string Read only

(itstool) path: sect1/para
Context English State
<varname>USES</varname> macros make it easy to declare requirements and settings for a port. They can add dependencies, change building behavior, add metadata to packages, and so on, all by selecting simple, preset values.
Each section in this chapter describes a possible value for <varname>USES</varname>, along with its possible arguments. Arguments are appeneded to the value after a colon (<literal>:</literal>). Multiple arguments are separated by commas (<literal>,</literal>).
Using Multiple Values
USES= bison perl
Adding an Argument
USES= tar:xz
Adding Multiple Arguments
USES= drupal:7,theme
Mixing it All Together
USES= pgsql:9.3+ cpe python:2.7,build
Possible arguments: (none), <literal>p7zip</literal>, <literal>partial</literal>
Extract using <citerefentry vendor="ports"><refentrytitle>7z</refentrytitle><manvolnum>1</manvolnum></citerefentry> instead of <citerefentry><refentrytitle>bsdtar</refentrytitle><manvolnum>1</manvolnum></citerefentry> and sets <literal>EXTRACT_SUFX=.7z</literal>. The <literal>p7zip</literal> option forces a dependency on the <command>7z</command> from <package role="port">archivers/p7zip</package> if the one from the base system is not able to extract the files. <varname>EXTRACT_SUFX</varname> is not changed if the <literal>partial</literal> option is used, this can be used if the main distribution file does not have a <filename>.7z</filename> extension.
Possible arguments: (none), <literal>5</literal>, <literal>6</literal>
Depends on an <application>Ada</application>-capable compiler, and sets <varname>CC</varname> accordingly. Defaults to use <application>gcc</application> 5 from ports. Use the <literal>:<replaceable>X</replaceable></literal> version option to force building with a different version.
Possible arguments: (none), <literal>build</literal>
Runs <command>autoreconf</command>. It encapsulates the <command>aclocal</command>, <command>autoconf</command>, <command>autoheader</command>, <command>automake</command>, <command>autopoint</command>, and <command>libtoolize</command> commands. Each command applies to <filename>${AUTORECONF_WRKSRC}/</filename> or its old name, <filename>${AUTORECONF_WRKSRC}/</filename>. If <filename></filename> defines subdirectories with their own <filename></filename> using <literal>AC_CONFIG_SUBDIRS</literal>, <command>autoreconf</command> will recursively update those as well. The <literal>:build</literal> argument only adds build time dependencies on those tools but does not run <command>autoreconf</command>. A port can set <varname>AUTORECONF_WRKSRC</varname> if <varname>WRKSRC</varname> does not contain the path to <filename></filename>.
Possible arguments: (none), <literal>atlas</literal>, <literal>netlib</literal> (default), <literal>gotoblas</literal>, <literal>openblas</literal>
Adds dependencies on Blas / Lapack libraries.
Possible arguments: (none), <literal>48</literal>, <literal>5</literal> (default), <literal>6</literal>
Add dependency on the <application>Berkeley DB</application> library. Default to <package role="port">databases/db5</package>. It can also depend on <package role="port">databases/db48</package> when using the <literal>:48</literal> argument or <package role="port">databases/db6</package> with <literal>:6</literal>. It is possible to declare a range of acceptable values, <literal>:48+</literal> finds the highest installed version, and falls back to 4.8 if nothing else is installed. <varname>INVALID_BDB_VER</varname> can be used to specify versions which do not work with this port. The framework exposes the following variables to the port:
The name of the <application>Berkeley DB</application> library. For example, when using <package role="port">databases/db5</package>, it contains <literal>db-5.3</literal>.
The name of the <application>Berkeley DB</application> <application>C++</application> library. For example, when using <package role="port">databases/db5</package>, it contains <literal>db_cxx-5.3</literal>.
The location of the <application>Berkeley DB</application> include directory. For example, when using <package role="port">databases/db5</package>, it will contain <literal>${LOCALBASE}/include/db5</literal>.


No matching activity found.

Browse all component changes

Source information

Source string comment
(itstool) path: sect1/para
Source string location
String age
a year ago
Source string age
a year ago
Translation file
books/porters-handbook.pot, string 4516