[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ff769b8c] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[52d29f7] | 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">
|
---|
[c5835e1] | 8 | <!ENTITY libpng-download-ftp " ">
|
---|
[757e931] | 9 | <!ENTITY libpng-md5 "00cea4539bea4bd34cbf8b82ff9589cd">
|
---|
| 10 | <!ENTITY libpng-size "376 KB">
|
---|
[ea97e13f] | 11 | <!ENTITY libpng-buildsize "5.75 MB">
|
---|
| 12 | <!ENTITY libpng-time "0.13 SBU">
|
---|
[52d29f7] | 13 | ]>
|
---|
| 14 |
|
---|
[f45b1953] | 15 | <sect1 id="libpng" xreflabel="libpng-&libpng-version;">
|
---|
[5391b98a] | 16 | <sect1info>
|
---|
[5cd0959d] | 17 | <othername>$LastChangedBy$</othername>
|
---|
| 18 | <date>$Date$</date>
|
---|
[5391b98a] | 19 | </sect1info>
|
---|
[7f72cbf] | 20 | <?dbhtml filename="libpng.html"?>
|
---|
[f45b1953] | 21 | <title>libpng-&libpng-version;</title>
|
---|
[ea97e13f] | 22 | <indexterm zone="libpng">
|
---|
| 23 | <primary sortas="a-Libpng">Libpng</primary></indexterm>
|
---|
[f45b1953] | 24 |
|
---|
[52d29f7] | 25 | <sect2>
|
---|
| 26 | <title>Introduction to <application>libpng</application></title>
|
---|
[014d11ad] | 27 |
|
---|
[52d29f7] | 28 | <para>The <application>libpng</application> package contains libraries used
|
---|
| 29 | by other programs for reading and writing <acronym>PNG</acronym> files.</para>
|
---|
[014d11ad] | 30 |
|
---|
[52d29f7] | 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>
|
---|
[239e8ca] | 37 | <listitem><para>Download MD5 Sum: &libpng-md5;</para></listitem>
|
---|
[52d29f7] | 38 | <listitem><para>Download size: &libpng-size;</para></listitem>
|
---|
[757e931] | 39 | <listitem><para>Estimated disk space required:
|
---|
[52d29f7] | 40 | &libpng-buildsize;</para></listitem>
|
---|
| 41 | <listitem><para>Estimated build time:
|
---|
| 42 | &libpng-time;</para></listitem></itemizedlist>
|
---|
| 43 | </sect3>
|
---|
[014d11ad] | 44 |
|
---|
[52d29f7] | 45 | <sect3><title>Additional downloads</title>
|
---|
| 46 | <itemizedlist spacing='compact'>
|
---|
[ea97e13f] | 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>
|
---|
[52d29f7] | 51 | </itemizedlist></sect3>
|
---|
[014d11ad] | 52 |
|
---|
[52d29f7] | 53 | </sect2>
|
---|
| 54 |
|
---|
| 55 | <sect2>
|
---|
| 56 | <title>Installation of <application>libpng</application></title>
|
---|
[014d11ad] | 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 &&
|
---|
[52d29f7] | 62 | make prefix=/usr ZLIBINC=/usr/include \
|
---|
[ea97e13f] | 63 | ZLIBLIB=/usr/lib -f scripts/makefile.linux</command></userinput></screen>
|
---|
| 64 |
|
---|
[e3a4ecc] | 65 | <para>To test the results, issue: <command>make -f scripts/makefile.linux test</command>.</para>
|
---|
| 66 |
|
---|
[ea97e13f] | 67 | <para>Now, as the root user:</para>
|
---|
| 68 |
|
---|
| 69 | <screen><userinput role='root'><command>make prefix=/usr install -f scripts/makefile.linux</command></userinput></screen>
|
---|
[014d11ad] | 70 |
|
---|
[52d29f7] | 71 | </sect2>
|
---|
| 72 |
|
---|
| 73 | <sect2>
|
---|
| 74 | <title>Command explanations</title>
|
---|
[014d11ad] | 75 |
|
---|
[52d29f7] | 76 | <para><parameter>ZLIBINC=/usr/include ZLIBLIB=/usr/lib</parameter>: This
|
---|
| 77 | forces <application>libpng</application> to look for the
|
---|
[446bd7c] | 78 | <application>zlib</application> includes and libraries where they are
|
---|
[014d11ad] | 79 | installed.</para>
|
---|
| 80 |
|
---|
[446bd7c] | 81 | <para><parameter>-f scripts/makefile.linux</parameter>: This points
|
---|
| 82 | <command>make</command> at the <application>Linux</application> version of the
|
---|
| 83 | <filename>Makefile</filename> as <application>libpng</application> doesn't use
|
---|
[ea97e13f] | 84 | an <application>autoconf</application> routine. Instead, it has various
|
---|
[446bd7c] | 85 | <filename>Makefile</filename>s for different platforms.</para>
|
---|
[52d29f7] | 86 |
|
---|
| 87 | </sect2>
|
---|
| 88 |
|
---|
| 89 | <sect2>
|
---|
| 90 | <title>Configuring <application>libpng</application></title>
|
---|
[014d11ad] | 91 |
|
---|
[52d29f7] | 92 | <sect3><title>Configuration Information</title>
|
---|
[014d11ad] | 93 |
|
---|
| 94 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../../lib-config.xml"/>
|
---|
| 95 |
|
---|
[52d29f7] | 96 | </sect3>
|
---|
[014d11ad] | 97 |
|
---|
[52d29f7] | 98 | </sect2>
|
---|
| 99 |
|
---|
| 100 | <sect2>
|
---|
| 101 | <title>Contents</title>
|
---|
[014d11ad] | 102 |
|
---|
[ea97e13f] | 103 | <segmentedlist>
|
---|
| 104 | <segtitle>Installed Programs</segtitle>
|
---|
| 105 | <segtitle>Installed Libraries</segtitle>
|
---|
| 106 | <segtitle>Installed Directory</segtitle>
|
---|
| 107 |
|
---|
| 108 | <seglistitem>
|
---|
| 109 | <seg>libpng-config and libpng12-config</seg>
|
---|
| 110 | <seg>libpng.[so,a] and libpng12.[so,a]</seg>
|
---|
| 111 | <seg>/usr/include/libpng12</seg>
|
---|
| 112 | </seglistitem>
|
---|
| 113 | </segmentedlist>
|
---|
| 114 |
|
---|
| 115 | <variablelist>
|
---|
| 116 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 117 | <?dbfo list-presentation="list"?>
|
---|
| 118 |
|
---|
| 119 | <varlistentry id="libpng-config">
|
---|
| 120 | <term><command>libpng-config</command></term>
|
---|
| 121 | <listitem><para>is a symlink to <command>libpng12-config</command>.</para>
|
---|
| 122 | <indexterm zone="libpng libpng-config">
|
---|
| 123 | <primary sortas="g-libpng-config">libpng-config</primary>
|
---|
| 124 | </indexterm></listitem>
|
---|
| 125 | </varlistentry>
|
---|
| 126 |
|
---|
| 127 | <varlistentry id="libpng12-config">
|
---|
| 128 | <term><command>libpng12-config</command></term>
|
---|
| 129 | <listitem><para>provides configuration information for
|
---|
| 130 | <application>libpng</application>.</para>
|
---|
| 131 | <indexterm zone="libpng libpng12-config">
|
---|
| 132 | <primary sortas="b-libpng12-config">libpng12-config</primary>
|
---|
| 133 | </indexterm></listitem>
|
---|
| 134 | </varlistentry>
|
---|
| 135 |
|
---|
| 136 | <varlistentry id="libpng12">
|
---|
| 137 | <term><filename class='libraryfile'>libpng.[so,a] and
|
---|
| 138 | libpng12.[so,a]</filename></term>
|
---|
| 139 | <listitem><para>libraries are a collection of routines used to create and
|
---|
| 140 | manipulate <acronym>PNG</acronym> format graphics files. The
|
---|
| 141 | <acronym>PNG</acronym> format was designed as a replacement for
|
---|
| 142 | <acronym>GIF</acronym> and, to a lesser extent, <acronym>TIFF</acronym>, with
|
---|
| 143 | many improvements and extensions and lack of patent problems.</para>
|
---|
| 144 | <indexterm zone="libpng libpng12">
|
---|
| 145 | <primary sortas="c-libpng">libpng.[so,a]</primary>
|
---|
| 146 | </indexterm></listitem>
|
---|
| 147 | </varlistentry>
|
---|
| 148 | </variablelist>
|
---|
[014d11ad] | 149 |
|
---|
[52d29f7] | 150 | </sect2>
|
---|
[f45b1953] | 151 |
|
---|
| 152 | </sect1>
|
---|