glfs/x/lib/fltk.xml
Bruce Dubbs b4f8b750cc Add fltk-1.3.2 to support tigervnc
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@13229 af4574ff-66df-0310-9fd7-8a98e5e911e0
2014-06-13 22:42:06 +00:00

264 lines
7.6 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 fltk-download-http "http://fltk.org/pub/fltk/&fltk-version;/fltk-&fltk-version;-source.tar.xz">
<!ENTITY fltk-download-ftp " ">
<!ENTITY fltk-md5sum "9f7e707d4fb7a5a76f0f9b73ff70623d">
<!ENTITY fltk-size "4.1 MB">
<!ENTITY fltk-buildsize "??? MB">
<!ENTITY fltk-time "??? SBU">
]>
<sect1 id="fltk" xreflabel="FLTK-&fltk-version;">
<?dbhtml filename="fltk.html"?>
<sect1info>
<othername>$LastChangedBy: fernando $</othername>
<date>$Date: 2014-05-18 18:40:17 -0500 (Sun, 18 May 2014) $</date>
</sect1info>
<title>FLTK-&fltk-version;</title>
<indexterm zone="fltk">
<primary sortas="a-FLTK">FLTK</primary>
</indexterm>
<sect2 role="package">
<title>Introduction to FLTK</title>
<para>
FLTK (pronounced "fulltick") is a cross-platform C++ GUI toolkit.
FLTK provides modern GUI functionality and supports 3D graphics via
OpenGL and its built-in GLUT emulation libraries used for creating
graphical user interfaces for applications.
</para>
&lfs75_checked;
<bridgehead renderas="sect3">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>
Download (HTTP): <ulink url="&fltk-download-http;"/>
</para>
</listitem>
<listitem>
<para>
Download (FTP): <ulink url="&fltk-download-ftp;"/>
</para>
</listitem>
<listitem>
<para>
Download MD5 sum: &fltk-md5sum;
</para>
</listitem>
<listitem>
<para>
Download size: &fltk-size;
</para>
</listitem>
<listitem>
<para>
Estimated disk space required: &fltk-buildsize;
</para>
</listitem>
<listitem>
<para>
Estimated build time: &fltk-time;
</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>
Required patch:
<ulink url="&patch-root;/fltk-&fltk-version;-tigervnc-1.patch"/>
</para>
</listitem>
<listitem>
<para>
Required patch:
<ulink url="&patch-root;/fltk-&fltk-version;-dynameic_libs-1.patch"/>
</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect3">FLTK Dependencies</bridgehead>
<bridgehead renderas="sect4">Required</bridgehead>
<para role="required">
<xref linkend="glu"/>
<xref linkend="mesalib"/>, and
<xref linkend="xorg7-lib"/>,
</para>
<bridgehead renderas="sect4">Recommended</bridgehead>
<para role="recommended">
<xref linkend="desktop-file-utils"/>,
<xref linkend="hicolor-icon-theme"/>, and
<xref linkend="libjpeg"/>,
</para>
<bridgehead renderas="sect4">Optional</bridgehead>
<para role="optional">
<xref linkend="alsa-lib"/>,
<xref linkend="doxygen"/>, and
<xref linkend="texlive"/>,
</para>
<para condition="html" role="usernotes">
User Notes: <ulink url="&blfs-wiki;/fltk"/>
</para>
</sect2>
<sect2 role="installation">
<title>Installation of FLTK</title>
<note>
<para>The tar extraction directory is fltk-&fltk-version; and not
fltk-&fltk-version;-source as indicated by the tarball name.</para>
</note>
<para>
Install <application>FLTK</application> by running the following
commands:
</para>
<screen><userinput>patch -Np1 -i ../fltk-&fltk-version;-tigervnc-1.patch &amp;&amp;
patch -Np1 -i ../fltk-&fltk-version;-dynamic-libs-1.patch &amp;&amp;
sed -i -e '/cat./d' documentation/Makefile &amp;&amp;
./configure --prefix=/usr \
--enable-threads \
--enable-xft \
--enable-shared &amp;&amp;
make</userinput></screen>
<para>If you wish to create the api documentation, issue:</para>
<screen><userinput>make -C documentation html</userinput></screen>
<para>The tests for the package are interactive. To execute the tests, run
<command>test/unittests</command>. In addition, there are 70 other
executable test progroms in the <filename class='directory'>test</filename>
directory that can be run individually.</para>
<para>
Now, as the <systemitem class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>make docdir=/usr/share/doc/fltk-&fltk-version; install</userinput></screen>
<para>If desired, install some example games built as a part of the tests,
extra documentation and example programs. As the <systemitem
class="username">root</systemitem> user:</para>
<screen role="root"><userinput>make -C test install-linux &amp;&amp;
make -C documentation install-linux</userinput></screen>
</sect2>
<sect2 role="commands">
<title>Command Explanations</title>
<para>
<command>patch ...tigervnc-1.patch</command>: Install patches to make
the libraries compatible with <application>tigervnc</application>.
</para>
<para>
<command>patch ...dynamic-libs-1.patch</command>: Allow building
dynamic libraries.
</para>
<para>
<command>sed ... documentation/Makefile</command>: Avoid installing
pages in <filename class='directory'>/usr/share/man/cat*</filename>.
</para>
</sect2>
<sect2 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Programs</segtitle>
<segtitle>Installed Libraries</segtitle>
<segtitle>Installed Directories</segtitle>
<seglistitem>
<seg>
blocks,
checkers,
fltk-config,
fluid, and
sudoku
</seg>
<seg>
libfltk.{a,so},
libfltk_forms.{a,so},
libfltk_gl.{a,so}, and
libfltk_images.{a,so}
</seg>
<seg>
/usr/include/FL and
/usr/share/doc/fltk-&fltk-version;
</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="fltk-config">
<term><command>fltk-config</command></term>
<listitem>
<para>
is a utility script that can be used to get information about the
current version of FLTK that is installed on the system.
</para>
<indexterm zone="fltk fltk-config">
<primary sortas="b-fltk-config">fltk-config</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="fluid">
<term><command>fluid</command></term>
<listitem>
<para>
is an interactive GUI designer for FLTK.
</para>
<indexterm zone="fltk fluid">
<primary sortas="b-fluid">fluid</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="libfltk">
<term><filename class="libraryfile">libfltk.so</filename></term>
<listitem>
<para>
contains functions that provide an API to implement graphical user
interfaces.
</para>
<indexterm zone="fltk libfltk">
<primary sortas="c-libfltk">libfltk.so</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>