source: general/prog/tk.xml@ 511fd69c

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 511fd69c was 511fd69c, checked in by Randy McMurchy <randy@…>, 20 years ago

Added 'Contents', 'Description' and a note about setting environment variables to the Tk instructions

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

  • Property mode set to 100644
File size: 3.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.1 MB">
10<!ENTITY tk-buildsize "17.4 MB">
11<!ENTITY tk-time "0.41 SBU">
12]>
13
14<sect1 id="tk" xreflabel="Tk-&tk-version;">
15<?dbhtml filename="tk.html"?>
16<title>Tk-&tk-version;</title>
17
18<sect2>
19<title>Introduction to <application>Tk</application></title>
20
21<para>The <application>Tk</application> package contains a
22<acronym>TCL</acronym> <acronym>GUI</acronym> Toolkit.</para>
23
24<sect3><title>Package information</title>
25<itemizedlist spacing='compact'>
26<listitem><para>Download (HTTP): <ulink
27url="&tk-download-http;"/></para></listitem>
28<listitem><para>Download (FTP): <ulink
29url="&tk-download-ftp;"/></para></listitem>
30<listitem><para>Download size: &tk-size;</para></listitem>
31<listitem><para>Estimated Disk space required:
32&tk-buildsize;</para></listitem>
33<listitem><para>Estimated build time:
34&tk-time;</para></listitem></itemizedlist>
35</sect3>
36
37<sect3><title><application>Tk</application> dependencies</title>
38<sect4><title>Required</title>
39<para>X (<xref linkend="xfree86"/> or <xref linkend="xorg"/>) and
40<xref linkend="tcl"/></para></sect4>
41</sect3>
42
43</sect2>
44
45<sect2>
46<title>Installation of <application>Tk</application></title>
47
48<para>Install <application>Tk</application> by running the following
49commands:</para>
50
51<screen><userinput><command>VERSION=&tk-version; &amp;&amp;
52V=`echo $VERSION | cut -d "." -f 1,2` &amp;&amp;
53DIR=$PWD &amp;&amp;
54cd unix &amp;&amp;
55./configure --prefix=/usr &amp;&amp;
56make &amp;&amp;
57sed -i "s:${DIR}/unix:/usr/lib:" tkConfig.sh &amp;&amp;
58sed -i "s:${DIR}:/usr/include/tk${V}:" tkConfig.sh &amp;&amp;
59make install &amp;&amp;
60install -d /usr/include/tk${V}/unix &amp;&amp;
61install -m644 *.h /usr/include/tk${V}/unix/ &amp;&amp;
62install -d /usr/include/tk${V}/generic &amp;&amp;
63install -m644 ../generic/*.h /usr/include/tk${V}/generic/ &amp;&amp;
64rm -f /usr/include/tk${V}/generic/{tk,tkDecls,tkPlatDecls}.h &amp;&amp;
65ln -nsf /usr/include/tk${V} /usr/lib/tk${V}/include &amp;&amp;
66ln -sf libtk${V}.so /usr/lib/libtk.so &amp;&amp;
67ln -sf wish${V} /usr/bin/wish</command></userinput></screen>
68
69<note><para>If you build the package as one user, then switch to root to
70install the package, ensure you set the environment variables
71<envar>V</envar> and <envar>VERSION</envar> before running the installation
72commands.</para></note>
73
74</sect2>
75
76<sect2>
77<title>Command explanations</title>
78
79<para><command>sed -i ...</command>: The <application>Tk</application> package
80assumes that the source that is used to build <application>Tk</application> is
81always kept around for compiling packages that depend on
82<application>Tk</application>. These <command>sed</command>'s remove the
83reference to the build directory and replace them by saner system wide
84locations.</para>
85
86<para><command>install ...</command>: These commands install the internal
87headers into a system-wide location.</para>
88
89<para><command>ln -sf ...</command>: These commands create compatibility
90symbolic links.</para>
91
92</sect2>
93
94<sect2>
95<title>Contents</title>
96
97<para>The <application>Tk</application> package contains
98<command>wish</command> and the
99<filename class='libraryfile'>libtk</filename> library.</para>
100
101</sect2>
102
103<sect2><title>Description</title>
104
105<sect3><title>wish</title>
106<para><command>wish</command> is a simple shell containing the
107<application>Tk</application> toolkit that creates a main window and
108then processes Tcl commands.</para></sect3>
109
110</sect2>
111
112</sect1>
Note: See TracBrowser for help on using the repository browser.