[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">
|
---|
[1d82919] | 8 | <!ENTITY tk-download-ftp "&gentoo-ftp-repo;/tk&tk-version;-src.tar.gz">
|
---|
[dd01532b] | 9 | <!ENTITY tk-md5sum "13bf90602e16fc530e05196431021dc6">
|
---|
| 10 | <!ENTITY tk-size "3.7 MB">
|
---|
| 11 | <!ENTITY tk-buildsize "32 MB">
|
---|
[56afacb4] | 12 | <!ENTITY tk-time "0.5 SBU">
|
---|
[4d62032] | 13 |
|
---|
[dd01532b] | 14 | <!-- Ensure this is updated when Tk moves from the 8.5.x branch -->
|
---|
[56afacb4] | 15 | <!ENTITY tk-ver "8.5">
|
---|
[52d29f7] | 16 | ]>
|
---|
| 17 |
|
---|
[503b39f] | 18 | <sect1 id="tk" xreflabel="Tk-&tk-version;">
|
---|
[516af114] | 19 | <?dbhtml filename="tk.html"?>
|
---|
| 20 |
|
---|
| 21 | <sect1info>
|
---|
| 22 | <othername>$LastChangedBy$</othername>
|
---|
| 23 | <date>$Date$</date>
|
---|
| 24 | </sect1info>
|
---|
| 25 |
|
---|
| 26 | <title>Tk-&tk-version;</title>
|
---|
| 27 |
|
---|
| 28 | <indexterm zone="tk">
|
---|
| 29 | <primary sortas="a-Tk">Tk</primary>
|
---|
| 30 | </indexterm>
|
---|
| 31 |
|
---|
| 32 | <sect2 role="package">
|
---|
| 33 | <title>Introduction to Tk</title>
|
---|
| 34 |
|
---|
| 35 | <para>The <application>Tk</application> package contains a
|
---|
| 36 | TCL GUI Toolkit.</para>
|
---|
| 37 |
|
---|
| 38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 39 | <itemizedlist spacing="compact">
|
---|
| 40 | <listitem>
|
---|
| 41 | <para>Download (HTTP): <ulink url="&tk-download-http;"/></para>
|
---|
| 42 | </listitem>
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>Download (FTP): <ulink url="&tk-download-ftp;"/></para>
|
---|
| 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>Download MD5 sum: &tk-md5sum;</para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>Download size: &tk-size;</para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>Estimated disk space required: &tk-buildsize;</para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>Estimated build time: &tk-time;</para>
|
---|
| 57 | </listitem>
|
---|
| 58 | </itemizedlist>
|
---|
| 59 |
|
---|
| 60 | <bridgehead renderas="sect3">Tk Dependencies</bridgehead>
|
---|
| 61 |
|
---|
| 62 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[e77976f] | 63 | <para role="required"><xref linkend="x-window-system"/> and
|
---|
[516af114] | 64 | <xref linkend="tcl"/></para>
|
---|
| 65 |
|
---|
[1039de3] | 66 | <para condition="html" role="usernotes">User Notes:
|
---|
| 67 | <ulink url="&blfs-wiki;/tk"/></para>
|
---|
| 68 |
|
---|
[516af114] | 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 |
|
---|
[33fd7e43] | 77 | <screen><userinput>cd unix &&
|
---|
[1d82919] | 78 | ./configure --prefix=/usr \
|
---|
| 79 | --enable-threads \
|
---|
| 80 | --mandir=/usr/share/man &&
|
---|
[206b7a1] | 81 | make &&
|
---|
| 82 | sed -i \
|
---|
| 83 | -e "s@^\(TK_SRC_DIR='\).*@\1/usr/include'@" \
|
---|
| 84 | -e "/TK_B/s@='\(-L\)\?.*unix@='\1/usr/lib@" \
|
---|
[d6e5d4f] | 85 | tkConfig.sh</userinput></screen>
|
---|
[516af114] | 86 |
|
---|
[36f2c9e] | 87 | <para>Running the tests is not recommended. Some tests may crash your X
|
---|
| 88 | Server. To test the results anyway, issue: <command>make test</command>.
|
---|
| 89 | Ensure you run it from an X Window display device with the GLX extensions
|
---|
[56afacb4] | 90 | loaded, otherwise the tests will hang.</para>
|
---|
[516af114] | 91 |
|
---|
| 92 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 93 |
|
---|
| 94 | <screen role="root"><userinput>make install &&
|
---|
[33fd7e43] | 95 | make install-private-headers &&
|
---|
[dd01532b] | 96 | ln -v -sf wish&tk-ver; /usr/bin/wish &&
|
---|
[0e91c2b] | 97 | chmod -v 755 /usr/lib/libtk8.5.so</userinput></screen>
|
---|
[d8614521] | 98 |
|
---|
[516af114] | 99 | </sect2>
|
---|
| 100 |
|
---|
| 101 | <sect2 role="commands">
|
---|
| 102 | <title>Command Explanations</title>
|
---|
| 103 |
|
---|
[36f2c9e] | 104 | <para><parameter>--enable-threads</parameter>: This switch forces the
|
---|
| 105 | package to build with thread support.</para>
|
---|
[4c34d6e2] | 106 |
|
---|
[33fd7e43] | 107 | <para><command>make install-private-headers</command>: This command is
|
---|
| 108 | used to install the <application>Tk</application> library interface
|
---|
| 109 | headers used by other packages if they link to the
|
---|
| 110 | <application>Tk</application> library.</para>
|
---|
| 111 |
|
---|
| 112 | <para><command>ln -v -sf wish&tk-ver; /usr/bin/wish</command>: This
|
---|
| 113 | command is used to create a compatibility symbolic link to the
|
---|
| 114 | <command>wish&tk-ver;</command> file as many packages expect a file
|
---|
| 115 | named <command>wish</command>.</para>
|
---|
| 116 |
|
---|
[4c34d6e2] | 117 | <para><command>sed -i -e ... tkConfig.sh</command>: The
|
---|
[36f2c9e] | 118 | <application>Tk</application> package expects that its source tree is
|
---|
| 119 | preserved so that packages depending on it for their compilation
|
---|
| 120 | can utilize it. This <command>sed</command> removes the references to the
|
---|
| 121 | build directory and replaces them with saner system-wide locations.</para>
|
---|
[516af114] | 122 |
|
---|
| 123 | </sect2>
|
---|
| 124 |
|
---|
| 125 | <sect2 role="content">
|
---|
| 126 | <title>Contents</title>
|
---|
| 127 |
|
---|
| 128 | <segmentedlist>
|
---|
| 129 | <segtitle>Installed Programs</segtitle>
|
---|
| 130 | <segtitle>Installed Libraries</segtitle>
|
---|
| 131 | <segtitle>Installed Directories</segtitle>
|
---|
| 132 |
|
---|
| 133 | <seglistitem>
|
---|
[36f2c9e] | 134 | <seg>wish and wish&tk-ver;</seg>
|
---|
| 135 | <seg>libtk.so and libtkstub&tk-ver;.a</seg>
|
---|
[85eca89b] | 136 | <seg>/usr/lib/tk&tk-ver;</seg>
|
---|
[516af114] | 137 | </seglistitem>
|
---|
| 138 | </segmentedlist>
|
---|
| 139 |
|
---|
| 140 | <variablelist>
|
---|
| 141 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 142 | <?dbfo list-presentation="list"?>
|
---|
| 143 | <?dbhtml list-presentation="table"?>
|
---|
| 144 |
|
---|
| 145 | <varlistentry id="wish">
|
---|
| 146 | <term><command>wish</command></term>
|
---|
| 147 | <listitem>
|
---|
[36f2c9e] | 148 | <para> is a symlink to the <command>wish&tk-ver;</command>
|
---|
| 149 | program.</para>
|
---|
[516af114] | 150 | <indexterm zone="tk wish">
|
---|
[40d6bab] | 151 | <primary sortas="g-wish">wish</primary>
|
---|
[516af114] | 152 | </indexterm>
|
---|
| 153 | </listitem>
|
---|
| 154 | </varlistentry>
|
---|
| 155 |
|
---|
[36f2c9e] | 156 | <varlistentry id="wish-eight">
|
---|
| 157 | <term><command>wish&tk-ver;</command></term>
|
---|
[516af114] | 158 | <listitem>
|
---|
| 159 | <para> is a simple shell containing the
|
---|
| 160 | <application>Tk</application> toolkit that creates a main window and
|
---|
| 161 | then processes <application>Tcl</application> commands.</para>
|
---|
[36f2c9e] | 162 | <indexterm zone="tk wish-eight">
|
---|
| 163 | <primary sortas="b-wish&tk-ver;">wish&tk-ver;</primary>
|
---|
[516af114] | 164 | </indexterm>
|
---|
| 165 | </listitem>
|
---|
| 166 | </varlistentry>
|
---|
| 167 |
|
---|
| 168 | <varlistentry id="libtk">
|
---|
| 169 | <term><filename role="library">libtk.so</filename></term>
|
---|
| 170 | <listitem>
|
---|
| 171 | <para>contains the API functions required
|
---|
| 172 | by <application>Tk</application>.</para>
|
---|
| 173 | <indexterm zone="tk libtk">
|
---|
| 174 | <primary sortas="c-libtk">libtk.so</primary>
|
---|
| 175 | </indexterm>
|
---|
| 176 | </listitem>
|
---|
| 177 | </varlistentry>
|
---|
| 178 |
|
---|
| 179 | </variablelist>
|
---|
| 180 |
|
---|
| 181 | </sect2>
|
---|
[c4f1401] | 182 |
|
---|
| 183 | </sect1>
|
---|