mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-25 07:42:13 +08:00
a0f03b0675
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@2591 af4574ff-66df-0310-9fd7-8a98e5e911e0
117 lines
3.8 KiB
XML
117 lines
3.8 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
|
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
%general-entities;
|
|
|
|
<!ENTITY tk-download-http "http://prdownloads.sourceforge.net/tcl/tk&tk-version;-src.tar.gz">
|
|
<!ENTITY tk-download-ftp "ftp://ftp.us.xemacs.org/pub/tcl/tcl8_4/tk&tk-version;-src.tar.gz">
|
|
<!ENTITY tk-size "3.1 MB">
|
|
<!ENTITY tk-buildsize "17.4 MB">
|
|
<!ENTITY tk-time "0.41 SBU">
|
|
]>
|
|
|
|
<sect1 id="tk" xreflabel="Tk-&tk-version;">
|
|
<sect1info>
|
|
<othername>$LastChangedBy: $</othername>
|
|
<date>$Date: $</date>
|
|
</sect1info>
|
|
<?dbhtml filename="tk.html"?>
|
|
<title>Tk-&tk-version;</title>
|
|
|
|
<sect2>
|
|
<title>Introduction to <application>Tk</application></title>
|
|
|
|
<para>The <application>Tk</application> package contains a
|
|
<acronym>TCL</acronym> <acronym>GUI</acronym> Toolkit.</para>
|
|
|
|
<sect3><title>Package information</title>
|
|
<itemizedlist spacing='compact'>
|
|
<listitem><para>Download (HTTP): <ulink
|
|
url="&tk-download-http;"/></para></listitem>
|
|
<listitem><para>Download (FTP): <ulink
|
|
url="&tk-download-ftp;"/></para></listitem>
|
|
<listitem><para>Download size: &tk-size;</para></listitem>
|
|
<listitem><para>Estimated Disk space required:
|
|
&tk-buildsize;</para></listitem>
|
|
<listitem><para>Estimated build time:
|
|
&tk-time;</para></listitem></itemizedlist>
|
|
</sect3>
|
|
|
|
<sect3><title><application>Tk</application> dependencies</title>
|
|
<sect4><title>Required</title>
|
|
<para>X (<xref linkend="xfree86"/> or <xref linkend="xorg"/>) and
|
|
<xref linkend="tcl"/></para></sect4>
|
|
</sect3>
|
|
|
|
</sect2>
|
|
|
|
<sect2>
|
|
<title>Installation of <application>Tk</application></title>
|
|
|
|
<para>Install <application>Tk</application> by running the following
|
|
commands:</para>
|
|
|
|
<screen><userinput><command>VERSION=&tk-version; &&
|
|
V=`echo $VERSION | cut -d "." -f 1,2` &&
|
|
DIR=$PWD &&
|
|
cd unix &&
|
|
./configure --prefix=/usr &&
|
|
make &&
|
|
sed -i "s:${DIR}/unix:/usr/lib:" tkConfig.sh &&
|
|
sed -i "s:${DIR}:/usr/include/tk${V}:" tkConfig.sh &&
|
|
make install &&
|
|
install -d /usr/include/tk${V}/unix &&
|
|
install -m644 *.h /usr/include/tk${V}/unix/ &&
|
|
install -d /usr/include/tk${V}/generic &&
|
|
install -m644 ../generic/*.h /usr/include/tk${V}/generic/ &&
|
|
rm -f /usr/include/tk${V}/generic/{tk,tkDecls,tkPlatDecls}.h &&
|
|
ln -nsf ../../include/tk${V} /usr/lib/tk${V}/include &&
|
|
ln -sf libtk${V}.so /usr/lib/libtk.so &&
|
|
ln -sf wish${V} /usr/bin/wish</command></userinput></screen>
|
|
|
|
<note><para>If you build the package as an ordinary user and then switch to root to
|
|
install the package, ensure you set the environment variables
|
|
<envar>V</envar> and <envar>VERSION</envar> before running the installation
|
|
commands.</para></note>
|
|
|
|
</sect2>
|
|
|
|
<sect2>
|
|
<title>Command explanations</title>
|
|
|
|
<para><command>sed -i ...</command>: The <application>Tk</application> package
|
|
assumes that the source that is used to build <application>Tk</application> is
|
|
always kept around for compiling packages that depend on
|
|
<application>Tk</application>. These <command>sed</command>'s remove the
|
|
reference to the build directory and replace them by saner system wide
|
|
locations.</para>
|
|
|
|
<para><command>install ...</command>: These commands install the internal
|
|
headers into a system-wide location.</para>
|
|
|
|
<para><command>ln -sf ...</command>: These commands create compatibility
|
|
symbolic links.</para>
|
|
|
|
</sect2>
|
|
|
|
<sect2>
|
|
<title>Contents</title>
|
|
|
|
<para>The <application>Tk</application> package contains
|
|
<command>wish</command> and the
|
|
<filename class='libraryfile'>libtk</filename> library.</para>
|
|
|
|
</sect2>
|
|
|
|
<sect2><title>Description</title>
|
|
|
|
<sect3><title>wish</title>
|
|
<para><command>wish</command> is a simple shell containing the
|
|
<application>Tk</application> toolkit that creates a main window and
|
|
then processes Tcl commands.</para></sect3>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|