[52d29f7] | 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 |
|
---|
[503b39f] | 15 | <sect1 id="tk" xreflabel="Tk-&tk-version;">
|
---|
[19aa75a] | 16 | <?dbhtml filename="tk.html"?>
|
---|
[503b39f] | 17 | <title>Tk-&tk-version;</title>
|
---|
[c4f1401] | 18 |
|
---|
[52d29f7] | 19 | <sect2>
|
---|
| 20 | <title>Introduction to <application>Tk</application></title>
|
---|
| 21 |
|
---|
| 22 | <para>The <application>Tk</application> package contains
|
---|
| 23 | <acronym>TCL</acronym> <acronym>GUI</acronym> Toolkit.</para>
|
---|
| 24 |
|
---|
| 25 | <sect3><title>Package information</title>
|
---|
| 26 | <itemizedlist spacing='compact'>
|
---|
| 27 | <listitem><para>Download (HTTP): <ulink
|
---|
| 28 | url="&tk-download-http;"/></para></listitem>
|
---|
| 29 | <listitem><para>Download (FTP): <ulink
|
---|
| 30 | url="&tk-download-ftp;"/></para></listitem>
|
---|
| 31 | <listitem><para>Download size: &tk-size;</para></listitem>
|
---|
| 32 | <listitem><para>Estimated Disk space required:
|
---|
| 33 | &tk-buildsize;</para></listitem>
|
---|
| 34 | <listitem><para>Estimated build time:
|
---|
| 35 | &tk-time;</para></listitem></itemizedlist>
|
---|
| 36 | </sect3>
|
---|
| 37 |
|
---|
| 38 | <sect3><title><application>Tk</application> dependencies</title>
|
---|
| 39 | <sect4><title>Required</title>
|
---|
| 40 | <para>X (<xref linkend="xfree86"/> or <xref linkend="xorg"/>) and <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 commands:</para>
|
---|
| 49 |
|
---|
| 50 | <screen><userinput><command>VERSION=&tk-version; &&
|
---|
| 51 | V=`echo $VERSION | cut -d "." -f 1,2` &&
|
---|
| 52 | DIR=$PWD &&
|
---|
| 53 | cd unix &&
|
---|
| 54 | ./configure --prefix=/usr &&
|
---|
| 55 | make &&
|
---|
| 56 | sed -i "s:${DIR}/unix:/usr/lib:" tkConfig.sh &&
|
---|
| 57 | sed -i "s:${DIR}:/usr/include/tk${V}:" tkConfig.sh &&
|
---|
| 58 | make install &&
|
---|
| 59 | install -d /usr/include/tk${V}/unix &&
|
---|
| 60 | install -m644 *.h /usr/include/tk${V}/unix/ &&
|
---|
| 61 | install -d /usr/include/tk${V}/generic &&
|
---|
| 62 | install -m644 ../generic/*.h /usr/include/tk${V}/generic/ &&
|
---|
| 63 | rm -f /usr/include/tk${V}/generic/{tk,tkDecls,tkPlatDecls}.h &&
|
---|
| 64 | ln -nsf /usr/include/tk${V} /usr/lib/tk${V}/include &&
|
---|
| 65 | ln -sf libtk${V}.so /usr/lib/libtk.so &&
|
---|
| 66 | ln -sf wish${V} /usr/bin/wish</command></userinput></screen>
|
---|
| 67 |
|
---|
| 68 | </sect2>
|
---|
| 69 |
|
---|
| 70 | <sect2>
|
---|
| 71 | <title>Command explanations</title>
|
---|
| 72 |
|
---|
| 73 | <para><command>sed -i ...</command>: The <application>Tk</application> package
|
---|
| 74 | assumes that the source that is used to build <application>Tk</application> is
|
---|
| 75 | always kept around for compiling packages that depend on
|
---|
| 76 | <application>Tk</application>. These <command>sed</command>'s remove the
|
---|
| 77 | reference to the build directory and replace them by saner system wide
|
---|
| 78 | locations.</para>
|
---|
| 79 |
|
---|
| 80 | <para><command>install ...</command>: These commands install the internal
|
---|
| 81 | headers into a system-wide location.</para>
|
---|
| 82 |
|
---|
| 83 | <para><command>ln -sf ...</command>: These commands create compatibility
|
---|
| 84 | symbolic links.</para>
|
---|
| 85 |
|
---|
| 86 | </sect2>
|
---|
[c4f1401] | 87 |
|
---|
| 88 | </sect1>
|
---|