mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-25 07:42:13 +08:00
56afacb415
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@7670 af4574ff-66df-0310-9fd7-8a98e5e911e0
202 lines
6.7 KiB
XML
202 lines
6.7 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
%general-entities;
|
|
|
|
<!ENTITY tk-download-http "&sourceforge-repo;/tcl/tk&tk-version;-src.tar.gz">
|
|
<!ENTITY tk-download-ftp "&gentoo-ftp-repo;/tk&tk-version;-src.tar.gz">
|
|
<!ENTITY tk-md5sum "7da2e00adddc7eed6080df904579d94e">
|
|
<!ENTITY tk-size "3.6 MB">
|
|
<!ENTITY tk-buildsize "21 MB">
|
|
<!ENTITY tk-time "0.5 SBU">
|
|
|
|
<!-- Ensure this is updated when Tk moves to the 8.5.x branch -->
|
|
<!ENTITY tk-ver "8.5">
|
|
]>
|
|
|
|
<sect1 id="tk" xreflabel="Tk-&tk-version;">
|
|
<?dbhtml filename="tk.html"?>
|
|
|
|
<sect1info>
|
|
<othername>$LastChangedBy$</othername>
|
|
<date>$Date$</date>
|
|
</sect1info>
|
|
|
|
<title>Tk-&tk-version;</title>
|
|
|
|
<indexterm zone="tk">
|
|
<primary sortas="a-Tk">Tk</primary>
|
|
</indexterm>
|
|
|
|
<sect2 role="package">
|
|
<title>Introduction to Tk</title>
|
|
|
|
<para>The <application>Tk</application> package contains a
|
|
TCL GUI Toolkit.</para>
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
<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 MD5 sum: &tk-md5sum;</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>
|
|
|
|
<bridgehead renderas="sect3">Tk Dependencies</bridgehead>
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
|
<para role="required"><xref linkend="x-window-system"/> and
|
|
<xref linkend="tcl"/></para>
|
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
<ulink url="&blfs-wiki;/tk"/></para>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="installation">
|
|
<title>Installation of Tk</title>
|
|
|
|
<para>Install <application>Tk</application> by running the following
|
|
commands:</para>
|
|
|
|
<screen><userinput>cd unix &&
|
|
./configure --prefix=/usr \
|
|
--enable-threads \
|
|
--mandir=/usr/share/man &&
|
|
make &&
|
|
sed -i \
|
|
-e "s@^\(TK_SRC_DIR='\).*@\1/usr/include'@" \
|
|
-e "/TK_B/s@='\(-L\)\?.*unix@='\1/usr/lib@" \
|
|
-e "/SEARCH/s/=.*/=''/" \
|
|
tkConfig.sh</userinput></screen>
|
|
|
|
<para>Running the tests is not recommended. Some tests may crash your X
|
|
Server. To test the results anyway, issue: <command>make test</command>.
|
|
Ensure you run it from an X Window display device with the GLX extensions
|
|
loaded, otherwise the tests will hang.</para>
|
|
|
|
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
|
|
|
<screen role="root"><userinput>make install &&
|
|
make install-private-headers &&
|
|
ln -v -sf wish&tk-ver; /usr/bin/wish</userinput></screen>
|
|
|
|
<!-- This is removed per discussion and fairly vigorous testing
|
|
install -v -m755 -d /usr/include/tk&tk-ver;/{unix,generic} &&
|
|
install -v -m644 *.h /usr/include/tk&tk-ver;/unix/ &&
|
|
install -v -m644 ../generic/*.h /usr/include/tk&tk-ver;/generic/ &&
|
|
rm -v -f /usr/include/tk&tk-ver;/generic/tk{,{,Plat}Decls}.h &&
|
|
ln -v -nsf ../../include/tk&tk-ver; /usr/lib/tk&tk-ver;/include &&
|
|
ln -v -sf libtk&tk-ver;.so /usr/lib/libtk.so &&
|
|
ln -v -sf wish&tk-ver; /usr/bin/wish</userinput></screen>
|
|
-->
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="commands">
|
|
<title>Command Explanations</title>
|
|
|
|
<para><parameter>--enable-threads</parameter>: This switch forces the
|
|
package to build with thread support.</para>
|
|
|
|
<para><command>make install-private-headers</command>: This command is
|
|
used to install the <application>Tk</application> library interface
|
|
headers used by other packages if they link to the
|
|
<application>Tk</application> library.</para>
|
|
|
|
<para><command>ln -v -sf wish&tk-ver; /usr/bin/wish</command>: This
|
|
command is used to create a compatibility symbolic link to the
|
|
<command>wish&tk-ver;</command> file as many packages expect a file
|
|
named <command>wish</command>.</para>
|
|
|
|
<para><command>sed -i -e ... tkConfig.sh</command>: The
|
|
<application>Tk</application> package expects that its source tree is
|
|
preserved so that packages depending on it for their compilation
|
|
can utilize it. This <command>sed</command> removes the references to the
|
|
build directory and replaces them with saner system-wide locations.</para>
|
|
|
|
<!--
|
|
<para><command>install ...</command>: These commands install the internal
|
|
headers into a system-wide location.</para>
|
|
|
|
<para><command>ln -v -sf ...</command>: These commands create compatibility
|
|
symbolic links.</para>
|
|
-->
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="content">
|
|
<title>Contents</title>
|
|
|
|
<segmentedlist>
|
|
<segtitle>Installed Programs</segtitle>
|
|
<segtitle>Installed Libraries</segtitle>
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
<seglistitem>
|
|
<seg>wish and wish&tk-ver;</seg>
|
|
<seg>libtk.so and libtkstub&tk-ver;.a</seg>
|
|
<seg>/usr/lib/tk&tk-ver;</seg>
|
|
</seglistitem>
|
|
</segmentedlist>
|
|
|
|
<variablelist>
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
<?dbfo list-presentation="list"?>
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
<varlistentry id="wish">
|
|
<term><command>wish</command></term>
|
|
<listitem>
|
|
<para> is a symlink to the <command>wish&tk-ver;</command>
|
|
program.</para>
|
|
<indexterm zone="tk wish">
|
|
<primary sortas="g-wish">wish</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="wish-eight">
|
|
<term><command>wish&tk-ver;</command></term>
|
|
<listitem>
|
|
<para> is a simple shell containing the
|
|
<application>Tk</application> toolkit that creates a main window and
|
|
then processes <application>Tcl</application> commands.</para>
|
|
<indexterm zone="tk wish-eight">
|
|
<primary sortas="b-wish&tk-ver;">wish&tk-ver;</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="libtk">
|
|
<term><filename role="library">libtk.so</filename></term>
|
|
<listitem>
|
|
<para>contains the API functions required
|
|
by <application>Tk</application>.</para>
|
|
<indexterm zone="tk libtk">
|
|
<primary sortas="c-libtk">libtk.so</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|