[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">
|
---|
[88dd4702] | 8 | <!ENTITY tk-download-ftp " ">
|
---|
| 9 | <!-- <!ENTITY tk-download-ftp "ftp://ftp.us.xemacs.org/pub/tcl/tcl8_4/tk&tk-version;-src.tar.gz"> -->
|
---|
[4d62032] | 10 | <!ENTITY tk-md5sum "68777568d818e1980dda4b6b02b92f1a">
|
---|
| 11 | <!ENTITY tk-size "3.3 MB">
|
---|
[2478f1b] | 12 | <!ENTITY tk-buildsize "23 MB">
|
---|
| 13 | <!ENTITY tk-time "0.3 SBU">
|
---|
[4d62032] | 14 |
|
---|
[36f2c9e] | 15 | <!-- Ensure this is updated when Tk moves to the 8.5.x branch -->
|
---|
| 16 | <!ENTITY tk-ver "8.4">
|
---|
[52d29f7] | 17 | ]>
|
---|
| 18 |
|
---|
[503b39f] | 19 | <sect1 id="tk" xreflabel="Tk-&tk-version;">
|
---|
[516af114] | 20 | <?dbhtml filename="tk.html"?>
|
---|
| 21 |
|
---|
| 22 | <sect1info>
|
---|
| 23 | <othername>$LastChangedBy$</othername>
|
---|
| 24 | <date>$Date$</date>
|
---|
| 25 | </sect1info>
|
---|
| 26 |
|
---|
| 27 | <title>Tk-&tk-version;</title>
|
---|
| 28 |
|
---|
| 29 | <indexterm zone="tk">
|
---|
| 30 | <primary sortas="a-Tk">Tk</primary>
|
---|
| 31 | </indexterm>
|
---|
| 32 |
|
---|
| 33 | <sect2 role="package">
|
---|
| 34 | <title>Introduction to Tk</title>
|
---|
| 35 |
|
---|
| 36 | <para>The <application>Tk</application> package contains a
|
---|
| 37 | TCL GUI Toolkit.</para>
|
---|
| 38 |
|
---|
| 39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 40 | <itemizedlist spacing="compact">
|
---|
| 41 | <listitem>
|
---|
| 42 | <para>Download (HTTP): <ulink url="&tk-download-http;"/></para>
|
---|
| 43 | </listitem>
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>Download (FTP): <ulink url="&tk-download-ftp;"/></para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>Download MD5 sum: &tk-md5sum;</para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>Download size: &tk-size;</para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>Estimated disk space required: &tk-buildsize;</para>
|
---|
| 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
| 57 | <para>Estimated build time: &tk-time;</para>
|
---|
| 58 | </listitem>
|
---|
| 59 | </itemizedlist>
|
---|
| 60 |
|
---|
| 61 | <bridgehead renderas="sect3">Tk Dependencies</bridgehead>
|
---|
| 62 |
|
---|
| 63 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[e77976f] | 64 | <para role="required"><xref linkend="x-window-system"/> and
|
---|
[516af114] | 65 | <xref linkend="tcl"/></para>
|
---|
| 66 |
|
---|
[1039de3] | 67 | <para condition="html" role="usernotes">User Notes:
|
---|
| 68 | <ulink url="&blfs-wiki;/tk"/></para>
|
---|
| 69 |
|
---|
[516af114] | 70 | </sect2>
|
---|
| 71 |
|
---|
| 72 | <sect2 role="installation">
|
---|
| 73 | <title>Installation of Tk</title>
|
---|
[511fd69c] | 74 |
|
---|
[7cd76d62] | 75 | <para>Install <application>Tk</application> by running the following
|
---|
[511fd69c] | 76 | commands:</para>
|
---|
| 77 |
|
---|
[33fd7e43] | 78 | <screen><userinput>cd unix &&
|
---|
| 79 | ./configure --prefix=/usr --enable-threads &&
|
---|
[206b7a1] | 80 | make &&
|
---|
| 81 | sed -i \
|
---|
| 82 | -e "s@^\(TK_SRC_DIR='\).*@\1/usr/include'@" \
|
---|
| 83 | -e "/TK_B/s@='\(-L\)\?.*unix@='\1/usr/lib@" \
|
---|
| 84 | -e "/SEARCH/s/=.*/=''/" \
|
---|
[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
|
---|
| 90 | loaded, else 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 &&
|
---|
| 96 | ln -v -sf wish&tk-ver; /usr/bin/wish</userinput></screen>
|
---|
| 97 |
|
---|
| 98 | <!-- This is removed per discussion and fairly vigorous testing
|
---|
[36f2c9e] | 99 | install -v -m755 -d /usr/include/tk&tk-ver;/{unix,generic} &&
|
---|
| 100 | install -v -m644 *.h /usr/include/tk&tk-ver;/unix/ &&
|
---|
| 101 | install -v -m644 ../generic/*.h /usr/include/tk&tk-ver;/generic/ &&
|
---|
| 102 | rm -v -f /usr/include/tk&tk-ver;/generic/tk{,{,Plat}Decls}.h &&
|
---|
| 103 | ln -v -nsf ../../include/tk&tk-ver; /usr/lib/tk&tk-ver;/include &&
|
---|
| 104 | ln -v -sf libtk&tk-ver;.so /usr/lib/libtk.so &&
|
---|
| 105 | ln -v -sf wish&tk-ver; /usr/bin/wish</userinput></screen>
|
---|
[33fd7e43] | 106 | -->
|
---|
[d8614521] | 107 |
|
---|
[516af114] | 108 | </sect2>
|
---|
| 109 |
|
---|
| 110 | <sect2 role="commands">
|
---|
| 111 | <title>Command Explanations</title>
|
---|
| 112 |
|
---|
[36f2c9e] | 113 | <para><parameter>--enable-threads</parameter>: This switch forces the
|
---|
| 114 | package to build with thread support.</para>
|
---|
[4c34d6e2] | 115 |
|
---|
[33fd7e43] | 116 | <para><command>make install-private-headers</command>: This command is
|
---|
| 117 | used to install the <application>Tk</application> library interface
|
---|
| 118 | headers used by other packages if they link to the
|
---|
| 119 | <application>Tk</application> library.</para>
|
---|
| 120 |
|
---|
| 121 | <para><command>ln -v -sf wish&tk-ver; /usr/bin/wish</command>: This
|
---|
| 122 | command is used to create a compatibility symbolic link to the
|
---|
| 123 | <command>wish&tk-ver;</command> file as many packages expect a file
|
---|
| 124 | named <command>wish</command>.</para>
|
---|
| 125 |
|
---|
[4c34d6e2] | 126 | <para><command>sed -i -e ... tkConfig.sh</command>: The
|
---|
[36f2c9e] | 127 | <application>Tk</application> package expects that its source tree is
|
---|
| 128 | preserved so that packages depending on it for their compilation
|
---|
| 129 | can utilize it. This <command>sed</command> removes the references to the
|
---|
| 130 | build directory and replaces them with saner system-wide locations.</para>
|
---|
[516af114] | 131 |
|
---|
[206b7a1] | 132 | <!--
|
---|
[516af114] | 133 | <para><command>install ...</command>: These commands install the internal
|
---|
| 134 | headers into a system-wide location.</para>
|
---|
| 135 |
|
---|
| 136 | <para><command>ln -v -sf ...</command>: These commands create compatibility
|
---|
| 137 | symbolic links.</para>
|
---|
[33fd7e43] | 138 | -->
|
---|
[516af114] | 139 |
|
---|
| 140 | </sect2>
|
---|
| 141 |
|
---|
| 142 | <sect2 role="content">
|
---|
| 143 | <title>Contents</title>
|
---|
| 144 |
|
---|
| 145 | <segmentedlist>
|
---|
| 146 | <segtitle>Installed Programs</segtitle>
|
---|
| 147 | <segtitle>Installed Libraries</segtitle>
|
---|
| 148 | <segtitle>Installed Directories</segtitle>
|
---|
| 149 |
|
---|
| 150 | <seglistitem>
|
---|
[36f2c9e] | 151 | <seg>wish and wish&tk-ver;</seg>
|
---|
| 152 | <seg>libtk.so and libtkstub&tk-ver;.a</seg>
|
---|
[85eca89b] | 153 | <seg>/usr/lib/tk&tk-ver;</seg>
|
---|
[516af114] | 154 | </seglistitem>
|
---|
| 155 | </segmentedlist>
|
---|
| 156 |
|
---|
| 157 | <variablelist>
|
---|
| 158 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 159 | <?dbfo list-presentation="list"?>
|
---|
| 160 | <?dbhtml list-presentation="table"?>
|
---|
| 161 |
|
---|
| 162 | <varlistentry id="wish">
|
---|
| 163 | <term><command>wish</command></term>
|
---|
| 164 | <listitem>
|
---|
[36f2c9e] | 165 | <para> is a symlink to the <command>wish&tk-ver;</command>
|
---|
| 166 | program.</para>
|
---|
[516af114] | 167 | <indexterm zone="tk wish">
|
---|
[40d6bab] | 168 | <primary sortas="g-wish">wish</primary>
|
---|
[516af114] | 169 | </indexterm>
|
---|
| 170 | </listitem>
|
---|
| 171 | </varlistentry>
|
---|
| 172 |
|
---|
[36f2c9e] | 173 | <varlistentry id="wish-eight">
|
---|
| 174 | <term><command>wish&tk-ver;</command></term>
|
---|
[516af114] | 175 | <listitem>
|
---|
| 176 | <para> is a simple shell containing the
|
---|
| 177 | <application>Tk</application> toolkit that creates a main window and
|
---|
| 178 | then processes <application>Tcl</application> commands.</para>
|
---|
[36f2c9e] | 179 | <indexterm zone="tk wish-eight">
|
---|
| 180 | <primary sortas="b-wish&tk-ver;">wish&tk-ver;</primary>
|
---|
[516af114] | 181 | </indexterm>
|
---|
| 182 | </listitem>
|
---|
| 183 | </varlistentry>
|
---|
| 184 |
|
---|
| 185 | <varlistentry id="libtk">
|
---|
| 186 | <term><filename role="library">libtk.so</filename></term>
|
---|
| 187 | <listitem>
|
---|
| 188 | <para>contains the API functions required
|
---|
| 189 | by <application>Tk</application>.</para>
|
---|
| 190 | <indexterm zone="tk libtk">
|
---|
| 191 | <primary sortas="c-libtk">libtk.so</primary>
|
---|
| 192 | </indexterm>
|
---|
| 193 | </listitem>
|
---|
| 194 | </varlistentry>
|
---|
| 195 |
|
---|
| 196 | </variablelist>
|
---|
| 197 |
|
---|
| 198 | </sect2>
|
---|
[c4f1401] | 199 |
|
---|
| 200 | </sect1>
|
---|