[52d29f7] | 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 |
|
---|
[f45b1953] | 15 | <sect1 id="libpng" xreflabel="libpng-&libpng-version;">
|
---|
[7f72cbf] | 16 | <?dbhtml filename="libpng.html"?>
|
---|
[f45b1953] | 17 | <title>libpng-&libpng-version;</title>
|
---|
| 18 |
|
---|
[52d29f7] | 19 | <sect2>
|
---|
| 20 | <title>Introduction to <application>libpng</application></title>
|
---|
[014d11ad] | 21 |
|
---|
[52d29f7] | 22 | <para>The <application>libpng</application> package contains libraries used
|
---|
| 23 | by other programs for reading and writing <acronym>PNG</acronym> files.</para>
|
---|
[014d11ad] | 24 |
|
---|
[52d29f7] | 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>
|
---|
[014d11ad] | 37 |
|
---|
[52d29f7] | 38 | <sect3><title>Additional downloads</title>
|
---|
| 39 | <itemizedlist spacing='compact'>
|
---|
| 40 | <listitem><para>Required Patch to explicitly link libpng against system libraries: <ulink
|
---|
[014d11ad] | 41 | url="&patch-root;/libpng-&libpng-version;-link_to_proper_libs-1.patch"/></para></listitem>
|
---|
[52d29f7] | 42 | </itemizedlist></sect3>
|
---|
[014d11ad] | 43 |
|
---|
[446bd7c] | 44 | <sect3><title><application>libpng</application> dependencies</title>
|
---|
| 45 | <sect4><title>Optional</title>
|
---|
| 46 | <para><xref linkend="pkgconfig"/></para>
|
---|
| 47 | </sect4></sect3>
|
---|
| 48 |
|
---|
[52d29f7] | 49 | </sect2>
|
---|
| 50 |
|
---|
| 51 | <sect2>
|
---|
| 52 | <title>Installation of <application>libpng</application></title>
|
---|
[014d11ad] | 53 |
|
---|
| 54 | <para>Install <application>libpng</application> by running the following
|
---|
| 55 | commands:</para>
|
---|
| 56 |
|
---|
| 57 | <screen><userinput><command>patch -Np1 -i ../libpng-&libpng-version;-link_to_proper_libs-1.patch &&
|
---|
[52d29f7] | 58 | make prefix=/usr ZLIBINC=/usr/include \
|
---|
| 59 | ZLIBLIB=/usr/lib -f scripts/makefile.linux &&
|
---|
| 60 | make prefix=/usr install -f scripts/makefile.linux</command></userinput></screen>
|
---|
[014d11ad] | 61 |
|
---|
[52d29f7] | 62 | </sect2>
|
---|
| 63 |
|
---|
| 64 | <sect2>
|
---|
| 65 | <title>Command explanations</title>
|
---|
[014d11ad] | 66 |
|
---|
[52d29f7] | 67 | <para><parameter>ZLIBINC=/usr/include ZLIBLIB=/usr/lib</parameter>: This
|
---|
| 68 | forces <application>libpng</application> to look for the
|
---|
[446bd7c] | 69 | <application>zlib</application> includes and libraries where they are
|
---|
[014d11ad] | 70 | installed.</para>
|
---|
| 71 |
|
---|
[446bd7c] | 72 | <para><parameter>-f scripts/makefile.linux</parameter>: This points
|
---|
| 73 | <command>make</command> at the <application>Linux</application> version of the
|
---|
| 74 | <filename>Makefile</filename> as <application>libpng</application> doesn't use
|
---|
| 75 | an <application>autoconf</application> routine. Instead it has various
|
---|
| 76 | <filename>Makefile</filename>s for different platforms.</para>
|
---|
[52d29f7] | 77 |
|
---|
| 78 | </sect2>
|
---|
| 79 |
|
---|
| 80 | <sect2>
|
---|
| 81 | <title>Configuring <application>libpng</application></title>
|
---|
[014d11ad] | 82 |
|
---|
[52d29f7] | 83 | <sect3><title>Configuration Information</title>
|
---|
[014d11ad] | 84 |
|
---|
| 85 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../../lib-config.xml"/>
|
---|
| 86 |
|
---|
[52d29f7] | 87 | </sect3>
|
---|
[014d11ad] | 88 |
|
---|
[52d29f7] | 89 | </sect2>
|
---|
| 90 |
|
---|
| 91 | <sect2>
|
---|
| 92 | <title>Contents</title>
|
---|
[014d11ad] | 93 |
|
---|
| 94 | <para>The <application>libpng</application> package contains
|
---|
[446bd7c] | 95 | <filename class="libraryfile">libpng</filename> libraries and
|
---|
[014d11ad] | 96 | <command>libpng-config</command>.</para>
|
---|
| 97 |
|
---|
[52d29f7] | 98 | </sect2>
|
---|
[014d11ad] | 99 |
|
---|
[52d29f7] | 100 | <sect2><title>Description</title>
|
---|
[014d11ad] | 101 |
|
---|
[52d29f7] | 102 | <sect3><title>png libraries</title>
|
---|
| 103 | <para>The <acronym>PNG</acronym> library is a collection of routines used to
|
---|
| 104 | create and manipulate <acronym>PNG</acronym> format graphics files. The
|
---|
| 105 | <acronym>PNG</acronym> format was designed as a
|
---|
| 106 | replacement for <acronym>GIF</acronym> and, to a lesser extent,
|
---|
| 107 | <acronym>TIFF</acronym>, with many improvements and extensions and lack of
|
---|
| 108 | patent problems.</para></sect3>
|
---|
[014d11ad] | 109 |
|
---|
[52d29f7] | 110 | <sect3><title>libpng-config</title>
|
---|
| 111 | <para><command>libpng-config</command> provides configuration info for
|
---|
| 112 | <application>libpng</application>.</para></sect3>
|
---|
[014d11ad] | 113 |
|
---|
[52d29f7] | 114 | </sect2>
|
---|
[f45b1953] | 115 |
|
---|
| 116 | </sect1>
|
---|
| 117 |
|
---|