source: general/prog/tk.xml@ 7cd76d62

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.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 7cd76d62 was 7cd76d62, checked in by Randy McMurchy <randy@…>, 19 years ago

Removed excess spaces from the ends of lines in the source files

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

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