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