source: general/genlib/brotli.xml@ 2d0650b

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 9.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 2d0650b was 217b167, checked in by Douglas R. Reno <renodr@…>, 4 years ago

webkitgtk: Adapt to ICU-65.1
brotli: Add optional dependency on Lua for bindings
Minor text tweaks

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

  • Property mode set to 100644
File size: 7.6 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 brotli-download-http "https://github.com/google/brotli/archive/v&brotli-version;/brotli-v&brotli-version;.tar.gz">
8 <!ENTITY brotli-download-ftp " ">
9 <!ENTITY brotli-md5sum "7b6edd4f2128f22794d0ca28c53898a5">
10 <!ENTITY brotli-size "23 MB">
11 <!ENTITY brotli-buildsize "43 MB (add 5 MB if installing both sets of python bindings, add 9 MB for the main test and 5MB for testing the bindings)">
12 <!-- time for testing without the bindings is minimal, each set takes similar time and space -->
13 <!ENTITY brotli-time "0.2 SBU (add 0.3 SBU for the python bindings, and 1.2 SBU if testing them)">
14]>
15
16<sect1 id="brotli" xreflabel="Brotli-&brotli-version;">
17 <?dbhtml filename="brotli.html"?>
18
19 <sect1info>
20 <othername>$LastChangedBy$</othername>
21 <date>$Date$</date>
22 </sect1info>
23
24 <title>brotli-&brotli-version;</title>
25
26 <indexterm zone="brotli">
27 <primary sortas="a-brotli">Brotli</primary>
28 </indexterm>
29
30 <sect2 role="package">
31 <title>Introduction to Brotli</title>
32
33 <para>
34 <application>Brotli</application> provides a general-purpose lossless
35 compression algorithm that compresses data using a combination of a
36 modern variant of the LZ77 algorithm, Huffman coding and 2nd order
37 context modeling. Its libraries are particularly used for WOFF2 fonts
38 on webpages.
39 </para>
40
41 &lfs90_checked;
42
43 <bridgehead renderas="sect3">Package Information</bridgehead>
44 <itemizedlist spacing="compact">
45 <listitem>
46 <para>
47 Download (HTTP): <ulink url="&brotli-download-http;"/>
48 </para>
49 </listitem>
50 <listitem>
51 <para>
52 Download (FTP): <ulink url="&brotli-download-ftp;"/>
53 </para>
54 </listitem>
55 <listitem>
56 <para>
57 Download MD5 sum: &brotli-md5sum;
58 </para>
59 </listitem>
60 <listitem>
61 <para>
62 Download size: &brotli-size;
63 </para>
64 </listitem>
65 <listitem>
66 <para>
67 Estimated disk space required: &brotli-buildsize;
68 </para>
69 </listitem>
70 <listitem>
71 <para>
72 Estimated build time: &brotli-time;
73 </para>
74 </listitem>
75 </itemizedlist>
76<!--
77 <note>
78 <para>
79 The <application>Brotli</application> source tarball shown above
80 downloads with the correct name, brotli-&brotli-version;.tar.gz,
81 if using a browser such as Firefox. If you prefer to use a command line
82 program such as wget, you normally would obtain
83 v&brotli-version;.tar.gz. To obtain this package with the proper
84 filename, run:
85
86<screen><userinput>wget -c https://github.com/google/brotli/archive/v&brotli-version;.tar.gz \
87 -O brotli-&brotli-version;.tar.gz</userinput></screen>.
88 </para>
89 </note>
90-->
91 <bridgehead renderas="sect3">Brotli Dependencies</bridgehead>
92
93 <bridgehead renderas="sect4">Required</bridgehead>
94 <para role="required">
95 <xref linkend="cmake"/>
96 </para>
97
98 <bridgehead renderas="sect4">Optional</bridgehead>
99 <para role="optional">
100 <xref linkend="lua"/> (to create Lua bindings) and
101 <xref linkend="python2"/> (to create python2 bindings)
102 </para>
103
104 <para condition="html" role="usernotes">
105 User Notes: <ulink url="&blfs-wiki;/brotli"/>
106 </para>
107 </sect2>
108
109
110 <sect2 role="installation">
111 <title>Installation of Brotli</title>
112
113 <para>
114 Install <application>brotli</application> by running the following
115 commands:
116 </para>
117
118<screen><userinput>mkdir out &amp;&amp;
119cd out &amp;&amp;
120
121cmake -DCMAKE_INSTALL_PREFIX=/usr \
122 -DCMAKE_BUILD_TYPE=Release \
123 .. &amp;&amp;
124make</userinput></screen>
125
126
127 <para>
128 To test the results, issue: <command>make test</command>.
129 </para>
130
131 <para>
132 If desired, either or both sets of python bindings can be built and
133 installed without any conflicts. If you need the
134 <application>Python2</application> bindings, add or substitute
135 <command>python2</command> for <command>python3</command> in the
136 following instructions:
137 </para>
138
139<screen><userinput>pushd .. &amp;&amp;
140python3 setup.py build &amp;&amp;
141popd</userinput></screen>
142
143 <para>
144 If you wish to test the bindings, go back to the top-level directory and
145 issue: <command>python3 setup.py test</command>.
146 </para>
147
148 <para>
149 Now, as the <systemitem class="username">root</systemitem> user:
150 </para>
151
152<screen role="root"><userinput>make install &amp;&amp;
153cd ..</userinput></screen>
154
155 <para>
156 If you have built either or both sets of <application>python</application>
157 bindings, install them as the <systemitem class="username">root</systemitem>
158 user (as before, use the appropriate version(s) of
159 <application>python</application>:
160 </para>
161
162<!-- EDITORS: for DESTDIR style installs use
163python3 setup.py install \-\-root /some/where -->
164<screen role="root"><userinput>python3 setup.py install --optimize=1</userinput></screen>
165
166 </sect2>
167
168 <sect2 role="content">
169 <title>Contents</title>
170
171 <segmentedlist>
172 <segtitle>Installed Programs</segtitle>
173 <segtitle>Installed Libraries</segtitle>
174 <segtitle>Installed Directory</segtitle>
175
176 <seglistitem>
177 <seg>
178 brotli
179 </seg>
180 <seg>
181 libbrotlicommon{-static.a,.so}, libbrotlidec{,-static,.so} and libbrotlienc{,-static,.so}
182 </seg>
183 <seg>
184 /usr/include/brotli
185 </seg>
186 </seglistitem>
187 </segmentedlist>
188
189 <variablelist>
190 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
191 <?dbfo list-presentation="list"?>
192 <?dbhtml list-presentation="table"?>
193
194 <varlistentry id="brotli-prog">
195 <term><command>brotli</command></term>
196 <listitem>
197 <para>
198 can compress or decompress files, or test the integrity of
199 compressed files.
200 </para>
201 <indexterm zone="brotli brotli-prog">
202 <primary sortas="b-brotli">brotli</primary>
203 </indexterm>
204 </listitem>
205 </varlistentry>
206
207 <varlistentry id="libbrotlicommon">
208 <term><filename class="libraryfile">libbrotlicommon{-static.a,.so}</filename></term>
209 <listitem>
210 <para>
211 is the Brotli common dictionary library.
212 </para>
213 <indexterm zone="brotli libbrotlicommon">
214 <primary sortas="c-libbrotlicommon">libbrotlicommon{,-static.a,.so}</primary>
215 </indexterm>
216 </listitem>
217 </varlistentry>
218
219 <varlistentry id="libbrotlidec">
220 <term><filename class="libraryfile">libbrotlidec{-static.a,.so}</filename></term>
221 <listitem>
222 <para>
223 is the Brotli decoder library.
224 </para>
225 <indexterm zone="brotli libbrotlidec">
226 <primary sortas="c-libbrotlidec">libbrotlidec{,-static.a,.so}</primary>
227 </indexterm>
228 </listitem>
229 </varlistentry>
230
231 <varlistentry id="libbrotlienc">
232 <term><filename class="libraryfile">libbrotlienc{-static.a,.so}</filename></term>
233 <listitem>
234 <para>
235 is the Brotli common encoder library.
236 </para>
237 <indexterm zone="brotli libbrotlienc">
238 <primary sortas="c-libbrotlienc">libbrotlienc{,-static.a,.so}</primary>
239 </indexterm>
240 </listitem>
241 </varlistentry>
242 </variablelist>
243
244 </sect2>
245</sect1>
Note: See TracBrowser for help on using the repository browser.