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