source: general/prog/tk.xml@ ff769b8c

10.0 10.1 11.0 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 ken/refactor-virt krejzi/svn lazarus nosym perl-modules qt5new systemd-11177 systemd-13485 trunk xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since ff769b8c was ff769b8c, checked in by Manuel Canales Esparcia <manuel@…>, 17 years ago

Updated the XML sources to use DocBook XML DTD-4.4.

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

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