[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 |
|
---|
[6b71f17] | 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">
|
---|
[52d29f7] | 13 | ]>
|
---|
| 14 |
|
---|
[f45b1953] | 15 | <sect1 id="libpng" xreflabel="libpng-&libpng-version;">
|
---|
[6b71f17] | 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 |
|
---|
[13d6079] | 29 | <sect2 role="package">
|
---|
[6b71f17] | 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>
|
---|
[e9116cc] | 60 | <para>Required Patch to explicitly link
|
---|
| 61 | <application>libpng</application> against system libraries: <ulink
|
---|
[6b71f17] | 62 | url="&patch-root;/libpng-&libpng-version;-link_to_proper_libs-1.patch"/></para>
|
---|
| 63 | </listitem>
|
---|
| 64 | </itemizedlist>
|
---|
| 65 |
|
---|
[1039de3] | 66 | <para condition="html" role="usernotes">User Notes:
|
---|
| 67 | <ulink url="&blfs-wiki;/libpng"/></para>
|
---|
| 68 |
|
---|
[6b71f17] | 69 | </sect2>
|
---|
| 70 |
|
---|
| 71 | <sect2 role="installation">
|
---|
| 72 | <title>Installation of Libpng</title>
|
---|
| 73 |
|
---|
[e9116cc] | 74 | <para>Install <application>libpng</application> by running the following
|
---|
[6b71f17] | 75 | commands:</para>
|
---|
| 76 |
|
---|
| 77 | <screen><userinput>patch -Np1 -i ../libpng-&libpng-version;-link_to_proper_libs-1.patch &&
|
---|
[a6d10670] | 78 | make prefix=/usr ZLIBINC= \
|
---|
| 79 | ZLIBLIB= -f scripts/makefile.linux</userinput></screen>
|
---|
[6b71f17] | 80 |
|
---|
[75dd80d] | 81 | <para>To test the results, issue: <command>make -f scripts/makefile.linux
|
---|
| 82 | test</command>.</para>
|
---|
[6b71f17] | 83 |
|
---|
| 84 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 85 |
|
---|
| 86 | <screen role="root"><userinput>make prefix=/usr install -f scripts/makefile.linux</userinput></screen>
|
---|
| 87 |
|
---|
| 88 | </sect2>
|
---|
| 89 |
|
---|
| 90 | <sect2 role="commands">
|
---|
| 91 | <title>Command Explanations</title>
|
---|
| 92 |
|
---|
[75dd80d] | 93 | <para><parameter>ZLIBINC=; ZLIBLIB=</parameter>: This
|
---|
[6b71f17] | 94 | forces <application>libpng</application> to look for the
|
---|
[75dd80d] | 95 | <application>Zlib</application> includes and libraries in the default locations
|
---|
| 96 | (<filename class='directory'>/usr/include</filename> and
|
---|
| 97 | <filename class='directory'>/usr/lib</filename> respectively).</para>
|
---|
[6b71f17] | 98 |
|
---|
[e9116cc] | 99 | <para><parameter>-f scripts/makefile.linux</parameter>: This points
|
---|
| 100 | <command>make</command> at the <application>Linux</application> version of the
|
---|
| 101 | <filename>Makefile</filename> as <application>libpng</application> doesn't use
|
---|
[c138ad9] | 102 | an <application>Autoconf</application> routine. Instead, it has various
|
---|
[6b71f17] | 103 | <filename>Makefile</filename>s for different platforms.</para>
|
---|
| 104 |
|
---|
| 105 | </sect2>
|
---|
| 106 |
|
---|
| 107 | <sect2 role="configuration">
|
---|
| 108 | <title>Configuring Libpng</title>
|
---|
| 109 |
|
---|
| 110 | <sect3>
|
---|
| 111 | <title>Configuration Information</title>
|
---|
| 112 |
|
---|
[ebabf24] | 113 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 114 | href="../../xincludes/lib-config.xml"/>
|
---|
[6b71f17] | 115 |
|
---|
| 116 | </sect3>
|
---|
| 117 |
|
---|
| 118 | </sect2>
|
---|
| 119 |
|
---|
| 120 | <sect2 role="content">
|
---|
| 121 | <title>Contents</title>
|
---|
| 122 |
|
---|
| 123 | <segmentedlist>
|
---|
| 124 | <segtitle>Installed Programs</segtitle>
|
---|
| 125 | <segtitle>Installed Libraries</segtitle>
|
---|
| 126 | <segtitle>Installed Directory</segtitle>
|
---|
| 127 |
|
---|
| 128 | <seglistitem>
|
---|
| 129 | <seg>libpng-config and libpng12-config</seg>
|
---|
[1039de3] | 130 | <seg>libpng.{so,a} and libpng12.{so,a}</seg>
|
---|
[6b71f17] | 131 | <seg>/usr/include/libpng12</seg>
|
---|
| 132 | </seglistitem>
|
---|
| 133 | </segmentedlist>
|
---|
| 134 |
|
---|
| 135 | <variablelist>
|
---|
| 136 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 137 | <?dbfo list-presentation="list"?>
|
---|
| 138 | <?dbhtml list-presentation="table"?>
|
---|
| 139 |
|
---|
| 140 | <varlistentry id="libpng-config">
|
---|
| 141 | <term><command>libpng-config</command></term>
|
---|
| 142 | <listitem>
|
---|
| 143 | <para>is a symlink to <command>libpng12-config</command>.</para>
|
---|
| 144 | <indexterm zone="libpng libpng-config">
|
---|
| 145 | <primary sortas="g-libpng-config">libpng-config</primary>
|
---|
| 146 | </indexterm>
|
---|
| 147 | </listitem>
|
---|
| 148 | </varlistentry>
|
---|
| 149 |
|
---|
| 150 | <varlistentry id="libpng12-config">
|
---|
| 151 | <term><command>libpng12-config</command></term>
|
---|
| 152 | <listitem>
|
---|
| 153 | <para>provides configuration information for
|
---|
| 154 | <application>libpng</application>.</para>
|
---|
| 155 | <indexterm zone="libpng libpng12-config">
|
---|
| 156 | <primary sortas="b-libpng12-config">libpng12-config</primary>
|
---|
| 157 | </indexterm>
|
---|
| 158 | </listitem>
|
---|
| 159 | </varlistentry>
|
---|
| 160 |
|
---|
| 161 | <varlistentry id="libpng12">
|
---|
[1039de3] | 162 | <term><filename class='libraryfile'>libpng.{so,a} and
|
---|
| 163 | libpng12.{so,a}</filename></term>
|
---|
[6b71f17] | 164 | <listitem>
|
---|
[e9116cc] | 165 | <para>are a collection of routines used to create and manipulate PNG
|
---|
| 166 | format graphics files. The PNG format was designed as a replacement for
|
---|
| 167 | GIF and, to a lesser extent, TIFF, with many improvements and extensions
|
---|
[6b71f17] | 168 | and lack of patent problems.</para>
|
---|
| 169 | <indexterm zone="libpng libpng12">
|
---|
[1039de3] | 170 | <primary sortas="c-libpng">libpng.{so,a}</primary>
|
---|
[6b71f17] | 171 | </indexterm>
|
---|
| 172 | </listitem>
|
---|
| 173 | </varlistentry>
|
---|
| 174 |
|
---|
| 175 | </variablelist>
|
---|
| 176 |
|
---|
| 177 | </sect2>
|
---|
[f45b1953] | 178 |
|
---|
| 179 | </sect1>
|
---|