[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[52d29f7] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[fce275e] | 7 | <!ENTITY libpng-download-http "&sourceforge-repo;/libpng/libpng-&libpng-version;.tar.bz2">
|
---|
[8042630] | 8 | <!ENTITY libpng-download-ftp " ">
|
---|
[d0c5ea3] | 9 | <!ENTITY libpng-md5sum "e3ac7879d62ad166a6f0c7441390d12b">
|
---|
| 10 | <!ENTITY libpng-size "643 KB">
|
---|
| 11 | <!ENTITY libpng-buildsize "14.7 MB">
|
---|
[14bea4d] | 12 | <!ENTITY libpng-time "0.2 SBU">
|
---|
[52d29f7] | 13 | ]>
|
---|
| 14 |
|
---|
[f45b1953] | 15 | <sect1 id="libpng" xreflabel="libpng-&libpng-version;">
|
---|
[6b71f17] | 16 | <?dbhtml filename="libpng.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
[8042630] | 23 | <title>libpng-&libpng-version;</title>
|
---|
[6b71f17] | 24 |
|
---|
| 25 | <indexterm zone="libpng">
|
---|
| 26 | <primary sortas="a-Libpng">Libpng</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
[13d6079] | 29 | <sect2 role="package">
|
---|
[8042630] | 30 | <title>Introduction to libpng</title>
|
---|
[6b71f17] | 31 |
|
---|
| 32 | <para>The <application>libpng</application> package contains libraries used
|
---|
| 33 | by other programs for reading and writing PNG files.</para>
|
---|
| 34 |
|
---|
[76ae9a2] | 35 | &lfs66_checked;
|
---|
[a263ccb3] | 36 |
|
---|
[6b71f17] | 37 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 38 | <itemizedlist spacing="compact">
|
---|
| 39 | <listitem>
|
---|
| 40 | <para>Download (HTTP): <ulink url="&libpng-download-http;"/></para>
|
---|
| 41 | </listitem>
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>Download (FTP): <ulink url="&libpng-download-ftp;"/></para>
|
---|
| 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>Download MD5 sum: &libpng-md5sum;</para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>Download size: &libpng-size;</para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>Estimated disk space required: &libpng-buildsize;</para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>Estimated build time: &libpng-time;</para>
|
---|
| 56 | </listitem>
|
---|
| 57 | </itemizedlist>
|
---|
| 58 |
|
---|
[57fc33d3] | 59 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
[6b71f17] | 60 | <itemizedlist spacing='compact'>
|
---|
| 61 | <listitem>
|
---|
[76ae9a2] | 62 | <para>Optional patch to include apng functionality in
|
---|
[57fc33d3] | 63 | <application>libpng</application> : <ulink
|
---|
| 64 | url="&patch-root;/libpng-&libpng-version;-apng-1.patch"/></para>
|
---|
[9d1d2ef] | 65 | <para>Although rejected by upstream, the patch is required if you want
|
---|
[a41f643] | 66 | to use the system <application>libpng</application> in
|
---|
[14bea4d] | 67 | <application>Firefox</application> 3.</para>
|
---|
[6b71f17] | 68 | </listitem>
|
---|
[57fc33d3] | 69 | </itemizedlist>
|
---|
[6b71f17] | 70 |
|
---|
[1039de3] | 71 | <para condition="html" role="usernotes">User Notes:
|
---|
| 72 | <ulink url="&blfs-wiki;/libpng"/></para>
|
---|
| 73 |
|
---|
[6b71f17] | 74 | </sect2>
|
---|
| 75 |
|
---|
| 76 | <sect2 role="installation">
|
---|
[8042630] | 77 | <title>Installation of libpng</title>
|
---|
[6b71f17] | 78 |
|
---|
[d0c5ea3] | 79 | <para>If you want to patch libpng to support apng files, apply the patch:</para>
|
---|
| 80 |
|
---|
| 81 | <screen><userinput>patch -Np1 -i ../libpng-&libpng-version;-apng-1.patch
|
---|
| 82 | </userinput></screen>
|
---|
| 83 |
|
---|
[e9116cc] | 84 | <para>Install <application>libpng</application> by running the following
|
---|
[6b71f17] | 85 | commands:</para>
|
---|
| 86 |
|
---|
[d0c5ea3] | 87 | <screen><userinput>./configure --prefix=/usr &&
|
---|
[8042630] | 88 | make</userinput></screen>
|
---|
| 89 |
|
---|
| 90 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
[6b71f17] | 91 |
|
---|
| 92 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 93 |
|
---|
[8042630] | 94 | <screen role="root"><userinput>make install &&
|
---|
[9de6f91] | 95 |
|
---|
[8042630] | 96 | install -v -m755 -d /usr/share/doc/libpng-&libpng-version; &&
|
---|
[9de6f91] | 97 | install -v -m644 README libpng-&libpng-version;.txt \
|
---|
| 98 | /usr/share/doc/libpng-&libpng-version;</userinput></screen>
|
---|
[6b71f17] | 99 |
|
---|
| 100 | </sect2>
|
---|
| 101 |
|
---|
[8042630] | 102 | <!-- <sect2 role="commands">
|
---|
[6b71f17] | 103 | <title>Command Explanations</title>
|
---|
| 104 |
|
---|
[75dd80d] | 105 | <para><parameter>ZLIBINC=; ZLIBLIB=</parameter>: This
|
---|
[6b71f17] | 106 | forces <application>libpng</application> to look for the
|
---|
[75dd80d] | 107 | <application>Zlib</application> includes and libraries in the default locations
|
---|
| 108 | (<filename class='directory'>/usr/include</filename> and
|
---|
| 109 | <filename class='directory'>/usr/lib</filename> respectively).</para>
|
---|
[6b71f17] | 110 |
|
---|
[e9116cc] | 111 | <para><parameter>-f scripts/makefile.linux</parameter>: This points
|
---|
| 112 | <command>make</command> at the <application>Linux</application> version of the
|
---|
| 113 | <filename>Makefile</filename> as <application>libpng</application> doesn't use
|
---|
[c138ad9] | 114 | an <application>Autoconf</application> routine. Instead, it has various
|
---|
[6b71f17] | 115 | <filename>Makefile</filename>s for different platforms.</para>
|
---|
| 116 |
|
---|
[8042630] | 117 | </sect2> -->
|
---|
[6b71f17] | 118 |
|
---|
[9de6f91] | 119 | <!-- <sect2 role="configuration">
|
---|
[8042630] | 120 | <title>Configuring libpng</title>
|
---|
[6b71f17] | 121 |
|
---|
| 122 | <sect3>
|
---|
| 123 | <title>Configuration Information</title>
|
---|
| 124 |
|
---|
[e05cd03f] | 125 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[ebabf24] | 126 | href="../../xincludes/lib-config.xml"/>
|
---|
[6b71f17] | 127 |
|
---|
| 128 | </sect3>
|
---|
| 129 |
|
---|
[9de6f91] | 130 | </sect2> -->
|
---|
[6b71f17] | 131 |
|
---|
| 132 | <sect2 role="content">
|
---|
| 133 | <title>Contents</title>
|
---|
| 134 |
|
---|
| 135 | <segmentedlist>
|
---|
| 136 | <segtitle>Installed Programs</segtitle>
|
---|
| 137 | <segtitle>Installed Libraries</segtitle>
|
---|
[9de6f91] | 138 | <segtitle>Installed Directories</segtitle>
|
---|
[6b71f17] | 139 |
|
---|
| 140 | <seglistitem>
|
---|
| 141 | <seg>libpng-config and libpng12-config</seg>
|
---|
[14bea4d] | 142 | <seg>libpng.{so,a} and libpng12.{so,a}</seg>
|
---|
[8042630] | 143 | <seg>/usr/include/libpng12 and
|
---|
| 144 | /usr/share/doc/libpng-&libpng-version;</seg>
|
---|
[6b71f17] | 145 | </seglistitem>
|
---|
| 146 | </segmentedlist>
|
---|
| 147 |
|
---|
| 148 | <variablelist>
|
---|
| 149 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 150 | <?dbfo list-presentation="list"?>
|
---|
| 151 | <?dbhtml list-presentation="table"?>
|
---|
| 152 |
|
---|
| 153 | <varlistentry id="libpng-config">
|
---|
| 154 | <term><command>libpng-config</command></term>
|
---|
| 155 | <listitem>
|
---|
| 156 | <para>is a symlink to <command>libpng12-config</command>.</para>
|
---|
| 157 | <indexterm zone="libpng libpng-config">
|
---|
| 158 | <primary sortas="g-libpng-config">libpng-config</primary>
|
---|
| 159 | </indexterm>
|
---|
| 160 | </listitem>
|
---|
| 161 | </varlistentry>
|
---|
| 162 |
|
---|
| 163 | <varlistentry id="libpng12-config">
|
---|
| 164 | <term><command>libpng12-config</command></term>
|
---|
| 165 | <listitem>
|
---|
| 166 | <para>provides configuration information for
|
---|
| 167 | <application>libpng</application>.</para>
|
---|
| 168 | <indexterm zone="libpng libpng12-config">
|
---|
| 169 | <primary sortas="b-libpng12-config">libpng12-config</primary>
|
---|
| 170 | </indexterm>
|
---|
| 171 | </listitem>
|
---|
| 172 | </varlistentry>
|
---|
| 173 |
|
---|
| 174 | <varlistentry id="libpng12">
|
---|
[14bea4d] | 175 | <term><filename class='libraryfile'>libpng.{so,a} and
|
---|
[1039de3] | 176 | libpng12.{so,a}</filename></term>
|
---|
[6b71f17] | 177 | <listitem>
|
---|
[e9116cc] | 178 | <para>are a collection of routines used to create and manipulate PNG
|
---|
| 179 | format graphics files. The PNG format was designed as a replacement for
|
---|
| 180 | GIF and, to a lesser extent, TIFF, with many improvements and extensions
|
---|
[6b71f17] | 181 | and lack of patent problems.</para>
|
---|
| 182 | <indexterm zone="libpng libpng12">
|
---|
[8042630] | 183 | <primary sortas="c-libpng12">libpng12.{so,a}</primary>
|
---|
[6b71f17] | 184 | </indexterm>
|
---|
| 185 | </listitem>
|
---|
| 186 | </varlistentry>
|
---|
| 187 |
|
---|
| 188 | </variablelist>
|
---|
| 189 |
|
---|
| 190 | </sect2>
|
---|
[f45b1953] | 191 |
|
---|
| 192 | </sect1>
|
---|