- Update Scons section

Differential Revision:	https://reviews.freebsd.org/D12697
Approved by:	portmgr (mat)
This commit is contained in:
Alex Kozlov 2017-10-25 15:01:30 +00:00
parent 6a0b5e9b91
commit 6880bb4a69
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=51143

View file

@ -766,51 +766,11 @@ CMAKE_SOURCE_PATH= &dollar;{WRKSRC}/subproject</programlisting>
<title>Using <command>scons</command></title>
<para>If the port uses <application>SCons</application>,
define <literal>USE_SCONS=yes</literal>.</para>
<table frame="none" xml:id="using-scons-variables">
<title>Variables for Ports That Use
<command>scons</command></title>
<tgroup cols="2">
<thead>
<row>
<entry>Variable</entry>
<entry>Means</entry>
</row>
</thead>
<tbody>
<row>
<entry><varname>SCONS_ARGS</varname></entry>
<entry>Port specific SCons flags passed to the SCons
environment.</entry>
</row>
<row>
<entry><varname>SCONS_BUILDENV</varname></entry>
<entry>Variables to be set in system
environment.</entry>
</row>
<row>
<entry><varname>SCONS_ENV</varname></entry>
<entry>Variables to be set in SCons
environment.</entry>
</row>
<row>
<entry><varname>SCONS_TARGET</varname></entry>
<entry>Last argument passed to SCons, similar to
<varname>MAKE_TARGET</varname>.</entry>
</row>
</tbody>
</tgroup>
</table>
define <literal>USES=scons</literal>.</para>
<para>To make third party <filename>SConstruct</filename>
respect everything that is passed to SCons in
<varname>SCONS_ENV</varname> (that is, most importantly,
the environment (that is, most importantly,
<varname>CC/CXX/CFLAGS/CXXFLAGS</varname>), patch
<filename>SConstruct</filename> so build
<literal>Environment</literal> is constructed like