Changeset View
Changeset View
Standalone View
Standalone View
head/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml
Show First 20 Lines • Show All 1,138 Lines • ▼ Show 20 Lines | USE_GNOME= gnomemenus3:build intlhack</programlisting> | ||||
<sect1 xml:id="uses-go"> | <sect1 xml:id="uses-go"> | ||||
<title><literal>go</literal></title> | <title><literal>go</literal></title> | ||||
<important> | <important> | ||||
<para>Ports should not be created for Go libs, see | <para>Ports should not be created for Go libs, see | ||||
<xref linkend="go-libs"/> for more information.</para> | <xref linkend="go-libs"/> for more information.</para> | ||||
</important> | </important> | ||||
<para>Possible arguments: (none), | <para>Possible arguments: (none), <literal>modules</literal>, | ||||
<literal>modules</literal></para> | <literal>no_targets</literal>, <literal>run</literal></para> | ||||
<para>Sets default values and targets used to build | <para>Sets default values and targets used to build | ||||
<application>Go</application> software. A build-time dependency | <application>Go</application> software. A build dependency | ||||
on <package role="port">lang/go</package> is added. By default | on the Go compiler port selected via <varname>GO_PORT</varname> | ||||
the build is performed in GOPATH mode. If Go software uses | is added. By default the build is performed in GOPATH mode. | ||||
modules, the modules-aware mode can be switched on with | If Go software uses modules, the modules-aware mode can be | ||||
<literal>modules</literal>.</para> | switched on with <literal>modules</literal> argument. | ||||
<literal>no_targets</literal> will setup build environment like | |||||
<varname>GO_ENV</varname>, <varname>GO_BUILDFLAGS</varname> but | |||||
skip creating <buildtarget>post-extract</buildtarget>, | |||||
<buildtarget>do-build</buildtarget> and | |||||
<buildtarget>do-install</buildtarget> targets. | |||||
<literal>run</literal> will also add a run dependency on | |||||
what is in <varname>GO_PORT</varname>.</para> | |||||
<para>The build process is controlled by several variables:</para> | <para>The build process is controlled by several variables:</para> | ||||
<variablelist> | <variablelist> | ||||
<varlistentry> | <varlistentry> | ||||
<term><varname>GO_PKGNAME</varname></term> | <term><varname>GO_PKGNAME</varname></term> | ||||
<listitem> | <listitem> | ||||
▲ Show 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | </listitem> | ||||
</varlistentry> | </varlistentry> | ||||
<varlistentry> | <varlistentry> | ||||
<term><varname>GO_BUILDFLAGS</varname></term> | <term><varname>GO_BUILDFLAGS</varname></term> | ||||
<listitem> | <listitem> | ||||
<para>Additional build arguments to be passed to | <para>Additional build arguments to be passed to | ||||
<command>go install</command>.</para> | <command>go install</command>.</para> | ||||
</listitem> | |||||
</varlistentry> | |||||
<varlistentry> | |||||
<term><varname>GO_PORT</varname></term> | |||||
<listitem> | |||||
<para>The Go compiler port to use. By default this is | |||||
<package role="port">lang/go</package> but can be set | |||||
to <package role="port">lang/go-devel</package> in | |||||
<literal>make.conf</literal> for testing with future Go | |||||
versions.</para> | |||||
<warning> | |||||
<para>This variable must not be set by individual | |||||
ports!</para> | |||||
</warning> | |||||
</listitem> | </listitem> | ||||
</varlistentry> | </varlistentry> | ||||
</variablelist> | </variablelist> | ||||
</sect1> | </sect1> | ||||
<sect1 xml:id="uses-gperf"> | <sect1 xml:id="uses-gperf"> | ||||
<title><literal>gperf</literal></title> | <title><literal>gperf</literal></title> | ||||
▲ Show 20 Lines • Show All 2,157 Lines • Show Last 20 Lines |