source: general/graphlib/libpng.xml@ b690f72

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since b690f72 was b690f72, checked in by Andrew Benton <andy@…>, 12 years ago

libpng-1.5.8

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@9333 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 6.1 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY libpng-download-http
8 "&sourceforge-repo;/libpng/libpng-&libpng-version;.tar.xz">
9 <!ENTITY libpng-download-ftp " ">
10 <!ENTITY libpng-md5sum "0f7ae352beadaff78073733905613041">
11 <!ENTITY libpng-size "685 KB">
12 <!ENTITY libpng-buildsize "8.3 MB">
13 <!ENTITY libpng-time "0.1 SBU">
14 <!ENTITY apng-patch
15 "&sourceforge-repo2;/projects/libpng-apng/files/libpng15/&libpng-version;/libpng-&libpng-version;-apng.patch.gz">
16]>
17
18<sect1 id="libpng" xreflabel="libpng-&libpng-version;">
19 <?dbhtml filename="libpng.html"?>
20
21 <sect1info>
22 <othername>$LastChangedBy$</othername>
23 <date>$Date$</date>
24 </sect1info>
25
26 <title>libpng-&libpng-version;</title>
27
28 <indexterm zone="libpng">
29 <primary sortas="a-Libpng">Libpng</primary>
30 </indexterm>
31
32 <sect2 role="package">
33 <title>Introduction to libpng</title>
34
35 <para>The <application>libpng</application> package contains libraries used
36 by other programs for reading and writing PNG files. The PNG format was
37 designed as a replacement for GIF and, to a lesser extent, TIFF, with many
38 improvements and extensions and lack of patent problems.</para>
39
40 &lfs70_checked;
41
42 <bridgehead renderas="sect3">Package Information</bridgehead>
43 <itemizedlist spacing="compact">
44 <listitem>
45 <para>Download (HTTP): <ulink url="&libpng-download-http;"/></para>
46 </listitem>
47 <listitem>
48 <para>Download (FTP): <ulink url="&libpng-download-ftp;"/></para>
49 </listitem>
50 <listitem>
51 <para>Download MD5 sum: &libpng-md5sum;</para>
52 </listitem>
53 <listitem>
54 <para>Download size: &libpng-size;</para>
55 </listitem>
56 <listitem>
57 <para>Estimated disk space required: &libpng-buildsize;</para>
58 </listitem>
59 <listitem>
60 <para>Estimated build time: &libpng-time;</para>
61 </listitem>
62 </itemizedlist>
63
64 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
65 <itemizedlist spacing="compact">
66 <listitem>
67 <para>Optional patch to include animated png functionality in
68 <application>libpng</application> : <ulink url="&apng-patch;"/></para>
69 <para>The patch is required if you want to use the system
70 <application>libpng</application> in
71 <application>Firefox</application>.</para>
72 </listitem>
73 </itemizedlist>
74
75 <para condition="html" role="usernotes">User Notes:
76 <ulink url="&blfs-wiki;/libpng"/></para>
77 </sect2>
78
79 <sect2 role="installation">
80 <title>Installation of libpng</title>
81
82 <para>If you want to patch libpng to support apng files, apply the
83 patch:</para>
84
85<screen><userinput>gzip -cd ../libpng-&libpng-version;-apng.patch.gz | patch -p1 &amp;&amp;
86awk '/10[0-2][0-9],/{ gsub(/,png/, ", png")
87 gsub(/PNG_EXPORT./, "")
88 gsub(/,/, "")
89 print " " $3 " @" $1 }' png.h >> scripts/symbols.def &amp;&amp;
90sed -i 's#ORDINAL(233)#ORDINAL(1020)#' png.h &amp;&amp;
91sed -i 's#"error"#"ignore"#' scripts/checksym.awk &amp;&amp;</userinput></screen>
92
93 <para>Install <application>libpng</application> by running the following
94 commands:</para>
95
96<screen><userinput>./configure --prefix=/usr --disable-static &amp;&amp;
97make</userinput></screen>
98
99 <para>To test the results, issue: <command>make check</command>.</para>
100
101 <para>Now, as the <systemitem class="username">root</systemitem>
102 user:</para>
103
104<screen role="root"><userinput>make install &amp;&amp;
105mkdir /usr/share/doc/libpng-&libpng-version; &amp;&amp;
106cp README libpng-manual.txt /usr/share/doc/libpng-&libpng-version;</userinput></screen>
107 </sect2>
108
109 <sect2 role="commands">
110 <title>Command Explanations</title>
111
112 <para><command>awk '/10[0-2][0-9] ...</command>, <command>sed -i 's#ORDINAL
113 ...</command> and <command>sed -i 's#"error" ...</command>: These commands
114 massage the test suite to accept the animated png functions.</para>
115
116 <para><option>--disable-static</option>: This option prevents it compiling
117 the static archive versions of the libraries.</para>
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 Directories</segtitle>
127
128 <seglistitem>
129 <seg>libpng-config and libpng15-config</seg>
130 <seg>libpng.so and libpng15.so</seg>
131 <seg>/usr/include/libpng15 and
132 /usr/share/doc/libpng-&libpng-version;</seg>
133 </seglistitem>
134 </segmentedlist>
135
136 <variablelist>
137 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
138 <?dbfo list-presentation="list"?>
139 <?dbhtml list-presentation="table"?>
140
141 <varlistentry id="libpng-config">
142 <term><command>libpng-config</command></term>
143 <listitem>
144 <para>is a symlink to <command>libpng15-config</command>.</para>
145 <indexterm zone="libpng libpng-config">
146 <primary sortas="g-libpng-config">libpng-config</primary>
147 </indexterm>
148 </listitem>
149 </varlistentry>
150
151 <varlistentry id="libpng15-config">
152 <term><command>libpng15-config</command></term>
153 <listitem>
154 <para>provides configuration information for
155 <application>libpng</application>.</para>
156 <indexterm zone="libpng libpng15-config">
157 <primary sortas="b-libpng15-config">libpng15-config</primary>
158 </indexterm>
159 </listitem>
160 </varlistentry>
161
162 <varlistentry id="libpng15">
163 <term><filename class="libraryfile">libpng.so and
164 libpng15.so</filename></term>
165 <listitem>
166 <para>contain routines used to create and manipulate PNG format
167 graphics files.</para>
168 <indexterm zone="libpng libpng15">
169 <primary sortas="c-libpng15">libpng15.so</primary>
170 </indexterm>
171 </listitem>
172 </varlistentry>
173 </variablelist>
174 </sect2>
175</sect1>
Note: See TracBrowser for help on using the repository browser.