glfs/general/graphlib/libpng.xml

176 lines
6.1 KiB
XML
Raw Normal View History

<?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 libpng-download-http
"&sourceforge-repo;/libpng/libpng-&libpng-version;.tar.xz">
<!ENTITY libpng-download-ftp " ">
<!ENTITY libpng-md5sum "0f7ae352beadaff78073733905613041">
<!ENTITY libpng-size "685 KB">
<!ENTITY libpng-buildsize "8.3 MB">
<!ENTITY libpng-time "0.1 SBU">
<!ENTITY apng-patch
"&sourceforge-repo2;/projects/libpng-apng/files/libpng15/&libpng-version;/libpng-&libpng-version;-apng.patch.gz">
]>
<sect1 id="libpng" xreflabel="libpng-&libpng-version;">
<?dbhtml filename="libpng.html"?>
<sect1info>
<othername>$LastChangedBy$</othername>
<date>$Date$</date>
</sect1info>
<title>libpng-&libpng-version;</title>
<indexterm zone="libpng">
<primary sortas="a-Libpng">Libpng</primary>
</indexterm>
<sect2 role="package">
<title>Introduction to libpng</title>
<para>The <application>libpng</application> package contains libraries used
by other programs for reading and writing PNG files. The PNG format was
designed as a replacement for GIF and, to a lesser extent, TIFF, with many
improvements and extensions and lack of patent problems.</para>
&lfs70_checked;
<bridgehead renderas="sect3">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>Download (HTTP): <ulink url="&libpng-download-http;"/></para>
</listitem>
<listitem>
<para>Download (FTP): <ulink url="&libpng-download-ftp;"/></para>
</listitem>
<listitem>
<para>Download MD5 sum: &libpng-md5sum;</para>
</listitem>
<listitem>
<para>Download size: &libpng-size;</para>
</listitem>
<listitem>
<para>Estimated disk space required: &libpng-buildsize;</para>
</listitem>
<listitem>
<para>Estimated build time: &libpng-time;</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>Optional patch to include animated png functionality in
<application>libpng</application> : <ulink url="&apng-patch;"/></para>
<para>The patch is required if you want to use the system
<application>libpng</application> in
<application>Firefox</application>.</para>
</listitem>
</itemizedlist>
<para condition="html" role="usernotes">User Notes:
<ulink url="&blfs-wiki;/libpng"/></para>
</sect2>
<sect2 role="installation">
<title>Installation of libpng</title>
<para>If you want to patch libpng to support apng files, apply the
patch:</para>
<screen><userinput>gzip -cd ../libpng-&libpng-version;-apng.patch.gz | patch -p1 &amp;&amp;
awk '/10[0-2][0-9],/{ gsub(/,png/, ", png")
gsub(/PNG_EXPORT./, "")
gsub(/,/, "")
print " " $3 " @" $1 }' png.h >> scripts/symbols.def &amp;&amp;
sed -i 's#ORDINAL(233)#ORDINAL(1020)#' png.h &amp;&amp;
sed -i 's#"error"#"ignore"#' scripts/checksym.awk &amp;&amp;</userinput></screen>
<para>Install <application>libpng</application> by running the following
commands:</para>
<screen><userinput>./configure --prefix=/usr --disable-static &amp;&amp;
make</userinput></screen>
<para>To test the results, issue: <command>make check</command>.</para>
<para>Now, as the <systemitem class="username">root</systemitem>
user:</para>
<screen role="root"><userinput>make install &amp;&amp;
mkdir /usr/share/doc/libpng-&libpng-version; &amp;&amp;
cp README libpng-manual.txt /usr/share/doc/libpng-&libpng-version;</userinput></screen>
</sect2>
<sect2 role="commands">
<title>Command Explanations</title>
<para><command>awk '/10[0-2][0-9] ...</command>, <command>sed -i 's#ORDINAL
...</command> and <command>sed -i 's#"error" ...</command>: These commands
massage the test suite to accept the animated png functions.</para>
<para><option>--disable-static</option>: This option prevents it compiling
the static archive versions of the libraries.</para>
</sect2>
<sect2 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Programs</segtitle>
<segtitle>Installed Libraries</segtitle>
<segtitle>Installed Directories</segtitle>
<seglistitem>
<seg>libpng-config and libpng15-config</seg>
<seg>libpng.so and libpng15.so</seg>
<seg>/usr/include/libpng15 and
/usr/share/doc/libpng-&libpng-version;</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="libpng-config">
<term><command>libpng-config</command></term>
<listitem>
<para>is a symlink to <command>libpng15-config</command>.</para>
<indexterm zone="libpng libpng-config">
<primary sortas="g-libpng-config">libpng-config</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="libpng15-config">
<term><command>libpng15-config</command></term>
<listitem>
<para>provides configuration information for
<application>libpng</application>.</para>
<indexterm zone="libpng libpng15-config">
<primary sortas="b-libpng15-config">libpng15-config</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="libpng15">
<term><filename class="libraryfile">libpng.so and
libpng15.so</filename></term>
<listitem>
<para>contain routines used to create and manipulate PNG format
graphics files.</para>
<indexterm zone="libpng libpng15">
<primary sortas="c-libpng15">libpng15.so</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>