2004-06-13 06:56:28 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2005-04-04 04:52:42 +08:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
2004-06-13 06:56:28 +08:00
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2006-04-27 18:48:30 +08:00
|
|
|
<!-- Inserted as a reminder to do this. The mention of a test suite
|
|
|
|
is usually right before the root user installation commands. Please
|
|
|
|
delete these 12 (including one blank) lines after you are done.-->
|
|
|
|
|
|
|
|
<!-- Use one of the two mentions below about a test suite,
|
|
|
|
delete the line that is not applicable. Of course, if the
|
|
|
|
test suite uses syntax other than "make check", revise the
|
|
|
|
line to reflect the actual syntax to run the test suite -->
|
|
|
|
|
|
|
|
<!-- <para>This package does not come with a test suite.</para> -->
|
|
|
|
<!-- <para>To test the results, issue: <command>make check</command>.</para> -->
|
|
|
|
|
2005-05-06 04:46:59 +08:00
|
|
|
<!ENTITY tk-download-http "http://prdownloads.sourceforge.net/tcl/tk&tk-version;-src.tar.gz">
|
2006-03-27 04:13:16 +08:00
|
|
|
<!ENTITY tk-download-ftp " ">
|
|
|
|
<!-- <!ENTITY tk-download-ftp "ftp://ftp.us.xemacs.org/pub/tcl/tcl8_4/tk&tk-version;-src.tar.gz"> -->
|
|
|
|
<!ENTITY tk-md5sum "316491cb82d898b434842353aed1f0d6">
|
|
|
|
<!ENTITY tk-size "3.2 MB">
|
|
|
|
<!ENTITY tk-buildsize "23.5 MB">
|
|
|
|
<!ENTITY tk-time "0.4 SBU">
|
2004-06-13 06:56:28 +08:00
|
|
|
]>
|
|
|
|
|
2003-10-05 18:00:31 +08:00
|
|
|
<sect1 id="tk" xreflabel="Tk-&tk-version;">
|
2005-05-06 04:46:59 +08:00
|
|
|
<?dbhtml filename="tk.html"?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
2005-12-03 03:19:41 +08:00
|
|
|
<keywordset>
|
|
|
|
<keyword role="package">tk&tk-version;-src.tar</keyword>
|
2005-12-09 04:34:05 +08:00
|
|
|
<keyword role="ftpdir">tk</keyword>
|
2005-12-03 03:19:41 +08:00
|
|
|
</keywordset>
|
2005-05-06 04:46:59 +08:00
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>Tk-&tk-version;</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
|
|
|
|
TCL GUI Toolkit.</para>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>Download (HTTP): <ulink url="&tk-download-http;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download (FTP): <ulink url="&tk-download-ftp;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download MD5 sum: &tk-md5sum;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<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>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Tk Dependencies</bridgehead>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
2006-04-10 00:06:53 +08:00
|
|
|
<para role="required"><xref linkend="x-window-system"/> and
|
2005-05-06 04:46:59 +08:00
|
|
|
<xref linkend="tcl"/></para>
|
|
|
|
|
2006-04-11 02:35:56 +08:00
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
|
|
<ulink url="&blfs-wiki;/tk"/></para>
|
|
|
|
|
2005-05-06 04:46:59 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of Tk</title>
|
2004-07-28 03:39:58 +08:00
|
|
|
|
2005-05-31 05:38:32 +08:00
|
|
|
<para>Install <application>Tk</application> by running the following
|
2004-07-28 03:39:58 +08:00
|
|
|
commands:</para>
|
|
|
|
|
2005-05-06 04:46:59 +08:00
|
|
|
<screen><userinput>export VERSION=&tk-version; &&
|
2005-01-31 07:01:56 +08:00
|
|
|
export V=`echo $VERSION | cut -d "." -f 1,2` &&
|
|
|
|
export DIR=$PWD &&
|
2004-06-13 06:56:28 +08:00
|
|
|
cd unix &&
|
2005-12-25 04:09:19 +08:00
|
|
|
sed -i "s/relid'/relid/" configure &&
|
2004-10-14 12:18:18 +08:00
|
|
|
./configure --prefix=/usr --enable-threads &&
|
2004-06-13 06:56:28 +08:00
|
|
|
make &&
|
2005-12-25 04:09:19 +08:00
|
|
|
sed -i -e "s:${DIR}/unix:/usr/lib:" \
|
|
|
|
-e "s:${DIR}:/usr/include/tk${V}:" tkConfig.sh</userinput></screen>
|
2005-05-06 04:46:59 +08:00
|
|
|
|
2005-07-14 23:09:23 +08:00
|
|
|
<para>The test is not recommended. Some tests may crash your X Server. To
|
|
|
|
test the results, issue: <command>make test</command>. Ensure you run it
|
|
|
|
from an X Window display device with the GLX extensions loaded, else the
|
|
|
|
tests will hang.</para>
|
2005-05-06 04:46:59 +08:00
|
|
|
|
|
|
|
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
|
|
|
|
2005-09-11 08:46:32 +08:00
|
|
|
<caution>
|
2006-03-27 04:13:16 +08:00
|
|
|
<para>If you become the <systemitem class="username">root</systemitem>
|
|
|
|
user in a manner that doesn't preserve the unprivileged user's
|
|
|
|
environment, ensure you correctly set the environment variable
|
|
|
|
<envar>V</envar> again before running the installation commands.</para>
|
2005-09-11 08:46:32 +08:00
|
|
|
</caution>
|
|
|
|
|
2005-05-06 04:46:59 +08:00
|
|
|
<screen role="root"><userinput>make install &&
|
|
|
|
install -v -d /usr/include/tk${V}/unix &&
|
|
|
|
install -v -m644 *.h /usr/include/tk${V}/unix/ &&
|
|
|
|
install -v -d /usr/include/tk${V}/generic &&
|
|
|
|
install -v -m644 ../generic/*.h /usr/include/tk${V}/generic/ &&
|
|
|
|
rm -v -f /usr/include/tk${V}/generic/{tk,tkDecls,tkPlatDecls}.h &&
|
|
|
|
ln -v -nsf ../../include/tk${V} /usr/lib/tk${V}/include &&
|
|
|
|
ln -v -sf libtk${V}.so /usr/lib/libtk.so &&
|
|
|
|
ln -v -sf wish${V} /usr/bin/wish</userinput></screen>
|
|
|
|
|
|
|
|
<para>Clean up the unprivileged user's environment using the following
|
|
|
|
commands:</para>
|
2005-01-31 07:01:56 +08:00
|
|
|
|
2005-05-06 04:46:59 +08:00
|
|
|
<screen><userinput>unset VERSION &&
|
2005-01-31 07:01:56 +08:00
|
|
|
unset V &&
|
2005-05-06 04:46:59 +08:00
|
|
|
unset DIR</userinput></screen>
|
2005-01-31 07:01:56 +08:00
|
|
|
|
2005-05-06 04:46:59 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
|
|
|
<para><parameter>--enable-threads</parameter>: This switch forces the package
|
|
|
|
to build with thread support.</para>
|
|
|
|
|
2005-12-25 04:09:19 +08:00
|
|
|
<para><command>sed -i "s/relid'/relid/" configure</command>: This command
|
|
|
|
fixes a syntax error in the <command>configure</command> script.</para>
|
|
|
|
|
|
|
|
<para><command>sed -i -e ... tkConfig.sh</command>: The
|
|
|
|
<application>Tk</application> package assumes that the source used to build
|
|
|
|
<application>Tk</application> is always kept around for compiling packages
|
|
|
|
that depend on <application>Tk</application>. This <command>sed</command>
|
2005-12-25 04:39:36 +08:00
|
|
|
removes the references to the build directory and replaces them with saner
|
2005-12-25 04:09:19 +08:00
|
|
|
system-wide locations.</para>
|
2005-05-06 04:46:59 +08:00
|
|
|
|
|
|
|
<para><command>install ...</command>: These commands install the internal
|
|
|
|
headers into a system-wide location.</para>
|
|
|
|
|
|
|
|
<para><command>ln -v -sf ...</command>: These commands create compatibility
|
|
|
|
symbolic links.</para>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
|
|
|
<seg>wish and wish8.4</seg>
|
|
|
|
<seg>libtk.so and libtkstub8.4.a</seg>
|
|
|
|
<seg>/usr/include/tk8.4 and /usr/lib/tk8.4</seg>
|
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="wish">
|
|
|
|
<term><command>wish</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para> is a symlink to the <command>wish8.4</command> program.</para>
|
|
|
|
<indexterm zone="tk wish">
|
2005-07-28 04:49:55 +08:00
|
|
|
<primary sortas="g-wish">wish</primary>
|
2005-05-06 04:46:59 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="wish8.4">
|
|
|
|
<term><command>wish8.4</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para> is a simple shell containing the
|
|
|
|
<application>Tk</application> toolkit that creates a main window and
|
|
|
|
then processes <application>Tcl</application> commands.</para>
|
|
|
|
<indexterm zone="tk wish8.4">
|
|
|
|
<primary sortas="b-wish8.4">wish8.4</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="libtk">
|
|
|
|
<term><filename role="library">libtk.so</filename></term>
|
|
|
|
<listitem>
|
|
|
|
<para>contains the API functions required
|
|
|
|
by <application>Tk</application>.</para>
|
|
|
|
<indexterm zone="tk libtk">
|
|
|
|
<primary sortas="c-libtk">libtk.so</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
2003-09-21 23:07:05 +08:00
|
|
|
|
|
|
|
</sect1>
|