Tagged tk.xml

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3992 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
Manuel Canales Esparcia 2005-05-05 20:46:59 +00:00
parent 5cc1126aa7
commit 516af1140b

View File

@ -13,93 +13,106 @@
]> ]>
<sect1 id="tk" xreflabel="Tk-&tk-version;"> <sect1 id="tk" xreflabel="Tk-&tk-version;">
<?dbhtml filename="tk.html"?>
<sect1info> <sect1info>
<othername>$LastChangedBy$</othername> <othername>$LastChangedBy$</othername>
<date>$Date$</date> <date>$Date$</date>
</sect1info> </sect1info>
<?dbhtml filename="tk.html"?>
<title>Tk-&tk-version;</title>
<indexterm zone="tk">
<primary sortas="a-Tk">Tk</primary></indexterm>
<sect2> <title>Tk-&tk-version;</title>
<title>Introduction to <application>Tk</application></title>
<indexterm zone="tk">
<primary sortas="a-Tk">Tk</primary>
</indexterm>
<sect2 role="package">
<title>Introduction to Tk</title>
<para>The <application>Tk</application> package contains a <para>The <application>Tk</application> package contains a
<acronym>TCL</acronym> <acronym>GUI</acronym> Toolkit.</para> TCL GUI Toolkit.</para>
<sect3><title>Package information</title> <bridgehead renderas="sect3">Package Information</bridgehead>
<itemizedlist spacing='compact'> <itemizedlist spacing="compact">
<listitem><para>Download (HTTP): <ulink <listitem>
url="&tk-download-http;"/></para></listitem> <para>Download (HTTP): <ulink url="&tk-download-http;"/></para>
<listitem><para>Download (FTP): <ulink </listitem>
url="&tk-download-ftp;"/></para></listitem> <listitem>
<listitem><para>Download MD5 sum: &tk-md5sum;</para></listitem> <para>Download (FTP): <ulink url="&tk-download-ftp;"/></para>
<listitem><para>Download size: &tk-size;</para></listitem> </listitem>
<listitem><para>Estimated disk space required: <listitem>
&tk-buildsize;</para></listitem> <para>Download MD5 sum: &tk-md5sum;</para>
<listitem><para>Estimated build time: </listitem>
&tk-time;</para></listitem></itemizedlist> <listitem>
</sect3> <para>Download size: &tk-size;</para>
</listitem>
<listitem>
<para>Estimated disk space required: &tk-buildsize;</para>
</listitem>
<listitem>
<para>Estimated build time: &tk-time;</para>
</listitem>
</itemizedlist>
<sect3><title><application>Tk</application> dependencies</title> <bridgehead renderas="sect3">Tk Dependencies</bridgehead>
<sect4><title>Required</title>
<bridgehead renderas="sect4">Required</bridgehead>
<para>X (<xref linkend="xfree86"/> or <xref linkend="xorg"/>) and <para>X (<xref linkend="xfree86"/> or <xref linkend="xorg"/>) and
<xref linkend="tcl"/></para></sect4> <xref linkend="tcl"/></para>
</sect3>
</sect2> </sect2>
<sect2> <sect2 role="installation">
<title>Installation of <application>Tk</application></title> <title>Installation of Tk</title>
<para>Install <application>Tk</application> by running the following <para>Install <application>Tk</application> by running the following
commands:</para> commands:</para>
<screen><userinput><command>export VERSION=&tk-version; &amp;&amp; <screen><userinput>export VERSION=&tk-version; &amp;&amp;
export V=`echo $VERSION | cut -d "." -f 1,2` &amp;&amp; export V=`echo $VERSION | cut -d "." -f 1,2` &amp;&amp;
export DIR=$PWD &amp;&amp; export DIR=$PWD &amp;&amp;
cd unix &amp;&amp; cd unix &amp;&amp;
./configure --prefix=/usr --enable-threads &amp;&amp; ./configure --prefix=/usr --enable-threads &amp;&amp;
make &amp;&amp; make &amp;&amp;
sed -i "s:${DIR}/unix:/usr/lib:" tkConfig.sh &amp;&amp; sed -i "s:${DIR}/unix:/usr/lib:" tkConfig.sh &amp;&amp;
sed -i "s:${DIR}:/usr/include/tk${V}:" tkConfig.sh</command></userinput></screen> sed -i "s:${DIR}:/usr/include/tk${V}:" tkConfig.sh</userinput></screen>
<para>To test the results, issue: <command>make test</command>. Ensure <para>To test the results, issue: <command>make test</command>.
you do it from an X Window display device with the Ensure you do it from an X Window display device with the
<acronym>GLX</acronym> extensions loaded, else the tests will GLX extensions loaded, else the tests will hang.</para>
hang.</para>
<para>Now, as the root user:</para> <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
<screen><userinput role='root'><command>make install &amp;&amp; <screen role="root"><userinput>make install &amp;&amp;
install -d /usr/include/tk${V}/unix &amp;&amp; install -v -d /usr/include/tk${V}/unix &amp;&amp;
install -m644 *.h /usr/include/tk${V}/unix/ &amp;&amp; install -v -m644 *.h /usr/include/tk${V}/unix/ &amp;&amp;
install -d /usr/include/tk${V}/generic &amp;&amp; install -v -d /usr/include/tk${V}/generic &amp;&amp;
install -m644 ../generic/*.h /usr/include/tk${V}/generic/ &amp;&amp; install -v -m644 ../generic/*.h /usr/include/tk${V}/generic/ &amp;&amp;
rm -f /usr/include/tk${V}/generic/{tk,tkDecls,tkPlatDecls}.h &amp;&amp; rm -v -f /usr/include/tk${V}/generic/{tk,tkDecls,tkPlatDecls}.h &amp;&amp;
ln -nsf ../../include/tk${V} /usr/lib/tk${V}/include &amp;&amp; ln -v -nsf ../../include/tk${V} /usr/lib/tk${V}/include &amp;&amp;
ln -sf libtk${V}.so /usr/lib/libtk.so &amp;&amp; ln -v -sf libtk${V}.so /usr/lib/libtk.so &amp;&amp;
ln -sf wish${V} /usr/bin/wish</command></userinput></screen> ln -v -sf wish${V} /usr/bin/wish</userinput></screen>
<para>Clean up the unprivileged user's environment using the following <para>Clean up the unprivileged user's environment using the following
commands:</para> commands:</para>
<screen><userinput><command>unset VERSION &amp;&amp; <screen><userinput>unset VERSION &amp;&amp;
unset V &amp;&amp; unset V &amp;&amp;
unset DIR</command></userinput></screen> unset DIR</userinput></screen>
<!-- <!--
<caution><para>If you build the package as an ordinary user and then switch to <caution>
<para>If you build the package as an ordinary user and then switch to
root to install the package, ensure you set the environment variables root to install the package, ensure you set the environment variables
<envar>V</envar> and <envar>VERSION</envar> before running the installation <envar>V</envar> and <envar>VERSION</envar> before running the installation
commands.</para></caution> commands.</para>
</caution>
--> -->
</sect2> </sect2>
<sect2> <sect2 role="commands">
<title>Command explanations</title> <title>Command Explanations</title>
<para><parameter>--enable-threads</parameter>: This switch forces the package <para><parameter>--enable-threads</parameter>: This switch forces the package
to build with thread support.</para> to build with thread support.</para>
@ -114,12 +127,12 @@ locations.</para>
<para><command>install ...</command>: These commands install the internal <para><command>install ...</command>: These commands install the internal
headers into a system-wide location.</para> headers into a system-wide location.</para>
<para><command>ln -sf ...</command>: These commands create compatibility <para><command>ln -v -sf ...</command>: These commands create compatibility
symbolic links.</para> symbolic links.</para>
</sect2> </sect2>
<sect2> <sect2 role="content">
<title>Contents</title> <title>Contents</title>
<segmentedlist> <segmentedlist>
@ -137,33 +150,41 @@ symbolic links.</para>
<variablelist> <variablelist>
<bridgehead renderas="sect3">Short Descriptions</bridgehead> <bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?> <?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="wish"> <varlistentry id="wish">
<term><command>wish</command></term> <term><command>wish</command></term>
<listitem><para> is a symlink to the <command>wish8.4</command> program.</para> <listitem>
<para> is a symlink to the <command>wish8.4</command> program.</para>
<indexterm zone="tk wish"> <indexterm zone="tk wish">
<primary sortas="b-wish">wish</primary></indexterm> <primary sortas="b-wish">wish</primary>
</indexterm>
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry id="wish8.4"> <varlistentry id="wish8.4">
<term><command>wish8.4</command></term> <term><command>wish8.4</command></term>
<listitem><para> is a simple shell containing the <listitem>
<para> is a simple shell containing the
<application>Tk</application> toolkit that creates a main window and <application>Tk</application> toolkit that creates a main window and
then processes <application>Tcl</application> commands.</para> then processes <application>Tcl</application> commands.</para>
<indexterm zone="tk wish8.4"> <indexterm zone="tk wish8.4">
<primary sortas="b-wish8.4">wish8.4</primary></indexterm> <primary sortas="b-wish8.4">wish8.4</primary>
</indexterm>
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry id="libtk"> <varlistentry id="libtk">
<term><filename role="library">libtk.so</filename></term> <term><filename role="library">libtk.so</filename></term>
<listitem><para>contains the <acronym>API</acronym> functions required <listitem>
<para>contains the API functions required
by <application>Tk</application>.</para> by <application>Tk</application>.</para>
<indexterm zone="tk libtk"> <indexterm zone="tk libtk">
<primary sortas="c-libtk">libtk.so</primary></indexterm> <primary sortas="c-libtk">libtk.so</primary>
</indexterm>
</listitem> </listitem>
</varlistentry> </varlistentry>
</variablelist> </variablelist>
</sect2> </sect2>