source: general/prog/tk.xml@ b960e3ec

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since b960e3ec was b960e3ec, checked in by Ken Moffat <ken@…>, 12 years ago

Fix 'other' (g-) indexing, apart from truetype - move that to the end of the section. Also correct xorriso (prog) and bazaar (package).

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@10472 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 6.4 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY tk-download-http "&sourceforge-repo;/tcl/tk&tk-version;-src.tar.gz">
8 <!ENTITY tk-download-ftp "&gentoo-ftp-repo;/tk&tk-version;-src.tar.gz">
9 <!ENTITY tk-md5sum "b61b72f0aad230091b100746f078b8f1">
10 <!ENTITY tk-size "3.7 MB">
11 <!ENTITY tk-buildsize "28 MB">
12 <!ENTITY tk-time "0.5 SBU">
13
14 <!-- Ensure this is updated when Tk moves from the 8.5.x branch -->
15 <!ENTITY tk-ver "8.5">
16]>
17
18<sect1 id="tk" xreflabel="Tk-&tk-version;">
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>
36 The <application>Tk</application> package contains a
37 TCL GUI Toolkit.
38 </para>
39
40 &lfs71_checked;
41
42 <bridgehead renderas="sect3">Package Information</bridgehead>
43 <itemizedlist spacing="compact">
44 <listitem>
45 <para>
46 Download (HTTP): <ulink url="&tk-download-http;"/>
47 </para>
48 </listitem>
49 <listitem>
50 <para>
51 Download (FTP): <ulink url="&tk-download-ftp;"/>
52 </para>
53 </listitem>
54 <listitem>
55 <para>
56 Download MD5 sum: &tk-md5sum;
57 </para>
58 </listitem>
59 <listitem>
60 <para>
61 Download size: &tk-size;
62 </para>
63 </listitem>
64 <listitem>
65 <para>
66 Estimated disk space required: &tk-buildsize;
67 </para>
68 </listitem>
69 <listitem>
70 <para>
71 Estimated build time: &tk-time;
72 </para>
73 </listitem>
74 </itemizedlist>
75
76 <bridgehead renderas="sect3">Tk Dependencies</bridgehead>
77
78 <bridgehead renderas="sect4">Required</bridgehead>
79 <para role="required">
80 <xref linkend="tcl"/> and
81 <xref linkend="xorg7-lib"/>
82 </para>
83
84 <para condition="html" role="usernotes">User Notes:
85 <ulink url="&blfs-wiki;/tk"/></para>
86
87 </sect2>
88
89 <sect2 role="installation">
90 <title>Installation of Tk</title>
91
92 <para>
93 Install <application>Tk</application> by running the following
94 commands:
95 </para>
96
97<screen><userinput>cd unix &amp;&amp;
98./configure --prefix=/usr \
99 --enable-threads \
100 --mandir=/usr/share/man &amp;&amp;
101make &amp;&amp;
102sed -e "s@^\(TK_SRC_DIR='\).*@\1/usr/include'@" \
103 -e "/TK_B/s@='\(-L\)\?.*unix@='\1/usr/lib@" \
104 -i tkConfig.sh</userinput></screen>
105
106 <para>
107 Running the tests is not recommended. Some tests may crash your X
108 Server. To test the results anyway, issue: <command>make test</command>.
109 Ensure you run it from an X Window display device with the GLX extensions
110 loaded, otherwise the tests will hang.
111 </para>
112
113 <para>
114 Now, as the <systemitem class="username">root</systemitem> user:
115 </para>
116
117<screen role="root"><userinput>make install &amp;&amp;
118make install-private-headers &amp;&amp;
119ln -v -sf wish&tk-ver; /usr/bin/wish &amp;&amp;
120chmod -v 755 /usr/lib/libtk&tk-ver;.so</userinput></screen>
121
122 </sect2>
123
124 <sect2 role="commands">
125 <title>Command Explanations</title>
126
127 <para>
128 <option>--enable-threads</option>: This switch forces the
129 package to build with thread support.
130 </para>
131
132 <para>
133 <command>make install-private-headers</command>: This command is
134 used to install the <application>Tk</application> library interface
135 headers used by other packages if they link to the
136 <application>Tk</application> library.
137 </para>
138
139 <para>
140 <command>ln -v -sf wish&tk-ver; /usr/bin/wish</command>: This
141 command is used to create a compatibility symbolic link to the
142 <command>wish&tk-ver;</command> file as many packages expect a file
143 named <command>wish</command>.
144 </para>
145
146 <para>
147 <command>sed -e ... tkConfig.sh</command>: The
148 <application>Tk</application> package expects that its source tree is
149 preserved so that packages depending on it for their compilation
150 can utilize it. This <command>sed</command> removes the references to the
151 build directory and replaces them with saner system-wide locations.
152 </para>
153
154 </sect2>
155
156 <sect2 role="content">
157 <title>Contents</title>
158
159 <segmentedlist>
160 <segtitle>Installed Programs</segtitle>
161 <segtitle>Installed Libraries</segtitle>
162 <segtitle>Installed Directory</segtitle>
163
164 <seglistitem>
165 <seg>
166 wish and wish&tk-ver;
167 </seg>
168 <seg>
169 libtk&tk-ver;.so and libtkstub&tk-ver;.a
170 </seg>
171 <seg>
172 /usr/lib/tk&tk-ver;
173 </seg>
174 </seglistitem>
175 </segmentedlist>
176
177 <variablelist>
178 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
179 <?dbfo list-presentation="list"?>
180 <?dbhtml list-presentation="table"?>
181
182 <varlistentry id="wish">
183 <term><command>wish</command></term>
184 <listitem>
185 <para>
186 is a symlink to the <command>wish&tk-ver;</command> program.
187 </para>
188 <indexterm zone="tk wish">
189 <primary sortas="b-wish">wish</primary>
190 </indexterm>
191 </listitem>
192 </varlistentry>
193
194 <varlistentry id="wish-eight">
195 <term><command>wish&tk-ver;</command></term>
196 <listitem>
197 <para>
198 is a simple shell containing the
199 <application>Tk</application> toolkit that creates a main window and
200 then processes <application>Tcl</application> commands.
201 </para>
202 <indexterm zone="tk wish-eight">
203 <primary sortas="b-wish&tk-ver;">wish&tk-ver;</primary>
204 </indexterm>
205 </listitem>
206 </varlistentry>
207
208 <varlistentry id="libtk">
209 <term><filename role="library">libtk&tk-ver;.so</filename></term>
210 <listitem>
211 <para>
212 contains the API functions required
213 by <application>Tk</application>.
214 </para>
215 <indexterm zone="tk libtk">
216 <primary sortas="c-libtk">libtk&tk-ver;.so</primary>
217 </indexterm>
218 </listitem>
219 </varlistentry>
220
221 </variablelist>
222
223 </sect2>
224
225</sect1>
Note: See TracBrowser for help on using the repository browser.