[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[52d29f7] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[fce275e] | 7 | <!ENTITY tk-download-http "&sourceforge-repo;/tcl/tk&tk-version;-src.tar.gz">
|
---|
[c786e55] | 8 | <!ENTITY tk-download-ftp " ">
|
---|
[7368969] | 9 | <!-- might be useful again in the future
|
---|
| 10 | <!ENTITY tk-download-ftp "&gentoo-ftp-repo;/tk&tk-version;-src.tar.gz">-->
|
---|
| 11 | <!ENTITY tk-md5sum "a01640176845c1f654a412cfc9bab13b">
|
---|
[e8f7606] | 12 | <!ENTITY tk-size "3.7 MB">
|
---|
| 13 | <!ENTITY tk-buildsize "28 MB">
|
---|
[7368969] | 14 | <!ENTITY tk-time "0.3 SBU">
|
---|
[4d62032] | 15 |
|
---|
[dd01532b] | 16 | <!-- Ensure this is updated when Tk moves from the 8.5.x branch -->
|
---|
[56afacb4] | 17 | <!ENTITY tk-ver "8.5">
|
---|
[52d29f7] | 18 | ]>
|
---|
| 19 |
|
---|
[503b39f] | 20 | <sect1 id="tk" xreflabel="Tk-&tk-version;">
|
---|
[516af114] | 21 | <?dbhtml filename="tk.html"?>
|
---|
| 22 |
|
---|
| 23 | <sect1info>
|
---|
| 24 | <othername>$LastChangedBy$</othername>
|
---|
| 25 | <date>$Date$</date>
|
---|
| 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 |
|
---|
[e8f7606] | 37 | <para>
|
---|
| 38 | The <application>Tk</application> package contains a
|
---|
| 39 | TCL GUI Toolkit.
|
---|
| 40 | </para>
|
---|
[516af114] | 41 |
|
---|
[43a4e608] | 42 | &lfs72_checked;
|
---|
[4a40984] | 43 |
|
---|
[516af114] | 44 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 45 | <itemizedlist spacing="compact">
|
---|
| 46 | <listitem>
|
---|
[e8f7606] | 47 | <para>
|
---|
| 48 | Download (HTTP): <ulink url="&tk-download-http;"/>
|
---|
| 49 | </para>
|
---|
[516af114] | 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
[e8f7606] | 52 | <para>
|
---|
| 53 | Download (FTP): <ulink url="&tk-download-ftp;"/>
|
---|
| 54 | </para>
|
---|
[516af114] | 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
[e8f7606] | 57 | <para>
|
---|
| 58 | Download MD5 sum: &tk-md5sum;
|
---|
| 59 | </para>
|
---|
[516af114] | 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
[e8f7606] | 62 | <para>
|
---|
| 63 | Download size: &tk-size;
|
---|
| 64 | </para>
|
---|
[516af114] | 65 | </listitem>
|
---|
| 66 | <listitem>
|
---|
[e8f7606] | 67 | <para>
|
---|
| 68 | Estimated disk space required: &tk-buildsize;
|
---|
| 69 | </para>
|
---|
[516af114] | 70 | </listitem>
|
---|
| 71 | <listitem>
|
---|
[e8f7606] | 72 | <para>
|
---|
| 73 | Estimated build time: &tk-time;
|
---|
| 74 | </para>
|
---|
[516af114] | 75 | </listitem>
|
---|
| 76 | </itemizedlist>
|
---|
| 77 |
|
---|
| 78 | <bridgehead renderas="sect3">Tk Dependencies</bridgehead>
|
---|
| 79 |
|
---|
| 80 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[e8f7606] | 81 | <para role="required">
|
---|
| 82 | <xref linkend="tcl"/> and
|
---|
| 83 | <xref linkend="xorg7-lib"/>
|
---|
| 84 | </para>
|
---|
[516af114] | 85 |
|
---|
[1039de3] | 86 | <para condition="html" role="usernotes">User Notes:
|
---|
| 87 | <ulink url="&blfs-wiki;/tk"/></para>
|
---|
| 88 |
|
---|
[516af114] | 89 | </sect2>
|
---|
| 90 |
|
---|
| 91 | <sect2 role="installation">
|
---|
| 92 | <title>Installation of Tk</title>
|
---|
[511fd69c] | 93 |
|
---|
[e8f7606] | 94 | <para>
|
---|
| 95 | Install <application>Tk</application> by running the following
|
---|
| 96 | commands:
|
---|
| 97 | </para>
|
---|
[511fd69c] | 98 |
|
---|
[33fd7e43] | 99 | <screen><userinput>cd unix &&
|
---|
[1d82919] | 100 | ./configure --prefix=/usr \
|
---|
| 101 | --enable-threads \
|
---|
| 102 | --mandir=/usr/share/man &&
|
---|
[206b7a1] | 103 | make &&
|
---|
[e8f7606] | 104 | sed -e "s@^\(TK_SRC_DIR='\).*@\1/usr/include'@" \
|
---|
[206b7a1] | 105 | -e "/TK_B/s@='\(-L\)\?.*unix@='\1/usr/lib@" \
|
---|
[e8f7606] | 106 | -i tkConfig.sh</userinput></screen>
|
---|
[516af114] | 107 |
|
---|
[e8f7606] | 108 | <para>
|
---|
| 109 | Running the tests is not recommended. Some tests may crash your X
|
---|
| 110 | Server. To test the results anyway, issue: <command>make test</command>.
|
---|
| 111 | Ensure you run it from an X Window display device with the GLX extensions
|
---|
| 112 | loaded, otherwise the tests will hang.
|
---|
| 113 | </para>
|
---|
[516af114] | 114 |
|
---|
[e8f7606] | 115 | <para>
|
---|
| 116 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 117 | </para>
|
---|
[516af114] | 118 |
|
---|
| 119 | <screen role="root"><userinput>make install &&
|
---|
[33fd7e43] | 120 | make install-private-headers &&
|
---|
[dd01532b] | 121 | ln -v -sf wish&tk-ver; /usr/bin/wish &&
|
---|
[e8f7606] | 122 | chmod -v 755 /usr/lib/libtk&tk-ver;.so</userinput></screen>
|
---|
[d8614521] | 123 |
|
---|
[516af114] | 124 | </sect2>
|
---|
| 125 |
|
---|
| 126 | <sect2 role="commands">
|
---|
| 127 | <title>Command Explanations</title>
|
---|
| 128 |
|
---|
[e8f7606] | 129 | <para>
|
---|
| 130 | <option>--enable-threads</option>: This switch forces the
|
---|
| 131 | package to build with thread support.
|
---|
| 132 | </para>
|
---|
| 133 |
|
---|
| 134 | <para>
|
---|
| 135 | <command>make install-private-headers</command>: This command is
|
---|
| 136 | used to install the <application>Tk</application> library interface
|
---|
| 137 | headers used by other packages if they link to the
|
---|
| 138 | <application>Tk</application> library.
|
---|
| 139 | </para>
|
---|
| 140 |
|
---|
| 141 | <para>
|
---|
| 142 | <command>ln -v -sf wish&tk-ver; /usr/bin/wish</command>: This
|
---|
| 143 | command is used to create a compatibility symbolic link to the
|
---|
| 144 | <command>wish&tk-ver;</command> file as many packages expect a file
|
---|
| 145 | named <command>wish</command>.
|
---|
| 146 | </para>
|
---|
| 147 |
|
---|
| 148 | <para>
|
---|
| 149 | <command>sed -e ... tkConfig.sh</command>: The
|
---|
| 150 | <application>Tk</application> package expects that its source tree is
|
---|
| 151 | preserved so that packages depending on it for their compilation
|
---|
| 152 | can utilize it. This <command>sed</command> removes the references to the
|
---|
| 153 | build directory and replaces them with saner system-wide locations.
|
---|
| 154 | </para>
|
---|
[516af114] | 155 |
|
---|
| 156 | </sect2>
|
---|
| 157 |
|
---|
| 158 | <sect2 role="content">
|
---|
| 159 | <title>Contents</title>
|
---|
| 160 |
|
---|
| 161 | <segmentedlist>
|
---|
| 162 | <segtitle>Installed Programs</segtitle>
|
---|
| 163 | <segtitle>Installed Libraries</segtitle>
|
---|
[e8f7606] | 164 | <segtitle>Installed Directory</segtitle>
|
---|
[516af114] | 165 |
|
---|
| 166 | <seglistitem>
|
---|
[e8f7606] | 167 | <seg>
|
---|
| 168 | wish and wish&tk-ver;
|
---|
| 169 | </seg>
|
---|
| 170 | <seg>
|
---|
| 171 | libtk&tk-ver;.so and libtkstub&tk-ver;.a
|
---|
| 172 | </seg>
|
---|
| 173 | <seg>
|
---|
| 174 | /usr/lib/tk&tk-ver;
|
---|
| 175 | </seg>
|
---|
[516af114] | 176 | </seglistitem>
|
---|
| 177 | </segmentedlist>
|
---|
| 178 |
|
---|
| 179 | <variablelist>
|
---|
| 180 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 181 | <?dbfo list-presentation="list"?>
|
---|
| 182 | <?dbhtml list-presentation="table"?>
|
---|
| 183 |
|
---|
| 184 | <varlistentry id="wish">
|
---|
| 185 | <term><command>wish</command></term>
|
---|
| 186 | <listitem>
|
---|
[e8f7606] | 187 | <para>
|
---|
| 188 | is a symlink to the <command>wish&tk-ver;</command> program.
|
---|
| 189 | </para>
|
---|
[516af114] | 190 | <indexterm zone="tk wish">
|
---|
[b960e3ec] | 191 | <primary sortas="b-wish">wish</primary>
|
---|
[516af114] | 192 | </indexterm>
|
---|
| 193 | </listitem>
|
---|
| 194 | </varlistentry>
|
---|
| 195 |
|
---|
[36f2c9e] | 196 | <varlistentry id="wish-eight">
|
---|
| 197 | <term><command>wish&tk-ver;</command></term>
|
---|
[516af114] | 198 | <listitem>
|
---|
[e8f7606] | 199 | <para>
|
---|
| 200 | is a simple shell containing the
|
---|
| 201 | <application>Tk</application> toolkit that creates a main window and
|
---|
| 202 | then processes <application>Tcl</application> commands.
|
---|
| 203 | </para>
|
---|
[36f2c9e] | 204 | <indexterm zone="tk wish-eight">
|
---|
| 205 | <primary sortas="b-wish&tk-ver;">wish&tk-ver;</primary>
|
---|
[516af114] | 206 | </indexterm>
|
---|
| 207 | </listitem>
|
---|
| 208 | </varlistentry>
|
---|
| 209 |
|
---|
| 210 | <varlistentry id="libtk">
|
---|
[e8f7606] | 211 | <term><filename role="library">libtk&tk-ver;.so</filename></term>
|
---|
[516af114] | 212 | <listitem>
|
---|
[e8f7606] | 213 | <para>
|
---|
| 214 | contains the API functions required
|
---|
| 215 | by <application>Tk</application>.
|
---|
| 216 | </para>
|
---|
[516af114] | 217 | <indexterm zone="tk libtk">
|
---|
[e8f7606] | 218 | <primary sortas="c-libtk">libtk&tk-ver;.so</primary>
|
---|
[516af114] | 219 | </indexterm>
|
---|
| 220 | </listitem>
|
---|
| 221 | </varlistentry>
|
---|
| 222 |
|
---|
| 223 | </variablelist>
|
---|
| 224 |
|
---|
| 225 | </sect2>
|
---|
[c4f1401] | 226 |
|
---|
| 227 | </sect1>
|
---|