mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-24 23:32:12 +08:00
Tagged tk.xml
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3992 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
parent
5cc1126aa7
commit
516af1140b
@ -4,168 +4,189 @@
|
|||||||
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
||||||
%general-entities;
|
%general-entities;
|
||||||
|
|
||||||
<!ENTITY tk-download-http "http://prdownloads.sourceforge.net/tcl/tk&tk-version;-src.tar.gz">
|
<!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-download-ftp "ftp://ftp.us.xemacs.org/pub/tcl/tcl8_4/tk&tk-version;-src.tar.gz">
|
||||||
<!ENTITY tk-md5sum "1b64258abaf258e9a86f331d8de17a71">
|
<!ENTITY tk-md5sum "1b64258abaf258e9a86f331d8de17a71">
|
||||||
<!ENTITY tk-size "3.2 MB">
|
<!ENTITY tk-size "3.2 MB">
|
||||||
<!ENTITY tk-buildsize "23.3 MB">
|
<!ENTITY tk-buildsize "23.3 MB">
|
||||||
<!ENTITY tk-time "0.35 SBU">
|
<!ENTITY tk-time "0.35 SBU">
|
||||||
]>
|
]>
|
||||||
|
|
||||||
<sect1 id="tk" xreflabel="Tk-&tk-version;">
|
<sect1 id="tk" xreflabel="Tk-&tk-version;">
|
||||||
<sect1info>
|
<?dbhtml filename="tk.html"?>
|
||||||
<othername>$LastChangedBy$</othername>
|
|
||||||
<date>$Date$</date>
|
|
||||||
</sect1info>
|
|
||||||
<?dbhtml filename="tk.html"?>
|
|
||||||
<title>Tk-&tk-version;</title>
|
|
||||||
<indexterm zone="tk">
|
|
||||||
<primary sortas="a-Tk">Tk</primary></indexterm>
|
|
||||||
|
|
||||||
<sect2>
|
<sect1info>
|
||||||
<title>Introduction to <application>Tk</application></title>
|
<othername>$LastChangedBy$</othername>
|
||||||
|
<date>$Date$</date>
|
||||||
|
</sect1info>
|
||||||
|
|
||||||
<para>The <application>Tk</application> package contains a
|
<title>Tk-&tk-version;</title>
|
||||||
<acronym>TCL</acronym> <acronym>GUI</acronym> Toolkit.</para>
|
|
||||||
|
|
||||||
<sect3><title>Package information</title>
|
<indexterm zone="tk">
|
||||||
<itemizedlist spacing='compact'>
|
<primary sortas="a-Tk">Tk</primary>
|
||||||
<listitem><para>Download (HTTP): <ulink
|
</indexterm>
|
||||||
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>
|
|
||||||
</sect3>
|
|
||||||
|
|
||||||
<sect3><title><application>Tk</application> dependencies</title>
|
<sect2 role="package">
|
||||||
<sect4><title>Required</title>
|
<title>Introduction to Tk</title>
|
||||||
<para>X (<xref linkend="xfree86"/> or <xref linkend="xorg"/>) and
|
|
||||||
<xref linkend="tcl"/></para></sect4>
|
|
||||||
</sect3>
|
|
||||||
|
|
||||||
</sect2>
|
<para>The <application>Tk</application> package contains a
|
||||||
|
TCL GUI Toolkit.</para>
|
||||||
|
|
||||||
<sect2>
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
||||||
<title>Installation of <application>Tk</application></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 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>X (<xref linkend="xfree86"/> or <xref linkend="xorg"/>) and
|
||||||
|
<xref linkend="tcl"/></para>
|
||||||
|
|
||||||
|
</sect2>
|
||||||
|
|
||||||
|
<sect2 role="installation">
|
||||||
|
<title>Installation of Tk</title>
|
||||||
|
|
||||||
<para>Install <application>Tk</application> by running the following
|
<para>Install <application>Tk</application> by running the following
|
||||||
commands:</para>
|
commands:</para>
|
||||||
|
|
||||||
<screen><userinput><command>export VERSION=&tk-version; &&
|
<screen><userinput>export VERSION=&tk-version; &&
|
||||||
export V=`echo $VERSION | cut -d "." -f 1,2` &&
|
export V=`echo $VERSION | cut -d "." -f 1,2` &&
|
||||||
export DIR=$PWD &&
|
export DIR=$PWD &&
|
||||||
cd unix &&
|
cd unix &&
|
||||||
./configure --prefix=/usr --enable-threads &&
|
./configure --prefix=/usr --enable-threads &&
|
||||||
make &&
|
make &&
|
||||||
sed -i "s:${DIR}/unix:/usr/lib:" tkConfig.sh &&
|
sed -i "s:${DIR}/unix:/usr/lib:" tkConfig.sh &&
|
||||||
sed -i "s:${DIR}:/usr/include/tk${V}:" tkConfig.sh</command></userinput></screen>
|
sed -i "s:${DIR}:/usr/include/tk${V}:" tkConfig.sh</userinput></screen>
|
||||||
|
|
||||||
<para>To test the results, issue: <command>make test</command>. Ensure
|
<para>To test the results, issue: <command>make test</command>.
|
||||||
you do it from an X Window display device with the
|
Ensure you do it from an X Window display device with the
|
||||||
<acronym>GLX</acronym> extensions loaded, else the tests will
|
GLX extensions loaded, else the tests will hang.</para>
|
||||||
hang.</para>
|
|
||||||
|
|
||||||
<para>Now, as the root user:</para>
|
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
||||||
|
|
||||||
<screen><userinput role='root'><command>make install &&
|
<screen role="root"><userinput>make install &&
|
||||||
install -d /usr/include/tk${V}/unix &&
|
install -v -d /usr/include/tk${V}/unix &&
|
||||||
install -m644 *.h /usr/include/tk${V}/unix/ &&
|
install -v -m644 *.h /usr/include/tk${V}/unix/ &&
|
||||||
install -d /usr/include/tk${V}/generic &&
|
install -v -d /usr/include/tk${V}/generic &&
|
||||||
install -m644 ../generic/*.h /usr/include/tk${V}/generic/ &&
|
install -v -m644 ../generic/*.h /usr/include/tk${V}/generic/ &&
|
||||||
rm -f /usr/include/tk${V}/generic/{tk,tkDecls,tkPlatDecls}.h &&
|
rm -v -f /usr/include/tk${V}/generic/{tk,tkDecls,tkPlatDecls}.h &&
|
||||||
ln -nsf ../../include/tk${V} /usr/lib/tk${V}/include &&
|
ln -v -nsf ../../include/tk${V} /usr/lib/tk${V}/include &&
|
||||||
ln -sf libtk${V}.so /usr/lib/libtk.so &&
|
ln -v -sf libtk${V}.so /usr/lib/libtk.so &&
|
||||||
ln -sf wish${V} /usr/bin/wish</command></userinput></screen>
|
ln -v -sf wish${V} /usr/bin/wish</userinput></screen>
|
||||||
|
|
||||||
<para>Clean up the unprivileged user's environment using the following
|
<para>Clean up the unprivileged user's environment using the following
|
||||||
commands:</para>
|
commands:</para>
|
||||||
|
|
||||||
<screen><userinput><command>unset VERSION &&
|
<screen><userinput>unset VERSION &&
|
||||||
unset V &&
|
unset V &&
|
||||||
unset DIR</command></userinput></screen>
|
unset DIR</userinput></screen>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
<caution><para>If you build the package as an ordinary user and then switch to
|
<caution>
|
||||||
root to install the package, ensure you set the environment variables
|
<para>If you build the package as an ordinary user and then switch to
|
||||||
<envar>V</envar> and <envar>VERSION</envar> before running the installation
|
root to install the package, ensure you set the environment variables
|
||||||
commands.</para></caution>
|
<envar>V</envar> and <envar>VERSION</envar> before running the installation
|
||||||
|
commands.</para>
|
||||||
|
</caution>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
<sect2>
|
<sect2 role="commands">
|
||||||
<title>Command explanations</title>
|
<title>Command Explanations</title>
|
||||||
|
|
||||||
<para><parameter>--enable-threads</parameter>: This switch forces the package
|
<para><parameter>--enable-threads</parameter>: This switch forces the package
|
||||||
to build with thread support.</para>
|
to build with thread support.</para>
|
||||||
|
|
||||||
<para><command>sed -i ...</command>: The <application>Tk</application> package
|
<para><command>sed -i ...</command>: The <application>Tk</application> package
|
||||||
assumes that the source that is used to build <application>Tk</application> is
|
assumes that the source that is used to build <application>Tk</application> is
|
||||||
always kept around for compiling packages that depend on
|
always kept around for compiling packages that depend on
|
||||||
<application>Tk</application>. These <command>sed</command>'s remove the
|
<application>Tk</application>. These <command>sed</command>'s remove the
|
||||||
reference to the build directory and replace them by saner system wide
|
reference to the build directory and replace them by saner system wide
|
||||||
locations.</para>
|
locations.</para>
|
||||||
|
|
||||||
<para><command>install ...</command>: These commands install the internal
|
<para><command>install ...</command>: These commands install the internal
|
||||||
headers into a system-wide location.</para>
|
headers into a system-wide location.</para>
|
||||||
|
|
||||||
<para><command>ln -sf ...</command>: These commands create compatibility
|
<para><command>ln -v -sf ...</command>: These commands create compatibility
|
||||||
symbolic links.</para>
|
symbolic links.</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
<sect2>
|
<sect2 role="content">
|
||||||
<title>Contents</title>
|
<title>Contents</title>
|
||||||
|
|
||||||
<segmentedlist>
|
<segmentedlist>
|
||||||
<segtitle>Installed Programs</segtitle>
|
<segtitle>Installed Programs</segtitle>
|
||||||
<segtitle>Installed Libraries</segtitle>
|
<segtitle>Installed Libraries</segtitle>
|
||||||
<segtitle>Installed Directories</segtitle>
|
<segtitle>Installed Directories</segtitle>
|
||||||
|
|
||||||
<seglistitem>
|
<seglistitem>
|
||||||
<seg>wish and wish8.4</seg>
|
<seg>wish and wish8.4</seg>
|
||||||
<seg>libtk.so and libtkstub8.4.a</seg>
|
<seg>libtk.so and libtkstub8.4.a</seg>
|
||||||
<seg>/usr/include/tk8.4 and /usr/lib/tk8.4</seg>
|
<seg>/usr/include/tk8.4 and /usr/lib/tk8.4</seg>
|
||||||
</seglistitem>
|
</seglistitem>
|
||||||
</segmentedlist>
|
</segmentedlist>
|
||||||
|
|
||||||
<variablelist>
|
<variablelist>
|
||||||
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
||||||
<?dbfo list-presentation="list"?>
|
<?dbfo list-presentation="list"?>
|
||||||
|
<?dbhtml list-presentation="table"?>
|
||||||
|
|
||||||
<varlistentry id="wish">
|
<varlistentry id="wish">
|
||||||
<term><command>wish</command></term>
|
<term><command>wish</command></term>
|
||||||
<listitem><para> is a symlink to the <command>wish8.4</command> program.</para>
|
<listitem>
|
||||||
<indexterm zone="tk wish">
|
<para> is a symlink to the <command>wish8.4</command> program.</para>
|
||||||
<primary sortas="b-wish">wish</primary></indexterm>
|
<indexterm zone="tk wish">
|
||||||
</listitem>
|
<primary sortas="b-wish">wish</primary>
|
||||||
</varlistentry>
|
</indexterm>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry id="wish8.4">
|
<varlistentry id="wish8.4">
|
||||||
<term><command>wish8.4</command></term>
|
<term><command>wish8.4</command></term>
|
||||||
<listitem><para> is a simple shell containing the
|
<listitem>
|
||||||
<application>Tk</application> toolkit that creates a main window and
|
<para> is a simple shell containing the
|
||||||
then processes <application>Tcl</application> commands.</para>
|
<application>Tk</application> toolkit that creates a main window and
|
||||||
<indexterm zone="tk wish8.4">
|
then processes <application>Tcl</application> commands.</para>
|
||||||
<primary sortas="b-wish8.4">wish8.4</primary></indexterm>
|
<indexterm zone="tk wish8.4">
|
||||||
</listitem>
|
<primary sortas="b-wish8.4">wish8.4</primary>
|
||||||
</varlistentry>
|
</indexterm>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry id="libtk">
|
<varlistentry id="libtk">
|
||||||
<term><filename role="library">libtk.so</filename></term>
|
<term><filename role="library">libtk.so</filename></term>
|
||||||
<listitem><para>contains the <acronym>API</acronym> functions required
|
<listitem>
|
||||||
by <application>Tk</application>.</para>
|
<para>contains the API functions required
|
||||||
<indexterm zone="tk libtk">
|
by <application>Tk</application>.</para>
|
||||||
<primary sortas="c-libtk">libtk.so</primary></indexterm>
|
<indexterm zone="tk libtk">
|
||||||
</listitem>
|
<primary sortas="c-libtk">libtk.so</primary>
|
||||||
</varlistentry>
|
</indexterm>
|
||||||
</variablelist>
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
</sect2>
|
</variablelist>
|
||||||
|
|
||||||
|
</sect2>
|
||||||
|
|
||||||
</sect1>
|
</sect1>
|
||||||
|
Loading…
Reference in New Issue
Block a user