[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">
|
---|
[906cca2] | 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 "408e34fe8a1cec497f98f05bbe89b348">
|
---|
| 11 | <!ENTITY tk-size "3.1 MB">
|
---|
| 12 | <!ENTITY tk-buildsize "21.6 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>
|
---|
| 24 | <keyword role="ftptdir">tk</keyword>
|
---|
| 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>
|
---|
[256ee72c] | 65 | <para role="required">X (<xref linkend="xfree86"/> or <xref linkend="xorg"/>) and
|
---|
[516af114] | 66 | <xref linkend="tcl"/></para>
|
---|
| 67 |
|
---|
| 68 | </sect2>
|
---|
| 69 |
|
---|
| 70 | <sect2 role="installation">
|
---|
| 71 | <title>Installation of Tk</title>
|
---|
[511fd69c] | 72 |
|
---|
[7cd76d62] | 73 | <para>Install <application>Tk</application> by running the following
|
---|
[511fd69c] | 74 | commands:</para>
|
---|
| 75 |
|
---|
[516af114] | 76 | <screen><userinput>export VERSION=&tk-version; &&
|
---|
[d8614521] | 77 | export V=`echo $VERSION | cut -d "." -f 1,2` &&
|
---|
| 78 | export DIR=$PWD &&
|
---|
[52d29f7] | 79 | cd unix &&
|
---|
[53cdded4] | 80 | ./configure --prefix=/usr --enable-threads &&
|
---|
[52d29f7] | 81 | make &&
|
---|
| 82 | sed -i "s:${DIR}/unix:/usr/lib:" tkConfig.sh &&
|
---|
[516af114] | 83 | sed -i "s:${DIR}:/usr/include/tk${V}:" tkConfig.sh</userinput></screen>
|
---|
| 84 |
|
---|
[906cca2] | 85 | <para>The test is not recommended. Some tests may crash your X Server. To
|
---|
| 86 | test the results, issue: <command>make test</command>. Ensure you run it
|
---|
| 87 | from an X Window display device with the GLX extensions loaded, else the
|
---|
| 88 | tests will hang.</para>
|
---|
[516af114] | 89 |
|
---|
| 90 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 91 |
|
---|
[daa8f42] | 92 | <caution>
|
---|
| 93 | <para>If you don't use <command>su</command> to become the
|
---|
| 94 | <systemitem class="username">root</systemitem> user, ensure you set the
|
---|
| 95 | environment variables <envar>VERSION</envar> and <envar>V</envar> again
|
---|
| 96 | before running the installation commands.</para>
|
---|
| 97 | </caution>
|
---|
| 98 |
|
---|
[516af114] | 99 | <screen role="root"><userinput>make install &&
|
---|
| 100 | install -v -d /usr/include/tk${V}/unix &&
|
---|
| 101 | install -v -m644 *.h /usr/include/tk${V}/unix/ &&
|
---|
| 102 | install -v -d /usr/include/tk${V}/generic &&
|
---|
| 103 | install -v -m644 ../generic/*.h /usr/include/tk${V}/generic/ &&
|
---|
| 104 | rm -v -f /usr/include/tk${V}/generic/{tk,tkDecls,tkPlatDecls}.h &&
|
---|
| 105 | ln -v -nsf ../../include/tk${V} /usr/lib/tk${V}/include &&
|
---|
| 106 | ln -v -sf libtk${V}.so /usr/lib/libtk.so &&
|
---|
| 107 | ln -v -sf wish${V} /usr/bin/wish</userinput></screen>
|
---|
| 108 |
|
---|
| 109 | <para>Clean up the unprivileged user's environment using the following
|
---|
| 110 | commands:</para>
|
---|
[d8614521] | 111 |
|
---|
[516af114] | 112 | <screen><userinput>unset VERSION &&
|
---|
[d8614521] | 113 | unset V &&
|
---|
[516af114] | 114 | unset DIR</userinput></screen>
|
---|
[d8614521] | 115 |
|
---|
[516af114] | 116 | </sect2>
|
---|
| 117 |
|
---|
| 118 | <sect2 role="commands">
|
---|
| 119 | <title>Command Explanations</title>
|
---|
| 120 |
|
---|
| 121 | <para><parameter>--enable-threads</parameter>: This switch forces the package
|
---|
| 122 | to build with thread support.</para>
|
---|
| 123 |
|
---|
| 124 | <para><command>sed -i ...</command>: The <application>Tk</application> package
|
---|
[40d6bab] | 125 | assumes that the source used to build <application>Tk</application> is
|
---|
[516af114] | 126 | always kept around for compiling packages that depend on
|
---|
[40d6bab] | 127 | <application>Tk</application>. These <command>sed</command>s remove the
|
---|
| 128 | reference to the build directory and replace them by saner system-wide
|
---|
[516af114] | 129 | locations.</para>
|
---|
| 130 |
|
---|
| 131 | <para><command>install ...</command>: These commands install the internal
|
---|
| 132 | headers into a system-wide location.</para>
|
---|
| 133 |
|
---|
| 134 | <para><command>ln -v -sf ...</command>: These commands create compatibility
|
---|
| 135 | symbolic links.</para>
|
---|
| 136 |
|
---|
| 137 | </sect2>
|
---|
| 138 |
|
---|
| 139 | <sect2 role="content">
|
---|
| 140 | <title>Contents</title>
|
---|
| 141 |
|
---|
| 142 | <segmentedlist>
|
---|
| 143 | <segtitle>Installed Programs</segtitle>
|
---|
| 144 | <segtitle>Installed Libraries</segtitle>
|
---|
| 145 | <segtitle>Installed Directories</segtitle>
|
---|
| 146 |
|
---|
| 147 | <seglistitem>
|
---|
| 148 | <seg>wish and wish8.4</seg>
|
---|
| 149 | <seg>libtk.so and libtkstub8.4.a</seg>
|
---|
| 150 | <seg>/usr/include/tk8.4 and /usr/lib/tk8.4</seg>
|
---|
| 151 | </seglistitem>
|
---|
| 152 | </segmentedlist>
|
---|
| 153 |
|
---|
| 154 | <variablelist>
|
---|
| 155 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 156 | <?dbfo list-presentation="list"?>
|
---|
| 157 | <?dbhtml list-presentation="table"?>
|
---|
| 158 |
|
---|
| 159 | <varlistentry id="wish">
|
---|
| 160 | <term><command>wish</command></term>
|
---|
| 161 | <listitem>
|
---|
| 162 | <para> is a symlink to the <command>wish8.4</command> program.</para>
|
---|
| 163 | <indexterm zone="tk wish">
|
---|
[40d6bab] | 164 | <primary sortas="g-wish">wish</primary>
|
---|
[516af114] | 165 | </indexterm>
|
---|
| 166 | </listitem>
|
---|
| 167 | </varlistentry>
|
---|
| 168 |
|
---|
| 169 | <varlistentry id="wish8.4">
|
---|
| 170 | <term><command>wish8.4</command></term>
|
---|
| 171 | <listitem>
|
---|
| 172 | <para> is a simple shell containing the
|
---|
| 173 | <application>Tk</application> toolkit that creates a main window and
|
---|
| 174 | then processes <application>Tcl</application> commands.</para>
|
---|
| 175 | <indexterm zone="tk wish8.4">
|
---|
| 176 | <primary sortas="b-wish8.4">wish8.4</primary>
|
---|
| 177 | </indexterm>
|
---|
| 178 | </listitem>
|
---|
| 179 | </varlistentry>
|
---|
| 180 |
|
---|
| 181 | <varlistentry id="libtk">
|
---|
| 182 | <term><filename role="library">libtk.so</filename></term>
|
---|
| 183 | <listitem>
|
---|
| 184 | <para>contains the API functions required
|
---|
| 185 | by <application>Tk</application>.</para>
|
---|
| 186 | <indexterm zone="tk libtk">
|
---|
| 187 | <primary sortas="c-libtk">libtk.so</primary>
|
---|
| 188 | </indexterm>
|
---|
| 189 | </listitem>
|
---|
| 190 | </varlistentry>
|
---|
| 191 |
|
---|
| 192 | </variablelist>
|
---|
| 193 |
|
---|
| 194 | </sect2>
|
---|
[c4f1401] | 195 |
|
---|
| 196 | </sect1>
|
---|