[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 " ">
|
---|
[9d1d2ef] | 9 | <!ENTITY libpng-md5sum "9a5cbe9798927fdf528f3186a8840ebe">
|
---|
| 10 | <!ENTITY libpng-size "670 KB">
|
---|
| 11 | <!ENTITY libpng-buildsize "11 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 |
|
---|
[a263ccb3] | 35 | &lfs65_checked;
|
---|
| 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>
|
---|
[9d1d2ef] | 62 | <para>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
|
---|
[78fe2b4] | 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 |
|
---|
[e9116cc] | 79 | <para>Install <application>libpng</application> by running the following
|
---|
[6b71f17] | 80 | commands:</para>
|
---|
| 81 |
|
---|
[14bea4d] | 82 | <screen><userinput>patch -Np1 -i ../libpng-&libpng-version;-apng-1.patch &&
|
---|
| 83 | ./configure --prefix=/usr &&
|
---|
[8042630] | 84 | make</userinput></screen>
|
---|
| 85 |
|
---|
| 86 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
[6b71f17] | 87 |
|
---|
| 88 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 89 |
|
---|
[8042630] | 90 | <screen role="root"><userinput>make install &&
|
---|
[9de6f91] | 91 |
|
---|
[8042630] | 92 | install -v -m755 -d /usr/share/doc/libpng-&libpng-version; &&
|
---|
[9de6f91] | 93 | install -v -m644 README libpng-&libpng-version;.txt \
|
---|
| 94 | /usr/share/doc/libpng-&libpng-version;</userinput></screen>
|
---|
[6b71f17] | 95 |
|
---|
| 96 | </sect2>
|
---|
| 97 |
|
---|
[8042630] | 98 | <!-- <sect2 role="commands">
|
---|
[6b71f17] | 99 | <title>Command Explanations</title>
|
---|
| 100 |
|
---|
[75dd80d] | 101 | <para><parameter>ZLIBINC=; ZLIBLIB=</parameter>: This
|
---|
[6b71f17] | 102 | forces <application>libpng</application> to look for the
|
---|
[75dd80d] | 103 | <application>Zlib</application> includes and libraries in the default locations
|
---|
| 104 | (<filename class='directory'>/usr/include</filename> and
|
---|
| 105 | <filename class='directory'>/usr/lib</filename> respectively).</para>
|
---|
[6b71f17] | 106 |
|
---|
[e9116cc] | 107 | <para><parameter>-f scripts/makefile.linux</parameter>: This points
|
---|
| 108 | <command>make</command> at the <application>Linux</application> version of the
|
---|
| 109 | <filename>Makefile</filename> as <application>libpng</application> doesn't use
|
---|
[c138ad9] | 110 | an <application>Autoconf</application> routine. Instead, it has various
|
---|
[6b71f17] | 111 | <filename>Makefile</filename>s for different platforms.</para>
|
---|
| 112 |
|
---|
[8042630] | 113 | </sect2> -->
|
---|
[6b71f17] | 114 |
|
---|
[9de6f91] | 115 | <!-- <sect2 role="configuration">
|
---|
[8042630] | 116 | <title>Configuring libpng</title>
|
---|
[6b71f17] | 117 |
|
---|
| 118 | <sect3>
|
---|
| 119 | <title>Configuration Information</title>
|
---|
| 120 |
|
---|
[ebabf24] | 121 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 122 | href="../../xincludes/lib-config.xml"/>
|
---|
[6b71f17] | 123 |
|
---|
| 124 | </sect3>
|
---|
| 125 |
|
---|
[9de6f91] | 126 | </sect2> -->
|
---|
[6b71f17] | 127 |
|
---|
| 128 | <sect2 role="content">
|
---|
| 129 | <title>Contents</title>
|
---|
| 130 |
|
---|
| 131 | <segmentedlist>
|
---|
| 132 | <segtitle>Installed Programs</segtitle>
|
---|
| 133 | <segtitle>Installed Libraries</segtitle>
|
---|
[9de6f91] | 134 | <segtitle>Installed Directories</segtitle>
|
---|
[6b71f17] | 135 |
|
---|
| 136 | <seglistitem>
|
---|
| 137 | <seg>libpng-config and libpng12-config</seg>
|
---|
[14bea4d] | 138 | <seg>libpng.{so,a} and libpng12.{so,a}</seg>
|
---|
[8042630] | 139 | <seg>/usr/include/libpng12 and
|
---|
| 140 | /usr/share/doc/libpng-&libpng-version;</seg>
|
---|
[6b71f17] | 141 | </seglistitem>
|
---|
| 142 | </segmentedlist>
|
---|
| 143 |
|
---|
| 144 | <variablelist>
|
---|
| 145 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 146 | <?dbfo list-presentation="list"?>
|
---|
| 147 | <?dbhtml list-presentation="table"?>
|
---|
| 148 |
|
---|
| 149 | <varlistentry id="libpng-config">
|
---|
| 150 | <term><command>libpng-config</command></term>
|
---|
| 151 | <listitem>
|
---|
| 152 | <para>is a symlink to <command>libpng12-config</command>.</para>
|
---|
| 153 | <indexterm zone="libpng libpng-config">
|
---|
| 154 | <primary sortas="g-libpng-config">libpng-config</primary>
|
---|
| 155 | </indexterm>
|
---|
| 156 | </listitem>
|
---|
| 157 | </varlistentry>
|
---|
| 158 |
|
---|
| 159 | <varlistentry id="libpng12-config">
|
---|
| 160 | <term><command>libpng12-config</command></term>
|
---|
| 161 | <listitem>
|
---|
| 162 | <para>provides configuration information for
|
---|
| 163 | <application>libpng</application>.</para>
|
---|
| 164 | <indexterm zone="libpng libpng12-config">
|
---|
| 165 | <primary sortas="b-libpng12-config">libpng12-config</primary>
|
---|
| 166 | </indexterm>
|
---|
| 167 | </listitem>
|
---|
| 168 | </varlistentry>
|
---|
| 169 |
|
---|
| 170 | <varlistentry id="libpng12">
|
---|
[14bea4d] | 171 | <term><filename class='libraryfile'>libpng.{so,a} and
|
---|
[1039de3] | 172 | libpng12.{so,a}</filename></term>
|
---|
[6b71f17] | 173 | <listitem>
|
---|
[e9116cc] | 174 | <para>are a collection of routines used to create and manipulate PNG
|
---|
| 175 | format graphics files. The PNG format was designed as a replacement for
|
---|
| 176 | GIF and, to a lesser extent, TIFF, with many improvements and extensions
|
---|
[6b71f17] | 177 | and lack of patent problems.</para>
|
---|
| 178 | <indexterm zone="libpng libpng12">
|
---|
[8042630] | 179 | <primary sortas="c-libpng12">libpng12.{so,a}</primary>
|
---|
[6b71f17] | 180 | </indexterm>
|
---|
| 181 | </listitem>
|
---|
| 182 | </varlistentry>
|
---|
| 183 |
|
---|
| 184 | </variablelist>
|
---|
| 185 |
|
---|
| 186 | </sect2>
|
---|
[f45b1953] | 187 |
|
---|
| 188 | </sect1>
|
---|