1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
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 giflib-download-http "https://sourceforge.net/projects/giflib/files/giflib-&giflib-version;.tar.gz">
|
---|
8 | <!ENTITY giflib-download-ftp " ">
|
---|
9 | <!ENTITY giflib-http-md5sum "913dd251492134e235ee3c9a91987a4d">
|
---|
10 | <!ENTITY giflib-http-size "440 KB">
|
---|
11 | <!ENTITY giflib-buildsize "4.0 MB (with documentation)">
|
---|
12 | <!ENTITY giflib-time "less than 0.1 SBU (with documentation)">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="giflib" xreflabel="giflib-&giflib-version;">
|
---|
16 | <?dbhtml filename="giflib.html"?>
|
---|
17 |
|
---|
18 |
|
---|
19 | <title>giflib-&giflib-version;</title>
|
---|
20 |
|
---|
21 | <indexterm zone="giflib">
|
---|
22 | <primary sortas="a-giflib">giflib</primary>
|
---|
23 | </indexterm>
|
---|
24 |
|
---|
25 | <sect2 role="package">
|
---|
26 | <title>Introduction to giflib</title>
|
---|
27 |
|
---|
28 | <para>
|
---|
29 | The <application>giflib</application> package contains libraries
|
---|
30 | for reading and writing GIFs as well as programs for converting and
|
---|
31 | working with GIF files.
|
---|
32 | </para>
|
---|
33 |
|
---|
34 | &lfs122_checked;
|
---|
35 |
|
---|
36 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
37 | <itemizedlist spacing="compact">
|
---|
38 | <listitem>
|
---|
39 | <para>
|
---|
40 | Download (HTTP): <ulink url="&giflib-download-http;"/>
|
---|
41 | </para>
|
---|
42 | </listitem>
|
---|
43 | <listitem>
|
---|
44 | <para>
|
---|
45 | Download (FTP): <ulink url="&giflib-download-ftp;"/>
|
---|
46 | </para>
|
---|
47 | </listitem>
|
---|
48 | <listitem>
|
---|
49 | <para>
|
---|
50 | Download MD5 sum: &giflib-http-md5sum;
|
---|
51 | </para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>
|
---|
55 | Download size: &giflib-http-size;
|
---|
56 | </para>
|
---|
57 | </listitem>
|
---|
58 | <listitem>
|
---|
59 | <para>
|
---|
60 | Estimated disk space required: &giflib-buildsize;
|
---|
61 | </para>
|
---|
62 | </listitem>
|
---|
63 | <listitem>
|
---|
64 | <para>
|
---|
65 | Estimated build time: &giflib-time;
|
---|
66 | </para>
|
---|
67 | </listitem>
|
---|
68 | </itemizedlist>
|
---|
69 |
|
---|
70 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
71 | <itemizedlist spacing="compact">
|
---|
72 | <listitem>
|
---|
73 | <para>
|
---|
74 | Required patch:
|
---|
75 | <ulink url="&patch-root;/giflib-&giflib-version;-upstream_fixes-1.patch"/>
|
---|
76 | </para>
|
---|
77 | </listitem>
|
---|
78 | </itemizedlist>
|
---|
79 |
|
---|
80 | <bridgehead renderas="sect3">giflib Dependencies</bridgehead>
|
---|
81 |
|
---|
82 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
83 | <para role="required">
|
---|
84 | <xref linkend="xmlto"/>
|
---|
85 | </para>
|
---|
86 |
|
---|
87 | </sect2>
|
---|
88 |
|
---|
89 | <sect2 role="installation">
|
---|
90 | <title>Installation of giflib</title>
|
---|
91 |
|
---|
92 | <para>
|
---|
93 | First, prevent the build process from installing XML files instead of man
|
---|
94 | pages:
|
---|
95 | </para>
|
---|
96 |
|
---|
97 | <screen><userinput remap="pre">patch -Np1 -i ../giflib-&giflib-version;-upstream_fixes-1.patch</userinput></screen>
|
---|
98 |
|
---|
99 | <para>
|
---|
100 | Next, remove an unnecessary dependency on <xref linkend="imagemagick"/>
|
---|
101 | by moving a file into an expected location:
|
---|
102 | </para>
|
---|
103 |
|
---|
104 | <screen><userinput remap="pre">cp pic/gifgrid.gif doc/giflib-logo.gif</userinput></screen>
|
---|
105 |
|
---|
106 | <para>
|
---|
107 | Install <application>giflib</application> by running the following
|
---|
108 | commands:
|
---|
109 | </para>
|
---|
110 |
|
---|
111 | <screen><userinput>make</userinput></screen>
|
---|
112 |
|
---|
113 | <!-- <para>
|
---|
114 | To test the results, issue: <command>make check-TESTS</command>. Test
|
---|
115 | suite results are kept in <filename>test.sh.log</filename>.
|
---|
116 | </para>
|
---|
117 | There doesn't seem to be a test suite in 5.1.6 -->
|
---|
118 |
|
---|
119 | <para>
|
---|
120 | This package does not come with a test suite.
|
---|
121 | </para>
|
---|
122 |
|
---|
123 | <para>
|
---|
124 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
125 | </para>
|
---|
126 |
|
---|
127 | <screen role="root"><userinput>make PREFIX=/usr install &&
|
---|
128 |
|
---|
129 | rm -fv /usr/lib/libgif.a &&
|
---|
130 |
|
---|
131 | find doc \( -name Makefile\* -o -name \*.1 \
|
---|
132 | -o -name \*.xml \) -exec rm -v {} \; &&
|
---|
133 |
|
---|
134 | install -v -dm755 /usr/share/doc/giflib-&giflib-version; &&
|
---|
135 | cp -v -R doc/* /usr/share/doc/giflib-&giflib-version;</userinput></screen>
|
---|
136 | <!--
|
---|
137 | <para>
|
---|
138 | If <xref linkend="xmlto"/> is installed, then the API documentation has
|
---|
139 | been built. If you wish to install the distributed and the just built
|
---|
140 | documentations, issue, as the <systemitem
|
---|
141 | class="username">root</systemitem> user:
|
---|
142 | </para>
|
---|
143 | -->
|
---|
144 | </sect2>
|
---|
145 |
|
---|
146 | <sect2 role="commands">
|
---|
147 | <title>Command Explanations</title>
|
---|
148 |
|
---|
149 | <para>
|
---|
150 | <command>rm -fv /usr/lib/libgif.a</command>: This command removes a
|
---|
151 | static library which is not used by any BLFS package.
|
---|
152 | </para>
|
---|
153 |
|
---|
154 | <para>
|
---|
155 | <command>find doc ... -exec rm -v {} \;</command>: This command removes
|
---|
156 | <filename>Makefiles</filename>, man and xml files from the documentation
|
---|
157 | directory that would otherwise be installed by the commands that follow.
|
---|
158 | </para>
|
---|
159 |
|
---|
160 | </sect2>
|
---|
161 |
|
---|
162 | <sect2 role="content">
|
---|
163 | <title>Contents</title>
|
---|
164 |
|
---|
165 | <segmentedlist>
|
---|
166 | <segtitle>Installed Programs</segtitle>
|
---|
167 | <segtitle>Installed Library</segtitle>
|
---|
168 | <segtitle>Installed Directory</segtitle>
|
---|
169 |
|
---|
170 | <seglistitem>
|
---|
171 | <seg>gif2rgb, gifbuild, gifclrmp, giffix, giftext, and giftool</seg>
|
---|
172 | <seg>libgif.so</seg>
|
---|
173 | <seg>/usr/share/doc/giflib-&giflib-version;</seg>
|
---|
174 | </seglistitem>
|
---|
175 | </segmentedlist>
|
---|
176 |
|
---|
177 | <variablelist>
|
---|
178 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
179 | <?dbfo list-presentation="list"?>
|
---|
180 | <?dbhtml list-presentation="table"?>
|
---|
181 |
|
---|
182 | <varlistentry id="gif2rgb">
|
---|
183 | <term><command>gif2rgb</command></term>
|
---|
184 | <listitem>
|
---|
185 | <para>
|
---|
186 | converts images saved as GIF to 24-bit RGB images
|
---|
187 | </para>
|
---|
188 | <indexterm zone="giflib gif2rgb">
|
---|
189 | <primary sortas="b-gif2rgb">gif2rgb</primary>
|
---|
190 | </indexterm>
|
---|
191 | </listitem>
|
---|
192 | </varlistentry>
|
---|
193 |
|
---|
194 | <varlistentry id="gifbuild">
|
---|
195 | <term><command>gifbuild</command></term>
|
---|
196 | <listitem>
|
---|
197 | <para>
|
---|
198 | dumps GIF data in a textual format, or undumps it to a GIF
|
---|
199 | </para>
|
---|
200 | <indexterm zone="giflib gifbuild">
|
---|
201 | <primary sortas="b-gifbuild">gifbuild</primary>
|
---|
202 | </indexterm>
|
---|
203 | </listitem>
|
---|
204 | </varlistentry>
|
---|
205 |
|
---|
206 | <varlistentry id="gifclrmp">
|
---|
207 | <term><command>gifclrmp</command></term>
|
---|
208 | <listitem>
|
---|
209 | <para>
|
---|
210 | modifies GIF image colormaps
|
---|
211 | </para>
|
---|
212 | <indexterm zone="giflib gifclrmp">
|
---|
213 | <primary sortas="b-gifclrmp">gifclrmp</primary>
|
---|
214 | </indexterm>
|
---|
215 | </listitem>
|
---|
216 | </varlistentry>
|
---|
217 |
|
---|
218 | <varlistentry id="giffix">
|
---|
219 | <term><command>giffix</command></term>
|
---|
220 | <listitem>
|
---|
221 | <para>
|
---|
222 | clumsily attempts to fix truncated GIF images
|
---|
223 | </para>
|
---|
224 | <indexterm zone="giflib giffix">
|
---|
225 | <primary sortas="b-giffix">giffix</primary>
|
---|
226 | </indexterm>
|
---|
227 | </listitem>
|
---|
228 | </varlistentry>
|
---|
229 |
|
---|
230 | <varlistentry id="giftext">
|
---|
231 | <term><command>giftext</command></term>
|
---|
232 | <listitem>
|
---|
233 | <para>
|
---|
234 | prints (text only) general information about a GIF file
|
---|
235 | </para>
|
---|
236 | <indexterm zone="giflib giftext">
|
---|
237 | <primary sortas="b-giftext">giftext</primary>
|
---|
238 | </indexterm>
|
---|
239 | </listitem>
|
---|
240 | </varlistentry>
|
---|
241 |
|
---|
242 | <varlistentry id="giftool">
|
---|
243 | <term><command>giftool</command></term>
|
---|
244 | <listitem>
|
---|
245 | <para>
|
---|
246 | is a GIF transformation tool
|
---|
247 | </para>
|
---|
248 | <indexterm zone="giflib giftool">
|
---|
249 | <primary sortas="b-giftool">giftool</primary>
|
---|
250 | </indexterm>
|
---|
251 | </listitem>
|
---|
252 | </varlistentry>
|
---|
253 |
|
---|
254 | <varlistentry id="libgif">
|
---|
255 | <term><filename class="libraryfile">libgif.so</filename></term>
|
---|
256 | <listitem>
|
---|
257 | <para>
|
---|
258 | contains API functions required by the
|
---|
259 | <application>giflib</application> programs and any other programs
|
---|
260 | needing library functionality to read, write and manipulate GIF
|
---|
261 | images
|
---|
262 | </para>
|
---|
263 | <indexterm zone="giflib libgif">
|
---|
264 | <primary sortas="c-libgif">libgif.so</primary>
|
---|
265 | </indexterm>
|
---|
266 | </listitem>
|
---|
267 | </varlistentry>
|
---|
268 |
|
---|
269 | </variablelist>
|
---|
270 |
|
---|
271 | </sect2>
|
---|
272 |
|
---|
273 | </sect1>
|
---|