source: general/graphlib/libpng.xml@ 0d7900a

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 0d7900a was cd34755, checked in by Krejzi <krejzi@…>, 11 years ago

Updated to MySQL 5.5.29 and fixed several defect bugs in trac.

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

  • Property mode set to 100644
File size: 6.2 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 "0b607a685da977f1bfc96e1c47055183">
11 <!ENTITY libpng-size "692 KB">
12 <!ENTITY libpng-buildsize "9.5 MB">
13 <!ENTITY libpng-time "0.1 SBU">
14 <!ENTITY apng-patch
15 "&sourceforge-repo;/libpng-apng/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>
36 The <application>libpng</application> package contains libraries used by
37 other programs for reading and writing PNG files. The PNG format was
38 designed as a replacement for GIF and, to a lesser extent, TIFF, with many
39 improvements and extensions and lack of patent problems.
40 </para>
41
42 &lfs72_checked;
43
44 <bridgehead renderas="sect3">Package Information</bridgehead>
45 <itemizedlist spacing="compact">
46 <listitem>
47 <para>
48 Download (HTTP): <ulink url="&libpng-download-http;"/>
49 </para>
50 </listitem>
51 <listitem>
52 <para>
53 Download (FTP): <ulink url="&libpng-download-ftp;"/>
54 </para>
55 </listitem>
56 <listitem>
57 <para>
58 Download MD5 sum: &libpng-md5sum;
59 </para>
60 </listitem>
61 <listitem>
62 <para>
63 Download size: &libpng-size;
64 </para>
65 </listitem>
66 <listitem>
67 <para>
68 Estimated disk space required: &libpng-buildsize;
69 </para>
70 </listitem>
71 <listitem>
72 <para>
73 Estimated build time: &libpng-time;
74 </para>
75 </listitem>
76 </itemizedlist>
77
78 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
79 <itemizedlist spacing="compact">
80 <listitem>
81 <para>
82 Optional patch to include animated png functionality in
83 <application>libpng</application> (required to use the system
84 <application>libpng</application> in
85 <application>Firefox</application>): <ulink url="&apng-patch;"/>
86 </para>
87 </listitem>
88 </itemizedlist>
89
90 <para condition="html" role="usernotes">
91 User Notes: <ulink url="&blfs-wiki;/libpng"/>
92 </para>
93 </sect2>
94
95 <sect2 role="installation">
96 <title>Installation of libpng</title>
97
98 <para>
99 If you want to patch libpng to support apng files, apply the patch:
100 </para>
101
102<screen><userinput>gzip -cd ../libpng-&libpng-version;-apng.patch.gz | patch -p1 &amp;&amp;
103START=$(awk '/@/' scripts/symbols.def | sort -k2.3n | tail -1 | cut -d "@" -f2) &amp;&amp;
104awk -v v="$START" '/^PNG(_.+)?_EXPORTA?\(/ {gsub(/PNG(_.+)?_EXPORTA?\(/, ""); gsub(/,/, ""); \
105if($1 > v) print $3 " @"$1}' png.h | sort -k2.3n &gt;&gt; scripts/symbols.def</userinput></screen>
106
107 <para>
108 Install <application>libpng</application> by running the following
109 commands:
110 </para>
111
112<screen><userinput>./configure --prefix=/usr --disable-static &amp;&amp;
113make</userinput></screen>
114
115 <para>
116 To test the results, issue: <command>make check</command>.
117 </para>
118
119 <para>
120 Now, as the <systemitem class="username">root</systemitem> user:
121 </para>
122
123<screen role="root"><userinput>make install &amp;&amp;
124mkdir /usr/share/doc/libpng-&libpng-version; &amp;&amp;
125cp README libpng-manual.txt /usr/share/doc/libpng-&libpng-version;</userinput></screen>
126 </sect2>
127
128 <sect2 role="commands">
129 <title>Command Explanations</title>
130
131 <para>
132 <command>awk -v ...</command>: This command fixes the testsuite
133 when APNG patch is applied.
134 </para>
135
136 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
137 href="../../xincludes/static-libraries.xml"/>
138
139 </sect2>
140
141 <sect2 role="content">
142 <title>Contents</title>
143
144 <segmentedlist>
145 <segtitle>Installed Programs</segtitle>
146 <segtitle>Installed Libraries</segtitle>
147 <segtitle>Installed Directories</segtitle>
148
149 <seglistitem>
150 <seg>
151 libpng-config and libpng15-config
152 </seg>
153 <seg>
154 libpng.so and libpng15.so
155 </seg>
156 <seg>
157 /usr/include/libpng15 and
158 /usr/share/doc/libpng-&libpng-version;
159 </seg>
160 </seglistitem>
161 </segmentedlist>
162
163 <variablelist>
164 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
165 <?dbfo list-presentation="list"?>
166 <?dbhtml list-presentation="table"?>
167
168 <varlistentry id="libpng-config">
169 <term><command>libpng-config</command></term>
170 <listitem>
171 <para>is a symlink to <command>libpng15-config</command>.</para>
172 <indexterm zone="libpng libpng-config">
173 <primary sortas="b-libpng-config">libpng-config</primary>
174 </indexterm>
175 </listitem>
176 </varlistentry>
177
178 <varlistentry id="libpng15-config">
179 <term><command>libpng15-config</command></term>
180 <listitem>
181 <para>
182 is a shell script that provides configuration information for
183 applications wanting to use <application>libpng</application>.
184 </para>
185 <indexterm zone="libpng libpng15-config">
186 <primary sortas="b-libpng15-config">libpng15-config</primary>
187 </indexterm>
188 </listitem>
189 </varlistentry>
190
191 <varlistentry id="libpng15">
192 <term><filename class="libraryfile">libpng.so and
193 libpng15.so</filename></term>
194 <listitem>
195 <para>
196 contain routines used to create and manipulate PNG format graphics
197 files.
198 </para>
199 <indexterm zone="libpng libpng15">
200 <primary sortas="c-libpng15">libpng15.so</primary>
201 </indexterm>
202 </listitem>
203 </varlistentry>
204
205 </variablelist>
206
207 </sect2>
208
209</sect1>
Note: See TracBrowser for help on using the repository browser.