[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY tk-download-http "http://prdownloads.sourceforge.net/tcl/tk&tk-version;-src.tar.gz">
|
---|
| 8 | <!ENTITY tk-download-ftp "ftp://ftp.us.xemacs.org/pub/tcl/tcl8_4/tk&tk-version;-src.tar.gz">
|
---|
[53cdded4] | 9 | <!ENTITY tk-size "3.2 MB">
|
---|
| 10 | <!ENTITY tk-buildsize "26 MB">
|
---|
[f3d509e] | 11 | <!ENTITY tk-time "0.40 SBU">
|
---|
[52d29f7] | 12 | ]>
|
---|
| 13 |
|
---|
[503b39f] | 14 | <sect1 id="tk" xreflabel="Tk-&tk-version;">
|
---|
[a0f03b0] | 15 | <sect1info>
|
---|
[5cd0959d] | 16 | <othername>$LastChangedBy$</othername>
|
---|
| 17 | <date>$Date$</date>
|
---|
[a0f03b0] | 18 | </sect1info>
|
---|
[19aa75a] | 19 | <?dbhtml filename="tk.html"?>
|
---|
[503b39f] | 20 | <title>Tk-&tk-version;</title>
|
---|
[6a2bce2] | 21 | <indexterm zone="tk">
|
---|
| 22 | <primary sortas="a-Tk">Tk</primary></indexterm>
|
---|
[c4f1401] | 23 |
|
---|
[52d29f7] | 24 | <sect2>
|
---|
| 25 | <title>Introduction to <application>Tk</application></title>
|
---|
[511fd69c] | 26 |
|
---|
| 27 | <para>The <application>Tk</application> package contains a
|
---|
[52d29f7] | 28 | <acronym>TCL</acronym> <acronym>GUI</acronym> Toolkit.</para>
|
---|
[511fd69c] | 29 |
|
---|
[52d29f7] | 30 | <sect3><title>Package information</title>
|
---|
| 31 | <itemizedlist spacing='compact'>
|
---|
| 32 | <listitem><para>Download (HTTP): <ulink
|
---|
| 33 | url="&tk-download-http;"/></para></listitem>
|
---|
| 34 | <listitem><para>Download (FTP): <ulink
|
---|
| 35 | url="&tk-download-ftp;"/></para></listitem>
|
---|
| 36 | <listitem><para>Download size: &tk-size;</para></listitem>
|
---|
[f3d509e] | 37 | <listitem><para>Estimated disk space required:
|
---|
[52d29f7] | 38 | &tk-buildsize;</para></listitem>
|
---|
| 39 | <listitem><para>Estimated build time:
|
---|
| 40 | &tk-time;</para></listitem></itemizedlist>
|
---|
| 41 | </sect3>
|
---|
[511fd69c] | 42 |
|
---|
[52d29f7] | 43 | <sect3><title><application>Tk</application> dependencies</title>
|
---|
| 44 | <sect4><title>Required</title>
|
---|
[511fd69c] | 45 | <para>X (<xref linkend="xfree86"/> or <xref linkend="xorg"/>) and
|
---|
| 46 | <xref linkend="tcl"/></para></sect4>
|
---|
[52d29f7] | 47 | </sect3>
|
---|
| 48 |
|
---|
| 49 | </sect2>
|
---|
| 50 |
|
---|
| 51 | <sect2>
|
---|
| 52 | <title>Installation of <application>Tk</application></title>
|
---|
[511fd69c] | 53 |
|
---|
| 54 | <para>Install <application>Tk</application> by running the following
|
---|
| 55 | commands:</para>
|
---|
| 56 |
|
---|
[52d29f7] | 57 | <screen><userinput><command>VERSION=&tk-version; &&
|
---|
| 58 | V=`echo $VERSION | cut -d "." -f 1,2` &&
|
---|
| 59 | DIR=$PWD &&
|
---|
| 60 | cd unix &&
|
---|
[53cdded4] | 61 | ./configure --prefix=/usr --enable-threads &&
|
---|
[52d29f7] | 62 | make &&
|
---|
| 63 | sed -i "s:${DIR}/unix:/usr/lib:" tkConfig.sh &&
|
---|
| 64 | sed -i "s:${DIR}:/usr/include/tk${V}:" tkConfig.sh &&
|
---|
| 65 | make install &&
|
---|
| 66 | install -d /usr/include/tk${V}/unix &&
|
---|
| 67 | install -m644 *.h /usr/include/tk${V}/unix/ &&
|
---|
| 68 | install -d /usr/include/tk${V}/generic &&
|
---|
| 69 | install -m644 ../generic/*.h /usr/include/tk${V}/generic/ &&
|
---|
| 70 | rm -f /usr/include/tk${V}/generic/{tk,tkDecls,tkPlatDecls}.h &&
|
---|
[e2aa32b3] | 71 | ln -nsf ../../include/tk${V} /usr/lib/tk${V}/include &&
|
---|
[52d29f7] | 72 | ln -sf libtk${V}.so /usr/lib/libtk.so &&
|
---|
| 73 | ln -sf wish${V} /usr/bin/wish</command></userinput></screen>
|
---|
[511fd69c] | 74 |
|
---|
[785d6d2f] | 75 | <caution><para>If you build the package as an ordinary user and then switch to
|
---|
[53cdded4] | 76 | root to install the package, ensure you set the environment variables
|
---|
[511fd69c] | 77 | <envar>V</envar> and <envar>VERSION</envar> before running the installation
|
---|
[785d6d2f] | 78 | commands.</para></caution>
|
---|
[511fd69c] | 79 |
|
---|
[52d29f7] | 80 | </sect2>
|
---|
| 81 |
|
---|
| 82 | <sect2>
|
---|
| 83 | <title>Command explanations</title>
|
---|
[511fd69c] | 84 |
|
---|
[53cdded4] | 85 | <para><parameter>--enable-threads</parameter>: This switch forces the package
|
---|
| 86 | to build with thread support.</para>
|
---|
| 87 |
|
---|
[52d29f7] | 88 | <para><command>sed -i ...</command>: The <application>Tk</application> package
|
---|
| 89 | assumes that the source that is used to build <application>Tk</application> is
|
---|
| 90 | always kept around for compiling packages that depend on
|
---|
| 91 | <application>Tk</application>. These <command>sed</command>'s remove the
|
---|
| 92 | reference to the build directory and replace them by saner system wide
|
---|
| 93 | locations.</para>
|
---|
[511fd69c] | 94 |
|
---|
[52d29f7] | 95 | <para><command>install ...</command>: These commands install the internal
|
---|
| 96 | headers into a system-wide location.</para>
|
---|
[511fd69c] | 97 |
|
---|
[52d29f7] | 98 | <para><command>ln -sf ...</command>: These commands create compatibility
|
---|
| 99 | symbolic links.</para>
|
---|
[511fd69c] | 100 |
|
---|
| 101 | </sect2>
|
---|
| 102 |
|
---|
| 103 | <sect2>
|
---|
| 104 | <title>Contents</title>
|
---|
| 105 |
|
---|
[bad8b53] | 106 | <segmentedlist>
|
---|
| 107 | <segtitle>Installed Program</segtitle>
|
---|
| 108 | <segtitle>Installed Library</segtitle>
|
---|
| 109 | <segtitle>Installed Directories</segtitle>
|
---|
| 110 | <seglistitem>
|
---|
| 111 | <seg>wish</seg>
|
---|
| 112 | <seg>libtk</seg>
|
---|
| 113 | <seg>/usr/lib/tk8.4 and /usr/include/tk8.4</seg></seglistitem>
|
---|
| 114 | </segmentedlist>
|
---|
| 115 |
|
---|
| 116 | <variablelist>
|
---|
| 117 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 118 | <?dbfo list-presentation="list"?>
|
---|
| 119 |
|
---|
| 120 | <varlistentry id="wish">
|
---|
| 121 | <term><command>wish</command></term>
|
---|
| 122 | <listitem><para> is a simple shell containing the
|
---|
| 123 | <application>Tk</application> toolkit that creates a main window and
|
---|
| 124 | then processes <application>Tcl</application> commands.</para>
|
---|
[6a2bce2] | 125 | <indexterm zone="tk wish">
|
---|
| 126 | <primary sortas="b-wish">wish</primary></indexterm>
|
---|
[bad8b53] | 127 | </listitem>
|
---|
| 128 | </varlistentry>
|
---|
| 129 |
|
---|
| 130 | <varlistentry id="libtk">
|
---|
| 131 | <term><filename role="library">libtk.so</filename></term>
|
---|
| 132 | <listitem><para>contains the <acronym>API</acronym> functions required
|
---|
| 133 | by <application>Tk</application>.</para>
|
---|
[6a2bce2] | 134 | <indexterm zone="tk libtk">
|
---|
| 135 | <primary sortas="c-libtk">libtk.so</primary></indexterm>
|
---|
[bad8b53] | 136 | </listitem>
|
---|
| 137 | </varlistentry>
|
---|
| 138 |
|
---|
| 139 | </variablelist>
|
---|
[511fd69c] | 140 |
|
---|
[52d29f7] | 141 | </sect2>
|
---|
[c4f1401] | 142 |
|
---|
| 143 | </sect1>
|
---|