[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ff769b8c] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[52d29f7] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[516af114] | 7 | <!ENTITY tk-download-http "http://prdownloads.sourceforge.net/tcl/tk&tk-version;-src.tar.gz">
|
---|
[88dd4702] | 8 | <!ENTITY tk-download-ftp " ">
|
---|
| 9 | <!-- <!ENTITY tk-download-ftp "ftp://ftp.us.xemacs.org/pub/tcl/tcl8_4/tk&tk-version;-src.tar.gz"> -->
|
---|
| 10 | <!ENTITY tk-md5sum "316491cb82d898b434842353aed1f0d6">
|
---|
| 11 | <!ENTITY tk-size "3.2 MB">
|
---|
| 12 | <!ENTITY tk-buildsize "23.5 MB">
|
---|
| 13 | <!ENTITY tk-time "0.4 SBU">
|
---|
[52d29f7] | 14 | ]>
|
---|
| 15 |
|
---|
[503b39f] | 16 | <sect1 id="tk" xreflabel="Tk-&tk-version;">
|
---|
[516af114] | 17 | <?dbhtml filename="tk.html"?>
|
---|
| 18 |
|
---|
| 19 | <sect1info>
|
---|
| 20 | <othername>$LastChangedBy$</othername>
|
---|
| 21 | <date>$Date$</date>
|
---|
[256ee72c] | 22 | <keywordset>
|
---|
| 23 | <keyword role="package">tk&tk-version;-src.tar</keyword>
|
---|
[22ac237] | 24 | <keyword role="ftpdir">tk</keyword>
|
---|
[256ee72c] | 25 | </keywordset>
|
---|
[516af114] | 26 | </sect1info>
|
---|
| 27 |
|
---|
| 28 | <title>Tk-&tk-version;</title>
|
---|
| 29 |
|
---|
| 30 | <indexterm zone="tk">
|
---|
| 31 | <primary sortas="a-Tk">Tk</primary>
|
---|
| 32 | </indexterm>
|
---|
| 33 |
|
---|
| 34 | <sect2 role="package">
|
---|
| 35 | <title>Introduction to Tk</title>
|
---|
| 36 |
|
---|
| 37 | <para>The <application>Tk</application> package contains a
|
---|
| 38 | TCL GUI Toolkit.</para>
|
---|
| 39 |
|
---|
| 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>Download (HTTP): <ulink url="&tk-download-http;"/></para>
|
---|
| 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>Download (FTP): <ulink url="&tk-download-ftp;"/></para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>Download MD5 sum: &tk-md5sum;</para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>Download size: &tk-size;</para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>Estimated disk space required: &tk-buildsize;</para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>Estimated build time: &tk-time;</para>
|
---|
| 59 | </listitem>
|
---|
| 60 | </itemizedlist>
|
---|
| 61 |
|
---|
| 62 | <bridgehead renderas="sect3">Tk Dependencies</bridgehead>
|
---|
| 63 |
|
---|
| 64 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[371ff30] | 65 | <para role="required">X (<xref linkend="xfree86"/>, <xref linkend="xorg"/>,
|
---|
| 66 | or <xref linkend="xorg7"/>) and
|
---|
[516af114] | 67 | <xref linkend="tcl"/></para>
|
---|
| 68 |
|
---|
| 69 | </sect2>
|
---|
| 70 |
|
---|
| 71 | <sect2 role="installation">
|
---|
| 72 | <title>Installation of Tk</title>
|
---|
[511fd69c] | 73 |
|
---|
[7cd76d62] | 74 | <para>Install <application>Tk</application> by running the following
|
---|
[511fd69c] | 75 | commands:</para>
|
---|
| 76 |
|
---|
[516af114] | 77 | <screen><userinput>export VERSION=&tk-version; &&
|
---|
[d8614521] | 78 | export V=`echo $VERSION | cut -d "." -f 1,2` &&
|
---|
| 79 | export DIR=$PWD &&
|
---|
[52d29f7] | 80 | cd unix &&
|
---|
[4c34d6e2] | 81 | sed -i "s/relid'/relid/" configure &&
|
---|
[53cdded4] | 82 | ./configure --prefix=/usr --enable-threads &&
|
---|
[52d29f7] | 83 | make &&
|
---|
[4c34d6e2] | 84 | sed -i -e "s:${DIR}/unix:/usr/lib:" \
|
---|
| 85 | -e "s:${DIR}:/usr/include/tk${V}:" tkConfig.sh</userinput></screen>
|
---|
[516af114] | 86 |
|
---|
[906cca2] | 87 | <para>The test is not recommended. Some tests may crash your X Server. To
|
---|
| 88 | test the results, issue: <command>make test</command>. Ensure you run it
|
---|
| 89 | from an X Window display device with the GLX extensions loaded, else the
|
---|
| 90 | tests will hang.</para>
|
---|
[516af114] | 91 |
|
---|
| 92 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 93 |
|
---|
[daa8f42] | 94 | <caution>
|
---|
[88dd4702] | 95 | <para>If you become the <systemitem class="username">root</systemitem>
|
---|
| 96 | user in a manner that doesn't preserve the unprivileged user's
|
---|
| 97 | environment, ensure you correctly set the environment variable
|
---|
| 98 | <envar>V</envar> again before running the installation commands.</para>
|
---|
[daa8f42] | 99 | </caution>
|
---|
| 100 |
|
---|
[516af114] | 101 | <screen role="root"><userinput>make install &&
|
---|
| 102 | install -v -d /usr/include/tk${V}/unix &&
|
---|
| 103 | install -v -m644 *.h /usr/include/tk${V}/unix/ &&
|
---|
| 104 | install -v -d /usr/include/tk${V}/generic &&
|
---|
| 105 | install -v -m644 ../generic/*.h /usr/include/tk${V}/generic/ &&
|
---|
| 106 | rm -v -f /usr/include/tk${V}/generic/{tk,tkDecls,tkPlatDecls}.h &&
|
---|
| 107 | ln -v -nsf ../../include/tk${V} /usr/lib/tk${V}/include &&
|
---|
| 108 | ln -v -sf libtk${V}.so /usr/lib/libtk.so &&
|
---|
| 109 | ln -v -sf wish${V} /usr/bin/wish</userinput></screen>
|
---|
| 110 |
|
---|
| 111 | <para>Clean up the unprivileged user's environment using the following
|
---|
| 112 | commands:</para>
|
---|
[d8614521] | 113 |
|
---|
[516af114] | 114 | <screen><userinput>unset VERSION &&
|
---|
[d8614521] | 115 | unset V &&
|
---|
[516af114] | 116 | unset DIR</userinput></screen>
|
---|
[d8614521] | 117 |
|
---|
[516af114] | 118 | </sect2>
|
---|
| 119 |
|
---|
| 120 | <sect2 role="commands">
|
---|
| 121 | <title>Command Explanations</title>
|
---|
| 122 |
|
---|
| 123 | <para><parameter>--enable-threads</parameter>: This switch forces the package
|
---|
| 124 | to build with thread support.</para>
|
---|
| 125 |
|
---|
[4c34d6e2] | 126 | <para><command>sed -i "s/relid'/relid/" configure</command>: This command
|
---|
| 127 | fixes a syntax error in the <command>configure</command> script.</para>
|
---|
| 128 |
|
---|
| 129 | <para><command>sed -i -e ... tkConfig.sh</command>: The
|
---|
| 130 | <application>Tk</application> package assumes that the source used to build
|
---|
| 131 | <application>Tk</application> is always kept around for compiling packages
|
---|
| 132 | that depend on <application>Tk</application>. This <command>sed</command>
|
---|
[4cf3eb1] | 133 | removes the references to the build directory and replaces them with saner
|
---|
[4c34d6e2] | 134 | system-wide locations.</para>
|
---|
[516af114] | 135 |
|
---|
| 136 | <para><command>install ...</command>: These commands install the internal
|
---|
| 137 | headers into a system-wide location.</para>
|
---|
| 138 |
|
---|
| 139 | <para><command>ln -v -sf ...</command>: These commands create compatibility
|
---|
| 140 | symbolic links.</para>
|
---|
| 141 |
|
---|
| 142 | </sect2>
|
---|
| 143 |
|
---|
| 144 | <sect2 role="content">
|
---|
| 145 | <title>Contents</title>
|
---|
| 146 |
|
---|
| 147 | <segmentedlist>
|
---|
| 148 | <segtitle>Installed Programs</segtitle>
|
---|
| 149 | <segtitle>Installed Libraries</segtitle>
|
---|
| 150 | <segtitle>Installed Directories</segtitle>
|
---|
| 151 |
|
---|
| 152 | <seglistitem>
|
---|
| 153 | <seg>wish and wish8.4</seg>
|
---|
| 154 | <seg>libtk.so and libtkstub8.4.a</seg>
|
---|
| 155 | <seg>/usr/include/tk8.4 and /usr/lib/tk8.4</seg>
|
---|
| 156 | </seglistitem>
|
---|
| 157 | </segmentedlist>
|
---|
| 158 |
|
---|
| 159 | <variablelist>
|
---|
| 160 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 161 | <?dbfo list-presentation="list"?>
|
---|
| 162 | <?dbhtml list-presentation="table"?>
|
---|
| 163 |
|
---|
| 164 | <varlistentry id="wish">
|
---|
| 165 | <term><command>wish</command></term>
|
---|
| 166 | <listitem>
|
---|
| 167 | <para> is a symlink to the <command>wish8.4</command> program.</para>
|
---|
| 168 | <indexterm zone="tk wish">
|
---|
[40d6bab] | 169 | <primary sortas="g-wish">wish</primary>
|
---|
[516af114] | 170 | </indexterm>
|
---|
| 171 | </listitem>
|
---|
| 172 | </varlistentry>
|
---|
| 173 |
|
---|
| 174 | <varlistentry id="wish8.4">
|
---|
| 175 | <term><command>wish8.4</command></term>
|
---|
| 176 | <listitem>
|
---|
| 177 | <para> is a simple shell containing the
|
---|
| 178 | <application>Tk</application> toolkit that creates a main window and
|
---|
| 179 | then processes <application>Tcl</application> commands.</para>
|
---|
| 180 | <indexterm zone="tk wish8.4">
|
---|
| 181 | <primary sortas="b-wish8.4">wish8.4</primary>
|
---|
| 182 | </indexterm>
|
---|
| 183 | </listitem>
|
---|
| 184 | </varlistentry>
|
---|
| 185 |
|
---|
| 186 | <varlistentry id="libtk">
|
---|
| 187 | <term><filename role="library">libtk.so</filename></term>
|
---|
| 188 | <listitem>
|
---|
| 189 | <para>contains the API functions required
|
---|
| 190 | by <application>Tk</application>.</para>
|
---|
| 191 | <indexterm zone="tk libtk">
|
---|
| 192 | <primary sortas="c-libtk">libtk.so</primary>
|
---|
| 193 | </indexterm>
|
---|
| 194 | </listitem>
|
---|
| 195 | </varlistentry>
|
---|
| 196 |
|
---|
| 197 | </variablelist>
|
---|
| 198 |
|
---|
| 199 | </sect2>
|
---|
[c4f1401] | 200 |
|
---|
| 201 | </sect1>
|
---|