[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 |
|
---|
[15b3bc29] | 7 | <!ENTITY tk-download-http "http://downloads.sourceforge.net/tcl/tk&tk-version;-src.tar.gz">
|
---|
[1d82919] | 8 | <!ENTITY tk-download-ftp "&gentoo-ftp-repo;/tk&tk-version;-src.tar.gz">
|
---|
| 9 | <!ENTITY tk-md5sum "bf52be013df31198b144d1ca72b094fb">
|
---|
[4d62032] | 10 | <!ENTITY tk-size "3.3 MB">
|
---|
[2478f1b] | 11 | <!ENTITY tk-buildsize "23 MB">
|
---|
| 12 | <!ENTITY tk-time "0.3 SBU">
|
---|
[4d62032] | 13 |
|
---|
[36f2c9e] | 14 | <!-- Ensure this is updated when Tk moves to the 8.5.x branch -->
|
---|
| 15 | <!ENTITY tk-ver "8.4">
|
---|
[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@" \
|
---|
| 85 | -e "/SEARCH/s/=.*/=''/" \
|
---|
[d6e5d4f] | 86 | tkConfig.sh</userinput></screen>
|
---|
[516af114] | 87 |
|
---|
[36f2c9e] | 88 | <para>Running the tests is not recommended. Some tests may crash your X
|
---|
| 89 | Server. To test the results anyway, issue: <command>make test</command>.
|
---|
| 90 | Ensure you run it from an X Window display device with the GLX extensions
|
---|
| 91 | loaded, else the tests will hang.</para>
|
---|
[516af114] | 92 |
|
---|
| 93 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 94 |
|
---|
| 95 | <screen role="root"><userinput>make install &&
|
---|
[33fd7e43] | 96 | make install-private-headers &&
|
---|
| 97 | ln -v -sf wish&tk-ver; /usr/bin/wish</userinput></screen>
|
---|
| 98 |
|
---|
| 99 | <!-- This is removed per discussion and fairly vigorous testing
|
---|
[36f2c9e] | 100 | install -v -m755 -d /usr/include/tk&tk-ver;/{unix,generic} &&
|
---|
| 101 | install -v -m644 *.h /usr/include/tk&tk-ver;/unix/ &&
|
---|
| 102 | install -v -m644 ../generic/*.h /usr/include/tk&tk-ver;/generic/ &&
|
---|
| 103 | rm -v -f /usr/include/tk&tk-ver;/generic/tk{,{,Plat}Decls}.h &&
|
---|
| 104 | ln -v -nsf ../../include/tk&tk-ver; /usr/lib/tk&tk-ver;/include &&
|
---|
| 105 | ln -v -sf libtk&tk-ver;.so /usr/lib/libtk.so &&
|
---|
| 106 | ln -v -sf wish&tk-ver; /usr/bin/wish</userinput></screen>
|
---|
[33fd7e43] | 107 | -->
|
---|
[d8614521] | 108 |
|
---|
[516af114] | 109 | </sect2>
|
---|
| 110 |
|
---|
| 111 | <sect2 role="commands">
|
---|
| 112 | <title>Command Explanations</title>
|
---|
| 113 |
|
---|
[36f2c9e] | 114 | <para><parameter>--enable-threads</parameter>: This switch forces the
|
---|
| 115 | package to build with thread support.</para>
|
---|
[4c34d6e2] | 116 |
|
---|
[33fd7e43] | 117 | <para><command>make install-private-headers</command>: This command is
|
---|
| 118 | used to install the <application>Tk</application> library interface
|
---|
| 119 | headers used by other packages if they link to the
|
---|
| 120 | <application>Tk</application> library.</para>
|
---|
| 121 |
|
---|
| 122 | <para><command>ln -v -sf wish&tk-ver; /usr/bin/wish</command>: This
|
---|
| 123 | command is used to create a compatibility symbolic link to the
|
---|
| 124 | <command>wish&tk-ver;</command> file as many packages expect a file
|
---|
| 125 | named <command>wish</command>.</para>
|
---|
| 126 |
|
---|
[4c34d6e2] | 127 | <para><command>sed -i -e ... tkConfig.sh</command>: The
|
---|
[36f2c9e] | 128 | <application>Tk</application> package expects that its source tree is
|
---|
| 129 | preserved so that packages depending on it for their compilation
|
---|
| 130 | can utilize it. This <command>sed</command> removes the references to the
|
---|
| 131 | build directory and replaces them with saner system-wide locations.</para>
|
---|
[516af114] | 132 |
|
---|
[410e228b] | 133 | <!--
|
---|
[516af114] | 134 | <para><command>install ...</command>: These commands install the internal
|
---|
| 135 | headers into a system-wide location.</para>
|
---|
| 136 |
|
---|
| 137 | <para><command>ln -v -sf ...</command>: These commands create compatibility
|
---|
| 138 | symbolic links.</para>
|
---|
[33fd7e43] | 139 | -->
|
---|
[516af114] | 140 |
|
---|
| 141 | </sect2>
|
---|
| 142 |
|
---|
| 143 | <sect2 role="content">
|
---|
| 144 | <title>Contents</title>
|
---|
| 145 |
|
---|
| 146 | <segmentedlist>
|
---|
| 147 | <segtitle>Installed Programs</segtitle>
|
---|
| 148 | <segtitle>Installed Libraries</segtitle>
|
---|
| 149 | <segtitle>Installed Directories</segtitle>
|
---|
| 150 |
|
---|
| 151 | <seglistitem>
|
---|
[36f2c9e] | 152 | <seg>wish and wish&tk-ver;</seg>
|
---|
| 153 | <seg>libtk.so and libtkstub&tk-ver;.a</seg>
|
---|
[85eca89b] | 154 | <seg>/usr/lib/tk&tk-ver;</seg>
|
---|
[516af114] | 155 | </seglistitem>
|
---|
| 156 | </segmentedlist>
|
---|
| 157 |
|
---|
| 158 | <variablelist>
|
---|
| 159 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 160 | <?dbfo list-presentation="list"?>
|
---|
| 161 | <?dbhtml list-presentation="table"?>
|
---|
| 162 |
|
---|
| 163 | <varlistentry id="wish">
|
---|
| 164 | <term><command>wish</command></term>
|
---|
| 165 | <listitem>
|
---|
[36f2c9e] | 166 | <para> is a symlink to the <command>wish&tk-ver;</command>
|
---|
| 167 | program.</para>
|
---|
[516af114] | 168 | <indexterm zone="tk wish">
|
---|
[40d6bab] | 169 | <primary sortas="g-wish">wish</primary>
|
---|
[516af114] | 170 | </indexterm>
|
---|
| 171 | </listitem>
|
---|
| 172 | </varlistentry>
|
---|
| 173 |
|
---|
[36f2c9e] | 174 | <varlistentry id="wish-eight">
|
---|
| 175 | <term><command>wish&tk-ver;</command></term>
|
---|
[516af114] | 176 | <listitem>
|
---|
| 177 | <para> is a simple shell containing the
|
---|
| 178 | <application>Tk</application> toolkit that creates a main window and
|
---|
| 179 | then processes <application>Tcl</application> commands.</para>
|
---|
[36f2c9e] | 180 | <indexterm zone="tk wish-eight">
|
---|
| 181 | <primary sortas="b-wish&tk-ver;">wish&tk-ver;</primary>
|
---|
[516af114] | 182 | </indexterm>
|
---|
| 183 | </listitem>
|
---|
| 184 | </varlistentry>
|
---|
| 185 |
|
---|
| 186 | <varlistentry id="libtk">
|
---|
| 187 | <term><filename role="library">libtk.so</filename></term>
|
---|
| 188 | <listitem>
|
---|
| 189 | <para>contains the API functions required
|
---|
| 190 | by <application>Tk</application>.</para>
|
---|
| 191 | <indexterm zone="tk libtk">
|
---|
| 192 | <primary sortas="c-libtk">libtk.so</primary>
|
---|
| 193 | </indexterm>
|
---|
| 194 | </listitem>
|
---|
| 195 | </varlistentry>
|
---|
| 196 |
|
---|
| 197 | </variablelist>
|
---|
| 198 |
|
---|
| 199 | </sect2>
|
---|
[c4f1401] | 200 |
|
---|
| 201 | </sect1>
|
---|