[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 |
|
---|
[0aeb696] | 7 | <!-- Inserted as a reminder to do this. The mention of a test suite
|
---|
| 8 | is usually right before the root user installation commands. Please
|
---|
| 9 | delete these 12 (including one blank) lines after you are done.-->
|
---|
| 10 |
|
---|
| 11 | <!-- Use one of the two mentions below about a test suite,
|
---|
| 12 | delete the line that is not applicable. Of course, if the
|
---|
| 13 | test suite uses syntax other than "make check", revise the
|
---|
| 14 | line to reflect the actual syntax to run the test suite -->
|
---|
| 15 |
|
---|
| 16 | <!-- <para>This package does not come with a test suite.</para> -->
|
---|
| 17 | <!-- <para>To test the results, issue: <command>make check</command>.</para> -->
|
---|
| 18 |
|
---|
[516af114] | 19 | <!ENTITY tk-download-http "http://prdownloads.sourceforge.net/tcl/tk&tk-version;-src.tar.gz">
|
---|
[88dd4702] | 20 | <!ENTITY tk-download-ftp " ">
|
---|
| 21 | <!-- <!ENTITY tk-download-ftp "ftp://ftp.us.xemacs.org/pub/tcl/tcl8_4/tk&tk-version;-src.tar.gz"> -->
|
---|
| 22 | <!ENTITY tk-md5sum "316491cb82d898b434842353aed1f0d6">
|
---|
| 23 | <!ENTITY tk-size "3.2 MB">
|
---|
| 24 | <!ENTITY tk-buildsize "23.5 MB">
|
---|
| 25 | <!ENTITY tk-time "0.4 SBU">
|
---|
[52d29f7] | 26 | ]>
|
---|
| 27 |
|
---|
[503b39f] | 28 | <sect1 id="tk" xreflabel="Tk-&tk-version;">
|
---|
[516af114] | 29 | <?dbhtml filename="tk.html"?>
|
---|
| 30 |
|
---|
| 31 | <sect1info>
|
---|
| 32 | <othername>$LastChangedBy$</othername>
|
---|
| 33 | <date>$Date$</date>
|
---|
[256ee72c] | 34 | <keywordset>
|
---|
| 35 | <keyword role="package">tk&tk-version;-src.tar</keyword>
|
---|
[22ac237] | 36 | <keyword role="ftpdir">tk</keyword>
|
---|
[256ee72c] | 37 | </keywordset>
|
---|
[516af114] | 38 | </sect1info>
|
---|
| 39 |
|
---|
| 40 | <title>Tk-&tk-version;</title>
|
---|
| 41 |
|
---|
| 42 | <indexterm zone="tk">
|
---|
| 43 | <primary sortas="a-Tk">Tk</primary>
|
---|
| 44 | </indexterm>
|
---|
| 45 |
|
---|
| 46 | <sect2 role="package">
|
---|
| 47 | <title>Introduction to Tk</title>
|
---|
| 48 |
|
---|
| 49 | <para>The <application>Tk</application> package contains a
|
---|
| 50 | TCL GUI Toolkit.</para>
|
---|
| 51 |
|
---|
| 52 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 53 | <itemizedlist spacing="compact">
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>Download (HTTP): <ulink url="&tk-download-http;"/></para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>Download (FTP): <ulink url="&tk-download-ftp;"/></para>
|
---|
| 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
| 61 | <para>Download MD5 sum: &tk-md5sum;</para>
|
---|
| 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
| 64 | <para>Download size: &tk-size;</para>
|
---|
| 65 | </listitem>
|
---|
| 66 | <listitem>
|
---|
| 67 | <para>Estimated disk space required: &tk-buildsize;</para>
|
---|
| 68 | </listitem>
|
---|
| 69 | <listitem>
|
---|
| 70 | <para>Estimated build time: &tk-time;</para>
|
---|
| 71 | </listitem>
|
---|
| 72 | </itemizedlist>
|
---|
| 73 |
|
---|
| 74 | <bridgehead renderas="sect3">Tk Dependencies</bridgehead>
|
---|
| 75 |
|
---|
| 76 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[e77976f] | 77 | <para role="required"><xref linkend="x-window-system"/> and
|
---|
[516af114] | 78 | <xref linkend="tcl"/></para>
|
---|
| 79 |
|
---|
[1039de3] | 80 | <para condition="html" role="usernotes">User Notes:
|
---|
| 81 | <ulink url="&blfs-wiki;/tk"/></para>
|
---|
| 82 |
|
---|
[516af114] | 83 | </sect2>
|
---|
| 84 |
|
---|
| 85 | <sect2 role="installation">
|
---|
| 86 | <title>Installation of Tk</title>
|
---|
[511fd69c] | 87 |
|
---|
[7cd76d62] | 88 | <para>Install <application>Tk</application> by running the following
|
---|
[511fd69c] | 89 | commands:</para>
|
---|
| 90 |
|
---|
[516af114] | 91 | <screen><userinput>export VERSION=&tk-version; &&
|
---|
[d8614521] | 92 | export V=`echo $VERSION | cut -d "." -f 1,2` &&
|
---|
| 93 | export DIR=$PWD &&
|
---|
[52d29f7] | 94 | cd unix &&
|
---|
[4c34d6e2] | 95 | sed -i "s/relid'/relid/" configure &&
|
---|
[53cdded4] | 96 | ./configure --prefix=/usr --enable-threads &&
|
---|
[52d29f7] | 97 | make &&
|
---|
[4c34d6e2] | 98 | sed -i -e "s:${DIR}/unix:/usr/lib:" \
|
---|
| 99 | -e "s:${DIR}:/usr/include/tk${V}:" tkConfig.sh</userinput></screen>
|
---|
[516af114] | 100 |
|
---|
[906cca2] | 101 | <para>The test is not recommended. Some tests may crash your X Server. To
|
---|
| 102 | test the results, issue: <command>make test</command>. Ensure you run it
|
---|
| 103 | from an X Window display device with the GLX extensions loaded, else the
|
---|
| 104 | tests will hang.</para>
|
---|
[516af114] | 105 |
|
---|
| 106 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 107 |
|
---|
[daa8f42] | 108 | <caution>
|
---|
[88dd4702] | 109 | <para>If you become the <systemitem class="username">root</systemitem>
|
---|
| 110 | user in a manner that doesn't preserve the unprivileged user's
|
---|
| 111 | environment, ensure you correctly set the environment variable
|
---|
| 112 | <envar>V</envar> again before running the installation commands.</para>
|
---|
[daa8f42] | 113 | </caution>
|
---|
| 114 |
|
---|
[516af114] | 115 | <screen role="root"><userinput>make install &&
|
---|
| 116 | install -v -d /usr/include/tk${V}/unix &&
|
---|
| 117 | install -v -m644 *.h /usr/include/tk${V}/unix/ &&
|
---|
| 118 | install -v -d /usr/include/tk${V}/generic &&
|
---|
| 119 | install -v -m644 ../generic/*.h /usr/include/tk${V}/generic/ &&
|
---|
| 120 | rm -v -f /usr/include/tk${V}/generic/{tk,tkDecls,tkPlatDecls}.h &&
|
---|
| 121 | ln -v -nsf ../../include/tk${V} /usr/lib/tk${V}/include &&
|
---|
| 122 | ln -v -sf libtk${V}.so /usr/lib/libtk.so &&
|
---|
| 123 | ln -v -sf wish${V} /usr/bin/wish</userinput></screen>
|
---|
| 124 |
|
---|
| 125 | <para>Clean up the unprivileged user's environment using the following
|
---|
| 126 | commands:</para>
|
---|
[d8614521] | 127 |
|
---|
[516af114] | 128 | <screen><userinput>unset VERSION &&
|
---|
[d8614521] | 129 | unset V &&
|
---|
[516af114] | 130 | unset DIR</userinput></screen>
|
---|
[d8614521] | 131 |
|
---|
[516af114] | 132 | </sect2>
|
---|
| 133 |
|
---|
| 134 | <sect2 role="commands">
|
---|
| 135 | <title>Command Explanations</title>
|
---|
| 136 |
|
---|
| 137 | <para><parameter>--enable-threads</parameter>: This switch forces the package
|
---|
| 138 | to build with thread support.</para>
|
---|
| 139 |
|
---|
[4c34d6e2] | 140 | <para><command>sed -i "s/relid'/relid/" configure</command>: This command
|
---|
| 141 | fixes a syntax error in the <command>configure</command> script.</para>
|
---|
| 142 |
|
---|
| 143 | <para><command>sed -i -e ... tkConfig.sh</command>: The
|
---|
| 144 | <application>Tk</application> package assumes that the source used to build
|
---|
| 145 | <application>Tk</application> is always kept around for compiling packages
|
---|
| 146 | that depend on <application>Tk</application>. This <command>sed</command>
|
---|
[4cf3eb1] | 147 | removes the references to the build directory and replaces them with saner
|
---|
[4c34d6e2] | 148 | system-wide locations.</para>
|
---|
[516af114] | 149 |
|
---|
| 150 | <para><command>install ...</command>: These commands install the internal
|
---|
| 151 | headers into a system-wide location.</para>
|
---|
| 152 |
|
---|
| 153 | <para><command>ln -v -sf ...</command>: These commands create compatibility
|
---|
| 154 | symbolic links.</para>
|
---|
| 155 |
|
---|
| 156 | </sect2>
|
---|
| 157 |
|
---|
| 158 | <sect2 role="content">
|
---|
| 159 | <title>Contents</title>
|
---|
| 160 |
|
---|
| 161 | <segmentedlist>
|
---|
| 162 | <segtitle>Installed Programs</segtitle>
|
---|
| 163 | <segtitle>Installed Libraries</segtitle>
|
---|
| 164 | <segtitle>Installed Directories</segtitle>
|
---|
| 165 |
|
---|
| 166 | <seglistitem>
|
---|
| 167 | <seg>wish and wish8.4</seg>
|
---|
| 168 | <seg>libtk.so and libtkstub8.4.a</seg>
|
---|
| 169 | <seg>/usr/include/tk8.4 and /usr/lib/tk8.4</seg>
|
---|
| 170 | </seglistitem>
|
---|
| 171 | </segmentedlist>
|
---|
| 172 |
|
---|
| 173 | <variablelist>
|
---|
| 174 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 175 | <?dbfo list-presentation="list"?>
|
---|
| 176 | <?dbhtml list-presentation="table"?>
|
---|
| 177 |
|
---|
| 178 | <varlistentry id="wish">
|
---|
| 179 | <term><command>wish</command></term>
|
---|
| 180 | <listitem>
|
---|
| 181 | <para> is a symlink to the <command>wish8.4</command> program.</para>
|
---|
| 182 | <indexterm zone="tk wish">
|
---|
[40d6bab] | 183 | <primary sortas="g-wish">wish</primary>
|
---|
[516af114] | 184 | </indexterm>
|
---|
| 185 | </listitem>
|
---|
| 186 | </varlistentry>
|
---|
| 187 |
|
---|
| 188 | <varlistentry id="wish8.4">
|
---|
| 189 | <term><command>wish8.4</command></term>
|
---|
| 190 | <listitem>
|
---|
| 191 | <para> is a simple shell containing the
|
---|
| 192 | <application>Tk</application> toolkit that creates a main window and
|
---|
| 193 | then processes <application>Tcl</application> commands.</para>
|
---|
| 194 | <indexterm zone="tk wish8.4">
|
---|
| 195 | <primary sortas="b-wish8.4">wish8.4</primary>
|
---|
| 196 | </indexterm>
|
---|
| 197 | </listitem>
|
---|
| 198 | </varlistentry>
|
---|
| 199 |
|
---|
| 200 | <varlistentry id="libtk">
|
---|
| 201 | <term><filename role="library">libtk.so</filename></term>
|
---|
| 202 | <listitem>
|
---|
| 203 | <para>contains the API functions required
|
---|
| 204 | by <application>Tk</application>.</para>
|
---|
| 205 | <indexterm zone="tk libtk">
|
---|
| 206 | <primary sortas="c-libtk">libtk.so</primary>
|
---|
| 207 | </indexterm>
|
---|
| 208 | </listitem>
|
---|
| 209 | </varlistentry>
|
---|
| 210 |
|
---|
| 211 | </variablelist>
|
---|
| 212 |
|
---|
| 213 | </sect2>
|
---|
[c4f1401] | 214 |
|
---|
| 215 | </sect1>
|
---|