source: general/prog/tk.xml@ bad8b53

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.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 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 bad8b53 was bad8b53, checked in by Larry Lawrence <larry@…>, 19 years ago

index and contents on tcl and tk

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

  • Property mode set to 100644
File size: 4.7 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
3 "http://www.oasis-open.org/docbook/xml/4.3/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-size "3.2 MB">
10<!ENTITY tk-buildsize "26 MB">
11<!ENTITY tk-time "0.40 SBU">
12]>
13
14<sect1 id="tk" xreflabel="Tk-&tk-version;">
15<sect1info>
16<othername>$LastChangedBy$</othername>
17<date>$Date$</date>
18</sect1info>
19<?dbhtml filename="tk.html"?>
20<title>Tk-&tk-version;</title>
21<indexterm zone="tk"><primary
22sortas="a-Tk">Tk</primary></indexterm>
23
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 size: &tk-size;</para></listitem>
38<listitem><para>Estimated disk space required:
39&tk-buildsize;</para></listitem>
40<listitem><para>Estimated build time:
41&tk-time;</para></listitem></itemizedlist>
42</sect3>
43
44<sect3><title><application>Tk</application> dependencies</title>
45<sect4><title>Required</title>
46<para>X (<xref linkend="xfree86"/> or <xref linkend="xorg"/>) and
47<xref linkend="tcl"/></para></sect4>
48</sect3>
49
50</sect2>
51
52<sect2>
53<title>Installation of <application>Tk</application></title>
54
55<para>Install <application>Tk</application> by running the following
56commands:</para>
57
58<screen><userinput><command>VERSION=&tk-version; &amp;&amp;
59V=`echo $VERSION | cut -d "." -f 1,2` &amp;&amp;
60DIR=$PWD &amp;&amp;
61cd unix &amp;&amp;
62./configure --prefix=/usr --enable-threads &amp;&amp;
63make &amp;&amp;
64sed -i "s:${DIR}/unix:/usr/lib:" tkConfig.sh &amp;&amp;
65sed -i "s:${DIR}:/usr/include/tk${V}:" tkConfig.sh &amp;&amp;
66make install &amp;&amp;
67install -d /usr/include/tk${V}/unix &amp;&amp;
68install -m644 *.h /usr/include/tk${V}/unix/ &amp;&amp;
69install -d /usr/include/tk${V}/generic &amp;&amp;
70install -m644 ../generic/*.h /usr/include/tk${V}/generic/ &amp;&amp;
71rm -f /usr/include/tk${V}/generic/{tk,tkDecls,tkPlatDecls}.h &amp;&amp;
72ln -nsf ../../include/tk${V} /usr/lib/tk${V}/include &amp;&amp;
73ln -sf libtk${V}.so /usr/lib/libtk.so &amp;&amp;
74ln -sf wish${V} /usr/bin/wish</command></userinput></screen>
75
76<caution><para>If you build the package as an ordinary user and then switch to
77root to install the package, ensure you set the environment variables
78<envar>V</envar> and <envar>VERSION</envar> before running the installation
79commands.</para></caution>
80
81</sect2>
82
83<sect2>
84<title>Command explanations</title>
85
86<para><parameter>--enable-threads</parameter>: This switch forces the package
87to build with thread support.</para>
88
89<para><command>sed -i ...</command>: The <application>Tk</application> package
90assumes that the source that is used to build <application>Tk</application> is
91always kept around for compiling packages that depend on
92<application>Tk</application>. These <command>sed</command>'s remove the
93reference to the build directory and replace them by saner system wide
94locations.</para>
95
96<para><command>install ...</command>: These commands install the internal
97headers into a system-wide location.</para>
98
99<para><command>ln -sf ...</command>: These commands create compatibility
100symbolic links.</para>
101
102</sect2>
103
104<sect2>
105<title>Contents</title>
106
107<segmentedlist>
108<segtitle>Installed Program</segtitle>
109<segtitle>Installed Library</segtitle>
110<segtitle>Installed Directories</segtitle>
111<seglistitem>
112<seg>wish</seg>
113<seg>libtk</seg>
114<seg>/usr/lib/tk8.4 and /usr/include/tk8.4</seg></seglistitem>
115</segmentedlist>
116
117<variablelist>
118<bridgehead renderas="sect3">Short Descriptions</bridgehead>
119<?dbfo list-presentation="list"?>
120
121<varlistentry id="wish">
122<term><command>wish</command></term>
123<listitem><para> is a simple shell containing the
124<application>Tk</application> toolkit that creates a main window and
125then processes <application>Tcl</application> commands.</para>
126<indexterm zone="tk wish"><primary
127sortas="b-wish">wish</primary></indexterm>
128</listitem>
129</varlistentry>
130
131<varlistentry id="libtk">
132<term><filename role="library">libtk.so</filename></term>
133<listitem><para>contains the <acronym>API</acronym> functions required
134by <application>Tk</application>.</para>
135<indexterm zone="tk libtk"><primary
136sortas="c-libtk">libtk.so</primary></indexterm>
137</listitem>
138</varlistentry>
139
140</variablelist>
141
142</sect2>
143
144</sect1>
Note: See TracBrowser for help on using the repository browser.