1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY tk-download-http "http://prdownloads.sourceforge.net/tcl/tk&tk-version;-src.tar.gz">
|
---|
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"> -->
|
---|
10 | <!ENTITY tk-md5sum "0a16d4d9398e43cbb85784c85fb807a4">
|
---|
11 | <!ENTITY tk-size "3.2 MB">
|
---|
12 | <!ENTITY tk-buildsize "23.3 MB">
|
---|
13 | <!ENTITY tk-time "0.4 SBU">
|
---|
14 | <!-- Ensure this is updated when Tk moves to the 8.5.x branch -->
|
---|
15 | <!ENTITY tk-ver "8.4">
|
---|
16 | <!-- Ensure the above is updated when Tk moves to the 8.5.x branch -->
|
---|
17 | ]>
|
---|
18 |
|
---|
19 | <sect1 id="tk" xreflabel="Tk-&tk-version;">
|
---|
20 | <?dbhtml filename="tk.html"?>
|
---|
21 |
|
---|
22 | <sect1info>
|
---|
23 | <othername>$LastChangedBy$</othername>
|
---|
24 | <date>$Date$</date>
|
---|
25 | <keywordset>
|
---|
26 | <keyword role="package">tk&tk-version;-src.tar</keyword>
|
---|
27 | <keyword role="ftpdir">tk</keyword>
|
---|
28 | </keywordset>
|
---|
29 | </sect1info>
|
---|
30 |
|
---|
31 | <title>Tk-&tk-version;</title>
|
---|
32 |
|
---|
33 | <indexterm zone="tk">
|
---|
34 | <primary sortas="a-Tk">Tk</primary>
|
---|
35 | </indexterm>
|
---|
36 |
|
---|
37 | <sect2 role="package">
|
---|
38 | <title>Introduction to Tk</title>
|
---|
39 |
|
---|
40 | <para>The <application>Tk</application> package contains a
|
---|
41 | TCL GUI Toolkit.</para>
|
---|
42 |
|
---|
43 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
44 | <itemizedlist spacing="compact">
|
---|
45 | <listitem>
|
---|
46 | <para>Download (HTTP): <ulink url="&tk-download-http;"/></para>
|
---|
47 | </listitem>
|
---|
48 | <listitem>
|
---|
49 | <para>Download (FTP): <ulink url="&tk-download-ftp;"/></para>
|
---|
50 | </listitem>
|
---|
51 | <listitem>
|
---|
52 | <para>Download MD5 sum: &tk-md5sum;</para>
|
---|
53 | </listitem>
|
---|
54 | <listitem>
|
---|
55 | <para>Download size: &tk-size;</para>
|
---|
56 | </listitem>
|
---|
57 | <listitem>
|
---|
58 | <para>Estimated disk space required: &tk-buildsize;</para>
|
---|
59 | </listitem>
|
---|
60 | <listitem>
|
---|
61 | <para>Estimated build time: &tk-time;</para>
|
---|
62 | </listitem>
|
---|
63 | </itemizedlist>
|
---|
64 |
|
---|
65 | <bridgehead renderas="sect3">Tk Dependencies</bridgehead>
|
---|
66 |
|
---|
67 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
68 | <para role="required"><xref linkend="x-window-system"/> and
|
---|
69 | <xref linkend="tcl"/></para>
|
---|
70 |
|
---|
71 | <para condition="html" role="usernotes">User Notes:
|
---|
72 | <ulink url="&blfs-wiki;/tk"/></para>
|
---|
73 |
|
---|
74 | </sect2>
|
---|
75 |
|
---|
76 | <sect2 role="installation">
|
---|
77 | <title>Installation of Tk</title>
|
---|
78 |
|
---|
79 | <para>Install <application>Tk</application> by running the following
|
---|
80 | commands:</para>
|
---|
81 |
|
---|
82 | <screen><userinput>cd unix &&
|
---|
83 | ./configure --prefix=/usr --enable-threads &&
|
---|
84 | make &&
|
---|
85 | sed -i -e "s:${PWD}:/usr/lib:" \
|
---|
86 | -e "s:$(dirname ${PWD}):/usr/include/tk&tk-ver;:" \
|
---|
87 | tkConfig.sh</userinput></screen>
|
---|
88 |
|
---|
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
|
---|
92 | loaded, else the tests will hang.</para>
|
---|
93 |
|
---|
94 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
95 |
|
---|
96 | <screen role="root"><userinput>make install &&
|
---|
97 | install -v -m755 -d /usr/include/tk&tk-ver;/{unix,generic} &&
|
---|
98 | install -v -m644 *.h /usr/include/tk&tk-ver;/unix/ &&
|
---|
99 | install -v -m644 ../generic/*.h /usr/include/tk&tk-ver;/generic/ &&
|
---|
100 | rm -v -f /usr/include/tk&tk-ver;/generic/tk{,{,Plat}Decls}.h &&
|
---|
101 | ln -v -nsf ../../include/tk&tk-ver; /usr/lib/tk&tk-ver;/include &&
|
---|
102 | ln -v -sf libtk&tk-ver;.so /usr/lib/libtk.so &&
|
---|
103 | ln -v -sf wish&tk-ver; /usr/bin/wish</userinput></screen>
|
---|
104 |
|
---|
105 | </sect2>
|
---|
106 |
|
---|
107 | <sect2 role="commands">
|
---|
108 | <title>Command Explanations</title>
|
---|
109 |
|
---|
110 | <para><parameter>--enable-threads</parameter>: This switch forces the
|
---|
111 | package to build with thread support.</para>
|
---|
112 |
|
---|
113 | <para><command>sed -i -e ... tkConfig.sh</command>: The
|
---|
114 | <application>Tk</application> package expects that its source tree is
|
---|
115 | preserved so that packages depending on it for their compilation
|
---|
116 | can utilize it. This <command>sed</command> removes the references to the
|
---|
117 | build directory and replaces them with saner system-wide locations.</para>
|
---|
118 |
|
---|
119 | <para><command>install ...</command>: These commands install the internal
|
---|
120 | headers into a system-wide location.</para>
|
---|
121 |
|
---|
122 | <para><command>ln -v -sf ...</command>: These commands create compatibility
|
---|
123 | symbolic links.</para>
|
---|
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>
|
---|
136 | <seg>wish and wish&tk-ver;</seg>
|
---|
137 | <seg>libtk.so and libtkstub&tk-ver;.a</seg>
|
---|
138 | <seg>/usr/include/tk&tk-ver; and /usr/lib/tk&tk-ver;</seg>
|
---|
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>
|
---|
150 | <para> is a symlink to the <command>wish&tk-ver;</command>
|
---|
151 | program.</para>
|
---|
152 | <indexterm zone="tk wish">
|
---|
153 | <primary sortas="g-wish">wish</primary>
|
---|
154 | </indexterm>
|
---|
155 | </listitem>
|
---|
156 | </varlistentry>
|
---|
157 |
|
---|
158 | <varlistentry id="wish-eight">
|
---|
159 | <term><command>wish&tk-ver;</command></term>
|
---|
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>
|
---|
164 | <indexterm zone="tk wish-eight">
|
---|
165 | <primary sortas="b-wish&tk-ver;">wish&tk-ver;</primary>
|
---|
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>
|
---|
184 |
|
---|
185 | </sect1>
|
---|