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.bz2">
|
---|
8 | <!ENTITY libpng-download-ftp " ">
|
---|
9 | <!ENTITY libpng-md5sum "9a5cbe9798927fdf528f3186a8840ebe">
|
---|
10 | <!ENTITY libpng-size "670 KB">
|
---|
11 | <!ENTITY libpng-buildsize "11 MB">
|
---|
12 | <!ENTITY libpng-time "0.2 SBU">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="libpng" xreflabel="libpng-&libpng-version;">
|
---|
16 | <?dbhtml filename="libpng.html"?>
|
---|
17 |
|
---|
18 | <sect1info>
|
---|
19 | <othername>$LastChangedBy$</othername>
|
---|
20 | <date>$Date$</date>
|
---|
21 | </sect1info>
|
---|
22 |
|
---|
23 | <title>libpng-&libpng-version;</title>
|
---|
24 |
|
---|
25 | <indexterm zone="libpng">
|
---|
26 | <primary sortas="a-Libpng">Libpng</primary>
|
---|
27 | </indexterm>
|
---|
28 |
|
---|
29 | <sect2 role="package">
|
---|
30 | <title>Introduction to libpng</title>
|
---|
31 |
|
---|
32 | <para>The <application>libpng</application> package contains libraries used
|
---|
33 | by other programs for reading and writing PNG files.</para>
|
---|
34 |
|
---|
35 | &lfs65_checked;
|
---|
36 |
|
---|
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 |
|
---|
59 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
60 | <itemizedlist spacing='compact'>
|
---|
61 | <listitem>
|
---|
62 | <para>Patch to include apng functionality in
|
---|
63 | <application>libpng</application> : <ulink
|
---|
64 | url="&patch-root;/libpng-&libpng-version;-apng-1.patch"/></para>
|
---|
65 | <para>Although rejected by upstream, the patch is required if you want
|
---|
66 | to use the system <application>libpng</application> in
|
---|
67 | <application>Firefox</application> 3.</para>
|
---|
68 | </listitem>
|
---|
69 | </itemizedlist>
|
---|
70 |
|
---|
71 | <para condition="html" role="usernotes">User Notes:
|
---|
72 | <ulink url="&blfs-wiki;/libpng"/></para>
|
---|
73 |
|
---|
74 | </sect2>
|
---|
75 |
|
---|
76 | <sect2 role="installation">
|
---|
77 | <title>Installation of libpng</title>
|
---|
78 |
|
---|
79 | <para>Install <application>libpng</application> by running the following
|
---|
80 | commands:</para>
|
---|
81 |
|
---|
82 | <screen><userinput>patch -Np1 -i ../libpng-&libpng-version;-apng-1.patch &&
|
---|
83 | ./configure --prefix=/usr &&
|
---|
84 | make</userinput></screen>
|
---|
85 |
|
---|
86 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
87 |
|
---|
88 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
89 |
|
---|
90 | <screen role="root"><userinput>make install &&
|
---|
91 |
|
---|
92 | install -v -m755 -d /usr/share/doc/libpng-&libpng-version; &&
|
---|
93 | install -v -m644 README libpng-&libpng-version;.txt \
|
---|
94 | /usr/share/doc/libpng-&libpng-version;</userinput></screen>
|
---|
95 |
|
---|
96 | </sect2>
|
---|
97 |
|
---|
98 | <!-- <sect2 role="commands">
|
---|
99 | <title>Command Explanations</title>
|
---|
100 |
|
---|
101 | <para><parameter>ZLIBINC=; ZLIBLIB=</parameter>: This
|
---|
102 | forces <application>libpng</application> to look for the
|
---|
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>
|
---|
106 |
|
---|
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
|
---|
110 | an <application>Autoconf</application> routine. Instead, it has various
|
---|
111 | <filename>Makefile</filename>s for different platforms.</para>
|
---|
112 |
|
---|
113 | </sect2> -->
|
---|
114 |
|
---|
115 | <!-- <sect2 role="configuration">
|
---|
116 | <title>Configuring libpng</title>
|
---|
117 |
|
---|
118 | <sect3>
|
---|
119 | <title>Configuration Information</title>
|
---|
120 |
|
---|
121 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
122 | href="../../xincludes/lib-config.xml"/>
|
---|
123 |
|
---|
124 | </sect3>
|
---|
125 |
|
---|
126 | </sect2> -->
|
---|
127 |
|
---|
128 | <sect2 role="content">
|
---|
129 | <title>Contents</title>
|
---|
130 |
|
---|
131 | <segmentedlist>
|
---|
132 | <segtitle>Installed Programs</segtitle>
|
---|
133 | <segtitle>Installed Libraries</segtitle>
|
---|
134 | <segtitle>Installed Directories</segtitle>
|
---|
135 |
|
---|
136 | <seglistitem>
|
---|
137 | <seg>libpng-config and libpng12-config</seg>
|
---|
138 | <seg>libpng.{so,a} and libpng12.{so,a}</seg>
|
---|
139 | <seg>/usr/include/libpng12 and
|
---|
140 | /usr/share/doc/libpng-&libpng-version;</seg>
|
---|
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">
|
---|
171 | <term><filename class='libraryfile'>libpng.{so,a} and
|
---|
172 | libpng12.{so,a}</filename></term>
|
---|
173 | <listitem>
|
---|
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
|
---|
177 | and lack of patent problems.</para>
|
---|
178 | <indexterm zone="libpng libpng12">
|
---|
179 | <primary sortas="c-libpng12">libpng12.{so,a}</primary>
|
---|
180 | </indexterm>
|
---|
181 | </listitem>
|
---|
182 | </varlistentry>
|
---|
183 |
|
---|
184 | </variablelist>
|
---|
185 |
|
---|
186 | </sect2>
|
---|
187 |
|
---|
188 | </sect1>
|
---|