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 "ftp://ftp.iasi.roedu.net/pub/mirrors/ftp.gimp.org/gimp/libs/libpng-&libpng-version;.tar.bz2">
|
---|
9 | <!ENTITY libpng-size "376 KB">
|
---|
10 | <!ENTITY libpng-buildsize "4.1 MB">
|
---|
11 | <!ENTITY libpng-time "0.16 SBU">
|
---|
12 |
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="libpng" xreflabel="libpng-&libpng-version;">
|
---|
16 | <?dbhtml filename="libpng.html"?>
|
---|
17 | <title>libpng-&libpng-version;</title>
|
---|
18 |
|
---|
19 | <sect2>
|
---|
20 | <title>Introduction to <application>libpng</application></title>
|
---|
21 |
|
---|
22 | <para>The <application>libpng</application> package contains libraries used
|
---|
23 | by other programs for reading and writing <acronym>PNG</acronym> files.</para>
|
---|
24 |
|
---|
25 | <sect3><title>Package information</title>
|
---|
26 | <itemizedlist spacing='compact'>
|
---|
27 | <listitem><para>Download (HTTP): <ulink
|
---|
28 | url="&libpng-download-http;"/></para></listitem>
|
---|
29 | <listitem><para>Download (FTP): <ulink
|
---|
30 | url="&libpng-download-ftp;"/></para></listitem>
|
---|
31 | <listitem><para>Download size: &libpng-size;</para></listitem>
|
---|
32 | <listitem><para>Estimated Disk space required:
|
---|
33 | &libpng-buildsize;</para></listitem>
|
---|
34 | <listitem><para>Estimated build time:
|
---|
35 | &libpng-time;</para></listitem></itemizedlist>
|
---|
36 | </sect3>
|
---|
37 |
|
---|
38 | <sect3><title>Additional downloads</title>
|
---|
39 | <itemizedlist spacing='compact'>
|
---|
40 | <listitem><para>Required Patch to explicitly link libpng against system libraries: <ulink
|
---|
41 | url="&patch-root;/libpng-&libpng-version;-link-to-proper-libs.patch"/></para></listitem>
|
---|
42 | </itemizedlist></sect3>
|
---|
43 |
|
---|
44 | </sect2>
|
---|
45 |
|
---|
46 | <sect2>
|
---|
47 | <title>Installation of <application>libpng</application></title>
|
---|
48 |
|
---|
49 | <para>Install <application>libpng</application> by running the following commands:</para>
|
---|
50 |
|
---|
51 | <screen><userinput><command>patch -Np1 -i ../libpng-&libpng-version;-link-to-proper-libs.patch &&
|
---|
52 | make prefix=/usr ZLIBINC=/usr/include \
|
---|
53 | ZLIBLIB=/usr/lib -f scripts/makefile.linux &&
|
---|
54 | make prefix=/usr install -f scripts/makefile.linux</command></userinput></screen>
|
---|
55 |
|
---|
56 | </sect2>
|
---|
57 |
|
---|
58 | <sect2>
|
---|
59 | <title>Command explanations</title>
|
---|
60 |
|
---|
61 | <para><parameter>ZLIBINC=/usr/include ZLIBLIB=/usr/lib</parameter>: This
|
---|
62 | forces <application>libpng</application> to look for the
|
---|
63 | <application>zlib</application> includes and libraries where we have them installed.</para>
|
---|
64 |
|
---|
65 | <para><parameter>-f scripts/makefile.linux</parameter>: This points make at the
|
---|
66 | Linux version of the makefile as <application>libpng</application> doesn't use
|
---|
67 | an autoconf routine. Instead it has various makefiles for different
|
---|
68 | platforms.</para>
|
---|
69 |
|
---|
70 | </sect2>
|
---|
71 |
|
---|
72 | <sect2>
|
---|
73 | <title>Configuring <application>libpng</application></title>
|
---|
74 |
|
---|
75 | <sect3><title>Configuration Information</title>
|
---|
76 |
|
---|
77 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../../lib-config.xml"/>
|
---|
78 |
|
---|
79 | </sect3>
|
---|
80 |
|
---|
81 | </sect2>
|
---|
82 |
|
---|
83 | <sect2>
|
---|
84 | <title>Contents</title>
|
---|
85 |
|
---|
86 | <para>The <application>libpng</application> package contains <filename class="libraryfile">
|
---|
87 | libpng</filename> libraries and <command>libpng-config</command>.</para>
|
---|
88 |
|
---|
89 | </sect2>
|
---|
90 |
|
---|
91 | <sect2><title>Description</title>
|
---|
92 |
|
---|
93 | <sect3><title>png libraries</title>
|
---|
94 | <para>The <acronym>PNG</acronym> library is a collection of routines used to
|
---|
95 | create and manipulate <acronym>PNG</acronym> format graphics files. The
|
---|
96 | <acronym>PNG</acronym> format was designed as a
|
---|
97 | replacement for <acronym>GIF</acronym> and, to a lesser extent,
|
---|
98 | <acronym>TIFF</acronym>, with many improvements and extensions and lack of
|
---|
99 | patent problems.</para></sect3>
|
---|
100 |
|
---|
101 | <sect3><title>libpng-config</title>
|
---|
102 | <para><command>libpng-config</command> provides configuration info for
|
---|
103 | <application>libpng</application>.</para></sect3>
|
---|
104 |
|
---|
105 | </sect2>
|
---|
106 |
|
---|
107 | </sect1>
|
---|
108 |
|
---|