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 "http://downloads.sourceforge.net/libpng/libpng-&libpng-version;.tar.bz2">
|
---|
8 | <!ENTITY libpng-download-ftp " ">
|
---|
9 | <!ENTITY libpng-md5sum "1e676c5cc7dfa4ef78affe8fb8f1011d">
|
---|
10 | <!ENTITY libpng-size "602 KB">
|
---|
11 | <!ENTITY libpng-buildsize "11.5 MB">
|
---|
12 | <!ENTITY libpng-time "0.3 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 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
36 | <itemizedlist spacing="compact">
|
---|
37 | <listitem>
|
---|
38 | <para>Download (HTTP): <ulink url="&libpng-download-http;"/></para>
|
---|
39 | </listitem>
|
---|
40 | <listitem>
|
---|
41 | <para>Download (FTP): <ulink url="&libpng-download-ftp;"/></para>
|
---|
42 | </listitem>
|
---|
43 | <listitem>
|
---|
44 | <para>Download MD5 sum: &libpng-md5sum;</para>
|
---|
45 | </listitem>
|
---|
46 | <listitem>
|
---|
47 | <para>Download size: &libpng-size;</para>
|
---|
48 | </listitem>
|
---|
49 | <listitem>
|
---|
50 | <para>Estimated disk space required: &libpng-buildsize;</para>
|
---|
51 | </listitem>
|
---|
52 | <listitem>
|
---|
53 | <para>Estimated build time: &libpng-time;</para>
|
---|
54 | </listitem>
|
---|
55 | </itemizedlist>
|
---|
56 |
|
---|
57 | <!-- <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
58 | <itemizedlist spacing='compact'>
|
---|
59 | <listitem>
|
---|
60 | <para>Required Patch to explicitly link
|
---|
61 | <application>libpng</application> against system libraries: <ulink
|
---|
62 | url="&patch-root;/libpng-&libpng-version;-link_to_proper_libs-1.patch"/></para>
|
---|
63 | </listitem>
|
---|
64 | </itemizedlist> -->
|
---|
65 |
|
---|
66 | <para condition="html" role="usernotes">User Notes:
|
---|
67 | <ulink url="&blfs-wiki;/libpng"/></para>
|
---|
68 |
|
---|
69 | </sect2>
|
---|
70 |
|
---|
71 | <sect2 role="installation">
|
---|
72 | <title>Installation of libpng</title>
|
---|
73 |
|
---|
74 | <para>Install <application>libpng</application> by running the following
|
---|
75 | commands:</para>
|
---|
76 |
|
---|
77 | <screen><userinput>./configure --prefix=/usr &&
|
---|
78 | make</userinput></screen>
|
---|
79 |
|
---|
80 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
81 |
|
---|
82 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
83 |
|
---|
84 | <screen role="root"><userinput>make install &&
|
---|
85 | install -v -m755 -d /usr/share/doc/libpng-&libpng-version; &&
|
---|
86 | install -v -m644 README libpng-&libpng-version;.txt \
|
---|
87 | /usr/share/doc/libpng-&libpng-version;</userinput></screen>
|
---|
88 |
|
---|
89 | </sect2>
|
---|
90 |
|
---|
91 | <!-- <sect2 role="commands">
|
---|
92 | <title>Command Explanations</title>
|
---|
93 |
|
---|
94 | <para><parameter>ZLIBINC=; ZLIBLIB=</parameter>: This
|
---|
95 | forces <application>libpng</application> to look for the
|
---|
96 | <application>Zlib</application> includes and libraries in the default locations
|
---|
97 | (<filename class='directory'>/usr/include</filename> and
|
---|
98 | <filename class='directory'>/usr/lib</filename> respectively).</para>
|
---|
99 |
|
---|
100 | <para><parameter>-f scripts/makefile.linux</parameter>: This points
|
---|
101 | <command>make</command> at the <application>Linux</application> version of the
|
---|
102 | <filename>Makefile</filename> as <application>libpng</application> doesn't use
|
---|
103 | an <application>Autoconf</application> routine. Instead, it has various
|
---|
104 | <filename>Makefile</filename>s for different platforms.</para>
|
---|
105 |
|
---|
106 | </sect2> -->
|
---|
107 |
|
---|
108 | <sect2 role="configuration">
|
---|
109 | <title>Configuring libpng</title>
|
---|
110 |
|
---|
111 | <sect3>
|
---|
112 | <title>Configuration Information</title>
|
---|
113 |
|
---|
114 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
115 | href="../../xincludes/lib-config.xml"/>
|
---|
116 |
|
---|
117 | </sect3>
|
---|
118 |
|
---|
119 | </sect2>
|
---|
120 |
|
---|
121 | <sect2 role="content">
|
---|
122 | <title>Contents</title>
|
---|
123 |
|
---|
124 | <segmentedlist>
|
---|
125 | <segtitle>Installed Programs</segtitle>
|
---|
126 | <segtitle>Installed Libraries</segtitle>
|
---|
127 | <segtitle>Installed Directory</segtitle>
|
---|
128 |
|
---|
129 | <seglistitem>
|
---|
130 | <seg>libpng-config and libpng12-config</seg>
|
---|
131 | <seg>libpng.so and libpng12.{so,a}</seg>
|
---|
132 | <seg>/usr/include/libpng12 and
|
---|
133 | /usr/share/doc/libpng-&libpng-version;</seg>
|
---|
134 | </seglistitem>
|
---|
135 | </segmentedlist>
|
---|
136 |
|
---|
137 | <variablelist>
|
---|
138 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
139 | <?dbfo list-presentation="list"?>
|
---|
140 | <?dbhtml list-presentation="table"?>
|
---|
141 |
|
---|
142 | <varlistentry id="libpng-config">
|
---|
143 | <term><command>libpng-config</command></term>
|
---|
144 | <listitem>
|
---|
145 | <para>is a symlink to <command>libpng12-config</command>.</para>
|
---|
146 | <indexterm zone="libpng libpng-config">
|
---|
147 | <primary sortas="g-libpng-config">libpng-config</primary>
|
---|
148 | </indexterm>
|
---|
149 | </listitem>
|
---|
150 | </varlistentry>
|
---|
151 |
|
---|
152 | <varlistentry id="libpng12-config">
|
---|
153 | <term><command>libpng12-config</command></term>
|
---|
154 | <listitem>
|
---|
155 | <para>provides configuration information for
|
---|
156 | <application>libpng</application>.</para>
|
---|
157 | <indexterm zone="libpng libpng12-config">
|
---|
158 | <primary sortas="b-libpng12-config">libpng12-config</primary>
|
---|
159 | </indexterm>
|
---|
160 | </listitem>
|
---|
161 | </varlistentry>
|
---|
162 |
|
---|
163 | <varlistentry id="libpng12">
|
---|
164 | <term><filename class='libraryfile'>libpng.so and
|
---|
165 | libpng12.{so,a}</filename></term>
|
---|
166 | <listitem>
|
---|
167 | <para>are a collection of routines used to create and manipulate PNG
|
---|
168 | format graphics files. The PNG format was designed as a replacement for
|
---|
169 | GIF and, to a lesser extent, TIFF, with many improvements and extensions
|
---|
170 | and lack of patent problems.</para>
|
---|
171 | <indexterm zone="libpng libpng12">
|
---|
172 | <primary sortas="c-libpng12">libpng12.{so,a}</primary>
|
---|
173 | </indexterm>
|
---|
174 | </listitem>
|
---|
175 | </varlistentry>
|
---|
176 |
|
---|
177 | </variablelist>
|
---|
178 |
|
---|
179 | </sect2>
|
---|
180 |
|
---|
181 | </sect1>
|
---|