- Since www/mozilla is gone, it is no longer a good example; pick
www/seamonkey instead. [1] - Sync Java section with latest bsd.java.mk [2] PRs: docs/159713 (Ruslan Mahmatkhanov <cvs-src@yandex.ru>) [1], docs/159694 (Jason Helfman <jhelfman@experts-exchange.com>) [2]
This commit is contained in:
parent
056daf4ef7
commit
00c0583210
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=37555
1 changed files with 15 additions and 42 deletions
|
@ -4561,7 +4561,7 @@ PORTVERSION= 1.0</programlisting>
|
|||
during linking (see <filename role="package">lang/moscow_ml</filename>
|
||||
for an example), or through a shell-wrapper which sets
|
||||
<makevar>LD_LIBRARY_PATH</makevar> before invoking the binary, like
|
||||
<filename role="package">www/mozilla</filename> does.</para>
|
||||
<filename role="package">www/seamonkey</filename> does.</para>
|
||||
|
||||
<para>When installing 32-bit libraries on 64-bit system, use
|
||||
<makevar>USE_LDCONFIG32</makevar> instead.</para>
|
||||
|
@ -6170,8 +6170,8 @@ QT_COMPONENTS= qmake_build moc_build rcc_build uic_build</programlisting>
|
|||
<entry>List of space-separated suitable Java versions for
|
||||
the port. An optional <literal>"+"</literal> allows you to
|
||||
specify a range of versions (allowed values:
|
||||
<literal>1.1[+] 1.2[+] 1.3[+] 1.4[+] 1.5[+]
|
||||
1.6[+]</literal>).</entry>
|
||||
<literal>1.5[+] 1.6[+] 1.7[+]
|
||||
</literal>).</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
|
@ -6185,7 +6185,7 @@ QT_COMPONENTS= qmake_build moc_build rcc_build uic_build</programlisting>
|
|||
<entry><makevar>JAVA_VENDOR</makevar></entry>
|
||||
<entry>List of space-separated suitable JDK port vendors for
|
||||
the port (allowed values: <literal>freebsd bsdjava sun
|
||||
blackdown openjdk</literal>).</entry>
|
||||
openjdk</literal>).</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
|
@ -6205,22 +6205,6 @@ QT_COMPONENTS= qmake_build moc_build rcc_build uic_build</programlisting>
|
|||
<entry>When set, it means that the selected JDK port should
|
||||
be added to the extract dependencies of the port.</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry><makevar>USE_JIKES</makevar></entry>
|
||||
<entry>Whether the port should or should not use the
|
||||
<command>jikes</command> bytecode compiler to build. When
|
||||
no value is set for this variable, the port will use
|
||||
<command>jikes</command> to build if available. You may
|
||||
also explicitly forbid or enforce the use of
|
||||
<command>jikes</command> (by setting <literal>'no'</literal>
|
||||
or <literal>'yes'</literal>). In the later case, <filename
|
||||
role="package">devel/jikes</filename> will be added to build
|
||||
dependencies of the port. In any case that <command>jikes</command>
|
||||
is actually used in place of <command>javac</command>, then the
|
||||
<makevar>HAVE_JIKES</makevar> variable is defined by
|
||||
<filename>bsd.java.mk</filename>.</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
|
@ -6242,13 +6226,13 @@ QT_COMPONENTS= qmake_build moc_build rcc_build uic_build</programlisting>
|
|||
<row>
|
||||
<entry><makevar>JAVA_PORT</makevar></entry>
|
||||
<entry>The name of the JDK port (e.g.
|
||||
<literal>'java/jdk14'</literal>).</entry>
|
||||
<literal>'java/diablo-jdk16'</literal>).</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry><makevar>JAVA_PORT_VERSION</makevar></entry>
|
||||
<entry>The full version of the JDK port (e.g.
|
||||
<literal>'1.4.2'</literal>). If you only need the first
|
||||
<literal>'1.6.0'</literal>). If you only need the first
|
||||
two digits of this version number, use
|
||||
<makevar>${JAVA_PORT_VERSION:C/^([0-9])\.([0-9])(.*)$/\1.\2/}</makevar>.</entry>
|
||||
</row>
|
||||
|
@ -6256,19 +6240,19 @@ QT_COMPONENTS= qmake_build moc_build rcc_build uic_build</programlisting>
|
|||
<row>
|
||||
<entry><makevar>JAVA_PORT_OS</makevar></entry>
|
||||
<entry>The operating system used by the JDK port (e.g.
|
||||
<literal>'linux'</literal>).</entry>
|
||||
<literal>'native'</literal>).</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry><makevar>JAVA_PORT_VENDOR</makevar></entry>
|
||||
<entry>The vendor of the JDK port (e.g.
|
||||
<literal>'sun'</literal>).</entry>
|
||||
<literal>'freebsd'</literal>).</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry><makevar>JAVA_PORT_OS_DESCRIPTION</makevar></entry>
|
||||
<entry>Description of the operating system used by the JDK port
|
||||
(e.g. <literal>'Linux'</literal>).</entry>
|
||||
(e.g. <literal>'Native'</literal>).</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
|
@ -6280,34 +6264,34 @@ QT_COMPONENTS= qmake_build moc_build rcc_build uic_build</programlisting>
|
|||
<row>
|
||||
<entry><makevar>JAVA_HOME</makevar></entry>
|
||||
<entry>Path to the installation directory of the JDK (e.g.
|
||||
<filename>'/usr/local/jdk1.3.1'</filename>).</entry>
|
||||
<filename>'/usr/local/diablo-jdk1.6.0'</filename>).</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry><makevar>JAVAC</makevar></entry>
|
||||
<entry>Path to the Java compiler to use (e.g.
|
||||
<filename>'/usr/local/jdk1.3.1/bin/javac'</filename> or
|
||||
<filename>'/usr/local/bin/jikes'</filename>).</entry>
|
||||
<filename>'/usr/local/diablo-jdk1.6.0/bin/javac'</filename>).
|
||||
</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry><makevar>JAR</makevar></entry>
|
||||
<entry>Path to the <command>jar</command> tool to use (e.g.
|
||||
<filename>'/usr/local/jdk1.3.1/bin/jar'</filename> or
|
||||
<filename>'/usr/local/diablo-jdk1.6.0/bin/jar'</filename> or
|
||||
<filename>'/usr/local/bin/fastjar'</filename>).</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry><makevar>APPLETVIEWER</makevar></entry>
|
||||
<entry>Path to the <command>appletviewer</command> utility (e.g.
|
||||
<filename>'/usr/local/linux-jdk1.3.1/bin/appletviewer'</filename>).</entry>
|
||||
<filename>'/usr/local/diablo-jdk1.6.0/bin/appletviewer'</filename>).</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry><makevar>JAVA</makevar></entry>
|
||||
<entry>Path to the <command>java</command> executable. Use
|
||||
this for executing Java programs (e.g.
|
||||
<filename>'/usr/local/jdk1.3.1/bin/java'</filename>).</entry>
|
||||
<filename>'/usr/local/diablo-jdk1.6.0/bin/java'</filename>).</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
|
@ -6369,12 +6353,6 @@ QT_COMPONENTS= qmake_build moc_build rcc_build uic_build</programlisting>
|
|||
<entry>Path to the archive that contains the JDK class
|
||||
files, <filename>${JAVA_HOME}/jre/lib/rt.jar</filename>.</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry><makevar>HAVE_JIKES</makevar></entry>
|
||||
<entry>Defined whenever <command>jikes</command> is used by
|
||||
the port (see <makevar>USE_JIKES</makevar> above).</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
|
@ -6440,11 +6418,6 @@ QT_COMPONENTS= qmake_build moc_build rcc_build uic_build</programlisting>
|
|||
This is similar to the <makevar>USE_GMAKE</makevar> mechanism,
|
||||
which is documented in <xref linkend="building">.</para>
|
||||
|
||||
<para>If <command>jikes</command> is used in place of
|
||||
<command>javac</command> (see <makevar>USE_JIKES</makevar> in
|
||||
<xref linkend="java-variables">), then Ant will automatically
|
||||
use it to build the port.</para>
|
||||
|
||||
</sect2>
|
||||
|
||||
<sect2 id="java-best-practices">
|
||||
|
|
Loading…
Reference in a new issue