[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">
|
---|
[ab5d4aa7] | 9 | <!ENTITY tk-md5sum "7cdeb9feb61593f58a0ae61f2497580e">
|
---|
| 10 | <!ENTITY tk-size "3.8 MB">
|
---|
[dd01532b] | 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 |
|
---|
[4a40984] | 38 | &lfs71_checked;
|
---|
| 39 |
|
---|
[516af114] | 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>
|
---|
[e77976f] | 65 | <para role="required"><xref linkend="x-window-system"/> and
|
---|
[516af114] | 66 | <xref linkend="tcl"/></para>
|
---|
| 67 |
|
---|
[1039de3] | 68 | <para condition="html" role="usernotes">User Notes:
|
---|
| 69 | <ulink url="&blfs-wiki;/tk"/></para>
|
---|
| 70 |
|
---|
[516af114] | 71 | </sect2>
|
---|
| 72 |
|
---|
| 73 | <sect2 role="installation">
|
---|
| 74 | <title>Installation of Tk</title>
|
---|
[511fd69c] | 75 |
|
---|
[7cd76d62] | 76 | <para>Install <application>Tk</application> by running the following
|
---|
[511fd69c] | 77 | commands:</para>
|
---|
| 78 |
|
---|
[33fd7e43] | 79 | <screen><userinput>cd unix &&
|
---|
[1d82919] | 80 | ./configure --prefix=/usr \
|
---|
| 81 | --enable-threads \
|
---|
| 82 | --mandir=/usr/share/man &&
|
---|
[206b7a1] | 83 | make &&
|
---|
| 84 | sed -i \
|
---|
| 85 | -e "s@^\(TK_SRC_DIR='\).*@\1/usr/include'@" \
|
---|
| 86 | -e "/TK_B/s@='\(-L\)\?.*unix@='\1/usr/lib@" \
|
---|
[d6e5d4f] | 87 | tkConfig.sh</userinput></screen>
|
---|
[516af114] | 88 |
|
---|
[36f2c9e] | 89 | <para>Running the tests is not recommended. Some tests may crash your X
|
---|
| 90 | Server. To test the results anyway, issue: <command>make test</command>.
|
---|
| 91 | Ensure you run it from an X Window display device with the GLX extensions
|
---|
[56afacb4] | 92 | loaded, otherwise the tests will hang.</para>
|
---|
[516af114] | 93 |
|
---|
| 94 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 95 |
|
---|
| 96 | <screen role="root"><userinput>make install &&
|
---|
[33fd7e43] | 97 | make install-private-headers &&
|
---|
[dd01532b] | 98 | ln -v -sf wish&tk-ver; /usr/bin/wish &&
|
---|
[0e91c2b] | 99 | chmod -v 755 /usr/lib/libtk8.5.so</userinput></screen>
|
---|
[d8614521] | 100 |
|
---|
[516af114] | 101 | </sect2>
|
---|
| 102 |
|
---|
| 103 | <sect2 role="commands">
|
---|
| 104 | <title>Command Explanations</title>
|
---|
| 105 |
|
---|
[36f2c9e] | 106 | <para><parameter>--enable-threads</parameter>: This switch forces the
|
---|
| 107 | package to build with thread support.</para>
|
---|
[4c34d6e2] | 108 |
|
---|
[33fd7e43] | 109 | <para><command>make install-private-headers</command>: This command is
|
---|
| 110 | used to install the <application>Tk</application> library interface
|
---|
| 111 | headers used by other packages if they link to the
|
---|
| 112 | <application>Tk</application> library.</para>
|
---|
| 113 |
|
---|
| 114 | <para><command>ln -v -sf wish&tk-ver; /usr/bin/wish</command>: This
|
---|
| 115 | command is used to create a compatibility symbolic link to the
|
---|
| 116 | <command>wish&tk-ver;</command> file as many packages expect a file
|
---|
| 117 | named <command>wish</command>.</para>
|
---|
| 118 |
|
---|
[4c34d6e2] | 119 | <para><command>sed -i -e ... tkConfig.sh</command>: The
|
---|
[36f2c9e] | 120 | <application>Tk</application> package expects that its source tree is
|
---|
| 121 | preserved so that packages depending on it for their compilation
|
---|
| 122 | can utilize it. This <command>sed</command> removes the references to the
|
---|
| 123 | build directory and replaces them with saner system-wide locations.</para>
|
---|
[516af114] | 124 |
|
---|
| 125 | </sect2>
|
---|
| 126 |
|
---|
| 127 | <sect2 role="content">
|
---|
| 128 | <title>Contents</title>
|
---|
| 129 |
|
---|
| 130 | <segmentedlist>
|
---|
| 131 | <segtitle>Installed Programs</segtitle>
|
---|
| 132 | <segtitle>Installed Libraries</segtitle>
|
---|
| 133 | <segtitle>Installed Directories</segtitle>
|
---|
| 134 |
|
---|
| 135 | <seglistitem>
|
---|
[36f2c9e] | 136 | <seg>wish and wish&tk-ver;</seg>
|
---|
| 137 | <seg>libtk.so and libtkstub&tk-ver;.a</seg>
|
---|
[85eca89b] | 138 | <seg>/usr/lib/tk&tk-ver;</seg>
|
---|
[516af114] | 139 | </seglistitem>
|
---|
| 140 | </segmentedlist>
|
---|
| 141 |
|
---|
| 142 | <variablelist>
|
---|
| 143 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 144 | <?dbfo list-presentation="list"?>
|
---|
| 145 | <?dbhtml list-presentation="table"?>
|
---|
| 146 |
|
---|
| 147 | <varlistentry id="wish">
|
---|
| 148 | <term><command>wish</command></term>
|
---|
| 149 | <listitem>
|
---|
[36f2c9e] | 150 | <para> is a symlink to the <command>wish&tk-ver;</command>
|
---|
| 151 | program.</para>
|
---|
[516af114] | 152 | <indexterm zone="tk wish">
|
---|
[40d6bab] | 153 | <primary sortas="g-wish">wish</primary>
|
---|
[516af114] | 154 | </indexterm>
|
---|
| 155 | </listitem>
|
---|
| 156 | </varlistentry>
|
---|
| 157 |
|
---|
[36f2c9e] | 158 | <varlistentry id="wish-eight">
|
---|
| 159 | <term><command>wish&tk-ver;</command></term>
|
---|
[516af114] | 160 | <listitem>
|
---|
| 161 | <para> is a simple shell containing the
|
---|
| 162 | <application>Tk</application> toolkit that creates a main window and
|
---|
| 163 | then processes <application>Tcl</application> commands.</para>
|
---|
[36f2c9e] | 164 | <indexterm zone="tk wish-eight">
|
---|
| 165 | <primary sortas="b-wish&tk-ver;">wish&tk-ver;</primary>
|
---|
[516af114] | 166 | </indexterm>
|
---|
| 167 | </listitem>
|
---|
| 168 | </varlistentry>
|
---|
| 169 |
|
---|
| 170 | <varlistentry id="libtk">
|
---|
| 171 | <term><filename role="library">libtk.so</filename></term>
|
---|
| 172 | <listitem>
|
---|
| 173 | <para>contains the API functions required
|
---|
| 174 | by <application>Tk</application>.</para>
|
---|
| 175 | <indexterm zone="tk libtk">
|
---|
| 176 | <primary sortas="c-libtk">libtk.so</primary>
|
---|
| 177 | </indexterm>
|
---|
| 178 | </listitem>
|
---|
| 179 | </varlistentry>
|
---|
| 180 |
|
---|
| 181 | </variablelist>
|
---|
| 182 |
|
---|
| 183 | </sect2>
|
---|
[c4f1401] | 184 |
|
---|
| 185 | </sect1>
|
---|