1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY libpng-download-http "&sourceforge-repo;/libpng/libpng-&libpng-version;.tar.xz">
|
---|
8 | <!ENTITY libpng-download-ftp " ">
|
---|
9 | <!ENTITY libpng-md5sum "425354f86c392318d31aedca71019372">
|
---|
10 | <!ENTITY libpng-size "964 KB">
|
---|
11 | <!ENTITY libpng-buildsize "13 MB (with tests)">
|
---|
12 | <!ENTITY libpng-time "0.8 SBU (with tests)">
|
---|
13 |
|
---|
14 | <!ENTITY apng-version "&libpng-version;">
|
---|
15 |
|
---|
16 | <!ENTITY apng-patch
|
---|
17 | "&sourceforge-repo;/project/apng/libpng/libpng16/libpng-&apng-version;-apng.patch.gz">
|
---|
18 | ]>
|
---|
19 |
|
---|
20 | <sect1 id="libpng" xreflabel="libpng-&libpng-version;">
|
---|
21 | <?dbhtml filename="libpng.html"?>
|
---|
22 |
|
---|
23 | <sect1info>
|
---|
24 | <othername>$LastChangedBy$</othername>
|
---|
25 | <date>$Date$</date>
|
---|
26 | </sect1info>
|
---|
27 |
|
---|
28 | <title>libpng-&libpng-version;</title>
|
---|
29 |
|
---|
30 | <indexterm zone="libpng">
|
---|
31 | <primary sortas="a-libpng">libpng</primary>
|
---|
32 | </indexterm>
|
---|
33 |
|
---|
34 | <sect2 role="package">
|
---|
35 | <title>Introduction to libpng</title>
|
---|
36 |
|
---|
37 | <para>
|
---|
38 | The <application>libpng</application> package contains libraries used
|
---|
39 | by other programs for reading and writing PNG files. The PNG format
|
---|
40 | was designed as a replacement for GIF and, to a lesser extent, TIFF,
|
---|
41 | with many improvements and extensions and lack of patent problems.
|
---|
42 | </para>
|
---|
43 |
|
---|
44 | &lfs80_checked;
|
---|
45 |
|
---|
46 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
47 | <itemizedlist spacing="compact">
|
---|
48 | <listitem>
|
---|
49 | <para>
|
---|
50 | Download (HTTP): <ulink url="&libpng-download-http;"/>
|
---|
51 | </para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>
|
---|
55 | Download (FTP): <ulink url="&libpng-download-ftp;"/>
|
---|
56 | </para>
|
---|
57 | </listitem>
|
---|
58 | <listitem>
|
---|
59 | <para>
|
---|
60 | Download MD5 sum: &libpng-md5sum;
|
---|
61 | </para>
|
---|
62 | </listitem>
|
---|
63 | <listitem>
|
---|
64 | <para>
|
---|
65 | Download size: &libpng-size;
|
---|
66 | </para>
|
---|
67 | </listitem>
|
---|
68 | <listitem>
|
---|
69 | <para>
|
---|
70 | Estimated disk space required: &libpng-buildsize;
|
---|
71 | </para>
|
---|
72 | </listitem>
|
---|
73 | <listitem>
|
---|
74 | <para>
|
---|
75 | Estimated build time: &libpng-time;
|
---|
76 | </para>
|
---|
77 | </listitem>
|
---|
78 | </itemizedlist>
|
---|
79 |
|
---|
80 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
81 | <itemizedlist spacing="compact">
|
---|
82 | <listitem>
|
---|
83 | <para>
|
---|
84 | Recommended patch to include animated png functionality in
|
---|
85 | <application>libpng</application> (required to use the system
|
---|
86 | <application>libpng</application> in
|
---|
87 | <application>Firefox</application>,
|
---|
88 | <application>Seamonkey</application>, and
|
---|
89 | <application>Thunderbird</application>): <ulink url="&apng-patch;"/>
|
---|
90 | </para>
|
---|
91 | </listitem>
|
---|
92 | </itemizedlist>
|
---|
93 |
|
---|
94 | <para condition="html" role="usernotes">
|
---|
95 | User Notes: <ulink url="&blfs-wiki;/libpng"/>
|
---|
96 | </para>
|
---|
97 | </sect2>
|
---|
98 |
|
---|
99 | <sect2 role="installation">
|
---|
100 | <title>Installation of libpng</title>
|
---|
101 |
|
---|
102 | <para>
|
---|
103 | If you want to patch libpng to support apng files, apply it here:
|
---|
104 | </para>
|
---|
105 |
|
---|
106 | <screen><userinput>gzip -cd ../libpng-&apng-version;-apng.patch.gz | patch -p0</userinput></screen>
|
---|
107 |
|
---|
108 | <para>
|
---|
109 | Install <application>libpng</application> by running the following
|
---|
110 | commands:
|
---|
111 | </para>
|
---|
112 |
|
---|
113 | <screen><userinput>LIBS=-lphtread ./configure --prefix=/usr --disable-static &&
|
---|
114 | make</userinput></screen>
|
---|
115 |
|
---|
116 | <para>
|
---|
117 | To test the results, issue: <command>make check</command>.
|
---|
118 | </para>
|
---|
119 |
|
---|
120 | <para>
|
---|
121 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
122 | </para>
|
---|
123 |
|
---|
124 | <screen role="root"><userinput>make install &&
|
---|
125 | mkdir -v /usr/share/doc/libpng-&libpng-version; &&
|
---|
126 | cp -v README libpng-manual.txt /usr/share/doc/libpng-&libpng-version;</userinput></screen>
|
---|
127 |
|
---|
128 | </sect2>
|
---|
129 |
|
---|
130 | <sect2 role="commands">
|
---|
131 | <title>Command Explanations</title>
|
---|
132 |
|
---|
133 | <para>
|
---|
134 | <envar>LIBS=-lphtread</envar>: Ensure the libpthread library is
|
---|
135 | used to allow parallelism on systems with multiple cores.
|
---|
136 | </para>
|
---|
137 |
|
---|
138 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
139 | href="../../xincludes/static-libraries.xml"/>
|
---|
140 |
|
---|
141 | </sect2>
|
---|
142 |
|
---|
143 | <sect2 role="content">
|
---|
144 | <title>Contents</title>
|
---|
145 |
|
---|
146 | <segmentedlist>
|
---|
147 | <segtitle>Installed Programs</segtitle>
|
---|
148 | <segtitle>Installed Libraries</segtitle>
|
---|
149 | <segtitle>Installed Directories</segtitle>
|
---|
150 |
|
---|
151 | <seglistitem>
|
---|
152 | <seg>
|
---|
153 | libpng-config (symlink), libpng16-config, pngfix and png-fix-itxt
|
---|
154 | </seg>
|
---|
155 | <seg>
|
---|
156 | libpng.so
|
---|
157 | </seg>
|
---|
158 | <seg>
|
---|
159 | /usr/include/libpng16 and
|
---|
160 | /usr/share/doc/libpng-&libpng-version;
|
---|
161 | </seg>
|
---|
162 | </seglistitem>
|
---|
163 | </segmentedlist>
|
---|
164 |
|
---|
165 | <variablelist>
|
---|
166 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
167 | <?dbfo list-presentation="list"?>
|
---|
168 | <?dbhtml list-presentation="table"?>
|
---|
169 |
|
---|
170 | <varlistentry id="pngfix">
|
---|
171 | <term><command>pngfix</command></term>
|
---|
172 | <listitem>
|
---|
173 | <para>
|
---|
174 | tests, optimizes and optionally fixes the zlib header in PNG files.
|
---|
175 | Optionally, when fixing, strips ancillary chunks from the file.
|
---|
176 | </para>
|
---|
177 | <indexterm zone="libpng pngfix">
|
---|
178 | <primary sortas="b-pngfix">pngfix</primary>
|
---|
179 | </indexterm>
|
---|
180 | </listitem>
|
---|
181 | </varlistentry>
|
---|
182 |
|
---|
183 | <varlistentry id="png-fix-itxt">
|
---|
184 | <term><command>png-fix-itxt</command></term>
|
---|
185 | <listitem>
|
---|
186 | <para>
|
---|
187 | fixes PNG files that have an incorrect length field in the
|
---|
188 | iTXt chunks.
|
---|
189 | </para>
|
---|
190 | <indexterm zone="libpng png-fix-itxt">
|
---|
191 | <primary sortas="b-png-fix-itxt">png-fix-itxt</primary>
|
---|
192 | </indexterm>
|
---|
193 | </listitem>
|
---|
194 | </varlistentry>
|
---|
195 |
|
---|
196 | <varlistentry id="libpng-config">
|
---|
197 | <term><command>libpng-config</command></term>
|
---|
198 | <listitem>
|
---|
199 | <para>
|
---|
200 | is a shell script that provides configuration information
|
---|
201 | for applications wanting to use
|
---|
202 | <application>libpng</application>.
|
---|
203 | </para>
|
---|
204 | <indexterm zone="libpng libpng-config">
|
---|
205 | <primary sortas="b-libpng-config">libpng-config</primary>
|
---|
206 | </indexterm>
|
---|
207 | </listitem>
|
---|
208 | </varlistentry>
|
---|
209 |
|
---|
210 | <varlistentry id="libpng-lin">
|
---|
211 | <term><filename class="libraryfile">libpng.so</filename></term>
|
---|
212 | <listitem>
|
---|
213 | <para>
|
---|
214 | contain routines used to create and manipulate PNG
|
---|
215 | format graphics files.
|
---|
216 | </para>
|
---|
217 | <indexterm zone="libpng libpng-lin">
|
---|
218 | <primary sortas="c-libpng">libpng.so</primary>
|
---|
219 | </indexterm>
|
---|
220 | </listitem>
|
---|
221 | </varlistentry>
|
---|
222 |
|
---|
223 | </variablelist>
|
---|
224 |
|
---|
225 | </sect2>
|
---|
226 |
|
---|
227 | </sect1>
|
---|