1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY libpng-download-http "http://prdownloads.sourceforge.net/libpng/libpng-&libpng-version;.tar.bz2">
|
---|
8 | <!ENTITY libpng-download-ftp " ">
|
---|
9 | <!ENTITY libpng-md5sum "00cea4539bea4bd34cbf8b82ff9589cd">
|
---|
10 | <!ENTITY libpng-size "376 KB">
|
---|
11 | <!ENTITY libpng-buildsize "5.75 MB">
|
---|
12 | <!ENTITY libpng-time "0.13 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 | </sect2>
|
---|
67 |
|
---|
68 | <sect2 role="installation">
|
---|
69 | <title>Installation of Libpng</title>
|
---|
70 |
|
---|
71 | <para>Install <application>libpng</application> by running the following
|
---|
72 | commands:</para>
|
---|
73 |
|
---|
74 | <screen><userinput>patch -Np1 -i ../libpng-&libpng-version;-link_to_proper_libs-1.patch &&
|
---|
75 | make prefix=/usr ZLIBINC=/usr/include \
|
---|
76 | ZLIBLIB=/usr/lib -f scripts/makefile.linux</userinput></screen>
|
---|
77 |
|
---|
78 | <para>To test the results, issue: <command>make -f scripts/makefile.linux test</command>.</para>
|
---|
79 |
|
---|
80 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
81 |
|
---|
82 | <screen role="root"><userinput>make prefix=/usr install -f scripts/makefile.linux</userinput></screen>
|
---|
83 |
|
---|
84 | </sect2>
|
---|
85 |
|
---|
86 | <sect2 role="commands">
|
---|
87 | <title>Command Explanations</title>
|
---|
88 |
|
---|
89 | <para><parameter>ZLIBINC=/usr/include ZLIBLIB=/usr/lib</parameter>: This
|
---|
90 | forces <application>libpng</application> to look for the
|
---|
91 | <application>zlib</application> includes and libraries where they are
|
---|
92 | installed.</para>
|
---|
93 |
|
---|
94 | <para><parameter>-f scripts/makefile.linux</parameter>: This points
|
---|
95 | <command>make</command> at the <application>Linux</application> version of the
|
---|
96 | <filename>Makefile</filename> as <application>libpng</application> doesn't use
|
---|
97 | an <application>autoconf</application> routine. Instead, it has various
|
---|
98 | <filename>Makefile</filename>s for different platforms.</para>
|
---|
99 |
|
---|
100 | </sect2>
|
---|
101 |
|
---|
102 | <sect2 role="configuration">
|
---|
103 | <title>Configuring Libpng</title>
|
---|
104 |
|
---|
105 | <sect3>
|
---|
106 | <title>Configuration Information</title>
|
---|
107 |
|
---|
108 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../../lib-config.xml"/>
|
---|
109 |
|
---|
110 | </sect3>
|
---|
111 |
|
---|
112 | </sect2>
|
---|
113 |
|
---|
114 | <sect2 role="content">
|
---|
115 | <title>Contents</title>
|
---|
116 |
|
---|
117 | <segmentedlist>
|
---|
118 | <segtitle>Installed Programs</segtitle>
|
---|
119 | <segtitle>Installed Libraries</segtitle>
|
---|
120 | <segtitle>Installed Directory</segtitle>
|
---|
121 |
|
---|
122 | <seglistitem>
|
---|
123 | <seg>libpng-config and libpng12-config</seg>
|
---|
124 | <seg>libpng.[so,a] and libpng12.[so,a]</seg>
|
---|
125 | <seg>/usr/include/libpng12</seg>
|
---|
126 | </seglistitem>
|
---|
127 | </segmentedlist>
|
---|
128 |
|
---|
129 | <variablelist>
|
---|
130 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
131 | <?dbfo list-presentation="list"?>
|
---|
132 | <?dbhtml list-presentation="table"?>
|
---|
133 |
|
---|
134 | <varlistentry id="libpng-config">
|
---|
135 | <term><command>libpng-config</command></term>
|
---|
136 | <listitem>
|
---|
137 | <para>is a symlink to <command>libpng12-config</command>.</para>
|
---|
138 | <indexterm zone="libpng libpng-config">
|
---|
139 | <primary sortas="g-libpng-config">libpng-config</primary>
|
---|
140 | </indexterm>
|
---|
141 | </listitem>
|
---|
142 | </varlistentry>
|
---|
143 |
|
---|
144 | <varlistentry id="libpng12-config">
|
---|
145 | <term><command>libpng12-config</command></term>
|
---|
146 | <listitem>
|
---|
147 | <para>provides configuration information for
|
---|
148 | <application>libpng</application>.</para>
|
---|
149 | <indexterm zone="libpng libpng12-config">
|
---|
150 | <primary sortas="b-libpng12-config">libpng12-config</primary>
|
---|
151 | </indexterm>
|
---|
152 | </listitem>
|
---|
153 | </varlistentry>
|
---|
154 |
|
---|
155 | <varlistentry id="libpng12">
|
---|
156 | <term><filename class='libraryfile'>libpng.[so,a] and
|
---|
157 | libpng12.[so,a]</filename></term>
|
---|
158 | <listitem>
|
---|
159 | <para>are a collection of routines used to create and manipulate PNG
|
---|
160 | format graphics files. The PNG format was designed as a replacement for
|
---|
161 | GIF and, to a lesser extent, TIFF, with many improvements and extensions
|
---|
162 | and lack of patent problems.</para>
|
---|
163 | <indexterm zone="libpng libpng12">
|
---|
164 | <primary sortas="c-libpng">libpng.[so,a]</primary>
|
---|
165 | </indexterm>
|
---|
166 | </listitem>
|
---|
167 | </varlistentry>
|
---|
168 |
|
---|
169 | </variablelist>
|
---|
170 |
|
---|
171 | </sect2>
|
---|
172 |
|
---|
173 | </sect1>
|
---|