source: general/prog/tk.xml@ 0aeb696

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 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 0aeb696 was 0aeb696, checked in by Randy McMurchy <randy@…>, 18 years ago

Added a comment to each file that may need a mention of a test suite added to it, this allows closing of bug #1697

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

  • Property mode set to 100644
File size: 7.5 KB
Line 
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 <!-- Inserted as a reminder to do this. The mention of a test suite
8 is usually right before the root user installation commands. Please
9 delete these 12 (including one blank) lines after you are done.-->
10
11 <!-- Use one of the two mentions below about a test suite,
12 delete the line that is not applicable. Of course, if the
13 test suite uses syntax other than "make check", revise the
14 line to reflect the actual syntax to run the test suite -->
15
16 <!-- <para>This package does not come with a test suite.</para> -->
17 <!-- <para>To test the results, issue: <command>make check</command>.</para> -->
18
19 <!ENTITY tk-download-http "http://prdownloads.sourceforge.net/tcl/tk&tk-version;-src.tar.gz">
20 <!ENTITY tk-download-ftp " ">
21<!-- <!ENTITY tk-download-ftp "ftp://ftp.us.xemacs.org/pub/tcl/tcl8_4/tk&tk-version;-src.tar.gz"> -->
22 <!ENTITY tk-md5sum "316491cb82d898b434842353aed1f0d6">
23 <!ENTITY tk-size "3.2 MB">
24 <!ENTITY tk-buildsize "23.5 MB">
25 <!ENTITY tk-time "0.4 SBU">
26]>
27
28<sect1 id="tk" xreflabel="Tk-&tk-version;">
29 <?dbhtml filename="tk.html"?>
30
31 <sect1info>
32 <othername>$LastChangedBy$</othername>
33 <date>$Date$</date>
34 <keywordset>
35 <keyword role="package">tk&tk-version;-src.tar</keyword>
36 <keyword role="ftpdir">tk</keyword>
37 </keywordset>
38 </sect1info>
39
40 <title>Tk-&tk-version;</title>
41
42 <indexterm zone="tk">
43 <primary sortas="a-Tk">Tk</primary>
44 </indexterm>
45
46 <sect2 role="package">
47 <title>Introduction to Tk</title>
48
49 <para>The <application>Tk</application> package contains a
50 TCL GUI Toolkit.</para>
51
52 <bridgehead renderas="sect3">Package Information</bridgehead>
53 <itemizedlist spacing="compact">
54 <listitem>
55 <para>Download (HTTP): <ulink url="&tk-download-http;"/></para>
56 </listitem>
57 <listitem>
58 <para>Download (FTP): <ulink url="&tk-download-ftp;"/></para>
59 </listitem>
60 <listitem>
61 <para>Download MD5 sum: &tk-md5sum;</para>
62 </listitem>
63 <listitem>
64 <para>Download size: &tk-size;</para>
65 </listitem>
66 <listitem>
67 <para>Estimated disk space required: &tk-buildsize;</para>
68 </listitem>
69 <listitem>
70 <para>Estimated build time: &tk-time;</para>
71 </listitem>
72 </itemizedlist>
73
74 <bridgehead renderas="sect3">Tk Dependencies</bridgehead>
75
76 <bridgehead renderas="sect4">Required</bridgehead>
77 <para role="required"><xref linkend="x-window-system"/> and
78 <xref linkend="tcl"/></para>
79
80 <para condition="html" role="usernotes">User Notes:
81 <ulink url="&blfs-wiki;/tk"/></para>
82
83 </sect2>
84
85 <sect2 role="installation">
86 <title>Installation of Tk</title>
87
88<para>Install <application>Tk</application> by running the following
89commands:</para>
90
91<screen><userinput>export VERSION=&tk-version; &amp;&amp;
92export V=`echo $VERSION | cut -d "." -f 1,2` &amp;&amp;
93export DIR=$PWD &amp;&amp;
94cd unix &amp;&amp;
95sed -i "s/relid'/relid/" configure &amp;&amp;
96./configure --prefix=/usr --enable-threads &amp;&amp;
97make &amp;&amp;
98sed -i -e "s:${DIR}/unix:/usr/lib:" \
99 -e "s:${DIR}:/usr/include/tk${V}:" tkConfig.sh</userinput></screen>
100
101 <para>The test is not recommended. Some tests may crash your X Server. To
102 test the results, issue: <command>make test</command>. Ensure you run it
103 from an X Window display device with the GLX extensions loaded, else the
104 tests will hang.</para>
105
106 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
107
108 <caution>
109 <para>If you become the <systemitem class="username">root</systemitem>
110 user in a manner that doesn't preserve the unprivileged user's
111 environment, ensure you correctly set the environment variable
112 <envar>V</envar> again before running the installation commands.</para>
113 </caution>
114
115<screen role="root"><userinput>make install &amp;&amp;
116install -v -d /usr/include/tk${V}/unix &amp;&amp;
117install -v -m644 *.h /usr/include/tk${V}/unix/ &amp;&amp;
118install -v -d /usr/include/tk${V}/generic &amp;&amp;
119install -v -m644 ../generic/*.h /usr/include/tk${V}/generic/ &amp;&amp;
120rm -v -f /usr/include/tk${V}/generic/{tk,tkDecls,tkPlatDecls}.h &amp;&amp;
121ln -v -nsf ../../include/tk${V} /usr/lib/tk${V}/include &amp;&amp;
122ln -v -sf libtk${V}.so /usr/lib/libtk.so &amp;&amp;
123ln -v -sf wish${V} /usr/bin/wish</userinput></screen>
124
125 <para>Clean up the unprivileged user's environment using the following
126 commands:</para>
127
128<screen><userinput>unset VERSION &amp;&amp;
129unset V &amp;&amp;
130unset DIR</userinput></screen>
131
132 </sect2>
133
134 <sect2 role="commands">
135 <title>Command Explanations</title>
136
137 <para><parameter>--enable-threads</parameter>: This switch forces the package
138 to build with thread support.</para>
139
140 <para><command>sed -i "s/relid'/relid/" configure</command>: This command
141 fixes a syntax error in the <command>configure</command> script.</para>
142
143 <para><command>sed -i -e ... tkConfig.sh</command>: The
144 <application>Tk</application> package assumes that the source used to build
145 <application>Tk</application> is always kept around for compiling packages
146 that depend on <application>Tk</application>. This <command>sed</command>
147 removes the references to the build directory and replaces them with saner
148 system-wide locations.</para>
149
150 <para><command>install ...</command>: These commands install the internal
151 headers into a system-wide location.</para>
152
153 <para><command>ln -v -sf ...</command>: These commands create compatibility
154 symbolic links.</para>
155
156 </sect2>
157
158 <sect2 role="content">
159 <title>Contents</title>
160
161 <segmentedlist>
162 <segtitle>Installed Programs</segtitle>
163 <segtitle>Installed Libraries</segtitle>
164 <segtitle>Installed Directories</segtitle>
165
166 <seglistitem>
167 <seg>wish and wish8.4</seg>
168 <seg>libtk.so and libtkstub8.4.a</seg>
169 <seg>/usr/include/tk8.4 and /usr/lib/tk8.4</seg>
170 </seglistitem>
171 </segmentedlist>
172
173 <variablelist>
174 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
175 <?dbfo list-presentation="list"?>
176 <?dbhtml list-presentation="table"?>
177
178 <varlistentry id="wish">
179 <term><command>wish</command></term>
180 <listitem>
181 <para> is a symlink to the <command>wish8.4</command> program.</para>
182 <indexterm zone="tk wish">
183 <primary sortas="g-wish">wish</primary>
184 </indexterm>
185 </listitem>
186 </varlistentry>
187
188 <varlistentry id="wish8.4">
189 <term><command>wish8.4</command></term>
190 <listitem>
191 <para> is a simple shell containing the
192 <application>Tk</application> toolkit that creates a main window and
193 then processes <application>Tcl</application> commands.</para>
194 <indexterm zone="tk wish8.4">
195 <primary sortas="b-wish8.4">wish8.4</primary>
196 </indexterm>
197 </listitem>
198 </varlistentry>
199
200 <varlistentry id="libtk">
201 <term><filename role="library">libtk.so</filename></term>
202 <listitem>
203 <para>contains the API functions required
204 by <application>Tk</application>.</para>
205 <indexterm zone="tk libtk">
206 <primary sortas="c-libtk">libtk.so</primary>
207 </indexterm>
208 </listitem>
209 </varlistentry>
210
211 </variablelist>
212
213 </sect2>
214
215</sect1>
Note: See TracBrowser for help on using the repository browser.