source: general/prog/tk.xml@ d8614521

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

Separated root installation from build commands in remaining packages that are already indexed

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

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