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