mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-31 20:42:34 +08:00
52d29f7a42
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@2304 af4574ff-66df-0310-9fd7-8a98e5e911e0
109 lines
5.1 KiB
XML
109 lines
5.1 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
|
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
%general-entities;
|
|
|
|
<!ENTITY libpng-download-http "http://prdownloads.sourceforge.net/libpng/libpng-&libpng-version;.tar.bz2">
|
|
<!ENTITY libpng-download-ftp "ftp://ftp.iasi.roedu.net/pub/mirrors/ftp.gimp.org/gimp/libs/libpng-&libpng-version;.tar.bz2">
|
|
<!ENTITY libpng-size "376 KB">
|
|
<!ENTITY libpng-buildsize "4.1 MB">
|
|
<!ENTITY libpng-time "0.16 SBU">
|
|
|
|
]>
|
|
|
|
<sect1 id="libpng" xreflabel="libpng-&libpng-version;">
|
|
<?dbhtml filename="libpng.html"?>
|
|
<title>libpng-&libpng-version;</title>
|
|
|
|
<sect2>
|
|
<title>Introduction to <application>libpng</application></title>
|
|
|
|
<para>The <application>libpng</application> package contains libraries used
|
|
by other programs for reading and writing <acronym>PNG</acronym> files.</para>
|
|
|
|
<sect3><title>Package information</title>
|
|
<itemizedlist spacing='compact'>
|
|
<listitem><para>Download (HTTP): <ulink
|
|
url="&libpng-download-http;"/></para></listitem>
|
|
<listitem><para>Download (FTP): <ulink
|
|
url="&libpng-download-ftp;"/></para></listitem>
|
|
<listitem><para>Download size: &libpng-size;</para></listitem>
|
|
<listitem><para>Estimated Disk space required:
|
|
&libpng-buildsize;</para></listitem>
|
|
<listitem><para>Estimated build time:
|
|
&libpng-time;</para></listitem></itemizedlist>
|
|
</sect3>
|
|
|
|
<sect3><title>Additional downloads</title>
|
|
<itemizedlist spacing='compact'>
|
|
<listitem><para>Required Patch to explicitly link libpng against system libraries: <ulink
|
|
url="&patch-root;/libpng-&libpng-version;-link-to-proper-libs.patch"/></para></listitem>
|
|
</itemizedlist></sect3>
|
|
|
|
</sect2>
|
|
|
|
<sect2>
|
|
<title>Installation of <application>libpng</application></title>
|
|
|
|
<para>Install <application>libpng</application> by running the following commands:</para>
|
|
|
|
<screen><userinput><command>patch -Np1 -i ../libpng-&libpng-version;-link-to-proper-libs.patch &&
|
|
make prefix=/usr ZLIBINC=/usr/include \
|
|
ZLIBLIB=/usr/lib -f scripts/makefile.linux &&
|
|
make prefix=/usr install -f scripts/makefile.linux</command></userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
<sect2>
|
|
<title>Command explanations</title>
|
|
|
|
<para><parameter>ZLIBINC=/usr/include ZLIBLIB=/usr/lib</parameter>: This
|
|
forces <application>libpng</application> to look for the
|
|
<application>zlib</application> includes and libraries where we have them installed.</para>
|
|
|
|
<para><parameter>-f scripts/makefile.linux</parameter>: This points make at the
|
|
Linux version of the makefile as <application>libpng</application> doesn't use
|
|
an autoconf routine. Instead it has various makefiles for different
|
|
platforms.</para>
|
|
|
|
</sect2>
|
|
|
|
<sect2>
|
|
<title>Configuring <application>libpng</application></title>
|
|
|
|
<sect3><title>Configuration Information</title>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../../lib-config.xml"/>
|
|
|
|
</sect3>
|
|
|
|
</sect2>
|
|
|
|
<sect2>
|
|
<title>Contents</title>
|
|
|
|
<para>The <application>libpng</application> package contains <filename class="libraryfile">
|
|
libpng</filename> libraries and <command>libpng-config</command>.</para>
|
|
|
|
</sect2>
|
|
|
|
<sect2><title>Description</title>
|
|
|
|
<sect3><title>png libraries</title>
|
|
<para>The <acronym>PNG</acronym> library is a collection of routines used to
|
|
create and manipulate <acronym>PNG</acronym> format graphics files. The
|
|
<acronym>PNG</acronym> format was designed as a
|
|
replacement for <acronym>GIF</acronym> and, to a lesser extent,
|
|
<acronym>TIFF</acronym>, with many improvements and extensions and lack of
|
|
patent problems.</para></sect3>
|
|
|
|
<sect3><title>libpng-config</title>
|
|
<para><command>libpng-config</command> provides configuration info for
|
|
<application>libpng</application>.</para></sect3>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|
|
|