1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.3/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-md5 "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 | <sect1info>
|
---|
17 | <othername>$LastChangedBy$</othername>
|
---|
18 | <date>$Date$</date>
|
---|
19 | </sect1info>
|
---|
20 | <?dbhtml filename="libpng.html"?>
|
---|
21 | <title>libpng-&libpng-version;</title>
|
---|
22 | <indexterm zone="libpng">
|
---|
23 | <primary sortas="a-Libpng">Libpng</primary></indexterm>
|
---|
24 |
|
---|
25 | <sect2>
|
---|
26 | <title>Introduction to <application>libpng</application></title>
|
---|
27 |
|
---|
28 | <para>The <application>libpng</application> package contains libraries used
|
---|
29 | by other programs for reading and writing <acronym>PNG</acronym> files.</para>
|
---|
30 |
|
---|
31 | <sect3><title>Package information</title>
|
---|
32 | <itemizedlist spacing='compact'>
|
---|
33 | <listitem><para>Download (HTTP): <ulink
|
---|
34 | url="&libpng-download-http;"/></para></listitem>
|
---|
35 | <listitem><para>Download (FTP): <ulink
|
---|
36 | url="&libpng-download-ftp;"/></para></listitem>
|
---|
37 | <listitem><para>Download MD5 Sum: &libpng-md5;</para></listitem>
|
---|
38 | <listitem><para>Download size: &libpng-size;</para></listitem>
|
---|
39 | <listitem><para>Estimated disk space required:
|
---|
40 | &libpng-buildsize;</para></listitem>
|
---|
41 | <listitem><para>Estimated build time:
|
---|
42 | &libpng-time;</para></listitem></itemizedlist>
|
---|
43 | </sect3>
|
---|
44 |
|
---|
45 | <sect3><title>Additional downloads</title>
|
---|
46 | <itemizedlist spacing='compact'>
|
---|
47 | <listitem><para>Required Patch to explicitly link
|
---|
48 | <application>libpng</application> against system libraries: <ulink
|
---|
49 | url="&patch-root;/libpng-&libpng-version;-link_to_proper_libs-1.patch"/></para>
|
---|
50 | </listitem>
|
---|
51 | </itemizedlist></sect3>
|
---|
52 |
|
---|
53 | </sect2>
|
---|
54 |
|
---|
55 | <sect2>
|
---|
56 | <title>Installation of <application>libpng</application></title>
|
---|
57 |
|
---|
58 | <para>Install <application>libpng</application> by running the following
|
---|
59 | commands:</para>
|
---|
60 |
|
---|
61 | <screen><userinput><command>patch -Np1 -i ../libpng-&libpng-version;-link_to_proper_libs-1.patch &&
|
---|
62 | make prefix=/usr ZLIBINC=/usr/include \
|
---|
63 | ZLIBLIB=/usr/lib -f scripts/makefile.linux</command></userinput></screen>
|
---|
64 |
|
---|
65 | <para>Now, as the root user:</para>
|
---|
66 |
|
---|
67 | <screen><userinput role='root'><command>make prefix=/usr install -f scripts/makefile.linux</command></userinput></screen>
|
---|
68 |
|
---|
69 | </sect2>
|
---|
70 |
|
---|
71 | <sect2>
|
---|
72 | <title>Command explanations</title>
|
---|
73 |
|
---|
74 | <para><parameter>ZLIBINC=/usr/include ZLIBLIB=/usr/lib</parameter>: This
|
---|
75 | forces <application>libpng</application> to look for the
|
---|
76 | <application>zlib</application> includes and libraries where they are
|
---|
77 | installed.</para>
|
---|
78 |
|
---|
79 | <para><parameter>-f scripts/makefile.linux</parameter>: This points
|
---|
80 | <command>make</command> at the <application>Linux</application> version of the
|
---|
81 | <filename>Makefile</filename> as <application>libpng</application> doesn't use
|
---|
82 | an <application>autoconf</application> routine. Instead, it has various
|
---|
83 | <filename>Makefile</filename>s for different platforms.</para>
|
---|
84 |
|
---|
85 | </sect2>
|
---|
86 |
|
---|
87 | <sect2>
|
---|
88 | <title>Configuring <application>libpng</application></title>
|
---|
89 |
|
---|
90 | <sect3><title>Configuration Information</title>
|
---|
91 |
|
---|
92 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../../lib-config.xml"/>
|
---|
93 |
|
---|
94 | </sect3>
|
---|
95 |
|
---|
96 | </sect2>
|
---|
97 |
|
---|
98 | <sect2>
|
---|
99 | <title>Contents</title>
|
---|
100 |
|
---|
101 | <segmentedlist>
|
---|
102 | <segtitle>Installed Programs</segtitle>
|
---|
103 | <segtitle>Installed Libraries</segtitle>
|
---|
104 | <segtitle>Installed Directory</segtitle>
|
---|
105 |
|
---|
106 | <seglistitem>
|
---|
107 | <seg>libpng-config and libpng12-config</seg>
|
---|
108 | <seg>libpng.[so,a] and libpng12.[so,a]</seg>
|
---|
109 | <seg>/usr/include/libpng12</seg>
|
---|
110 | </seglistitem>
|
---|
111 | </segmentedlist>
|
---|
112 |
|
---|
113 | <variablelist>
|
---|
114 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
115 | <?dbfo list-presentation="list"?>
|
---|
116 |
|
---|
117 | <varlistentry id="libpng-config">
|
---|
118 | <term><command>libpng-config</command></term>
|
---|
119 | <listitem><para>is a symlink to <command>libpng12-config</command>.</para>
|
---|
120 | <indexterm zone="libpng libpng-config">
|
---|
121 | <primary sortas="g-libpng-config">libpng-config</primary>
|
---|
122 | </indexterm></listitem>
|
---|
123 | </varlistentry>
|
---|
124 |
|
---|
125 | <varlistentry id="libpng12-config">
|
---|
126 | <term><command>libpng12-config</command></term>
|
---|
127 | <listitem><para>provides configuration information for
|
---|
128 | <application>libpng</application>.</para>
|
---|
129 | <indexterm zone="libpng libpng12-config">
|
---|
130 | <primary sortas="b-libpng12-config">libpng12-config</primary>
|
---|
131 | </indexterm></listitem>
|
---|
132 | </varlistentry>
|
---|
133 |
|
---|
134 | <varlistentry id="libpng12">
|
---|
135 | <term><filename class='libraryfile'>libpng.[so,a] and
|
---|
136 | libpng12.[so,a]</filename></term>
|
---|
137 | <listitem><para>libraries are a collection of routines used to create and
|
---|
138 | manipulate <acronym>PNG</acronym> format graphics files. The
|
---|
139 | <acronym>PNG</acronym> format was designed as a replacement for
|
---|
140 | <acronym>GIF</acronym> and, to a lesser extent, <acronym>TIFF</acronym>, with
|
---|
141 | many improvements and extensions and lack of patent problems.</para>
|
---|
142 | <indexterm zone="libpng libpng12">
|
---|
143 | <primary sortas="c-libpng">libpng.[so,a]</primary>
|
---|
144 | </indexterm></listitem>
|
---|
145 | </varlistentry>
|
---|
146 | </variablelist>
|
---|
147 |
|
---|
148 | </sect2>
|
---|
149 |
|
---|
150 | </sect1>
|
---|