mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-24 23:32:12 +08:00
240 lines
7.0 KiB
XML
240 lines
7.0 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
%general-entities;
|
|
|
|
<!ENTITY brotli-download-http "https://github.com/google/brotli/archive/v&brotli-version;/brotli-&brotli-version;.tar.gz">
|
|
<!ENTITY brotli-download-ftp " ">
|
|
<!ENTITY brotli-md5sum "c2274f0c7af8470ad514637c35bcee7d">
|
|
<!ENTITY brotli-size "476 KB">
|
|
<!ENTITY brotli-buildsize "24 MB (with python3 bindings)">
|
|
<!-- The python tests for this package are broken. The tarball is missing a lot of test files -->
|
|
<!ENTITY brotli-time "0.4 SBU (with python3 bindings)">
|
|
]>
|
|
|
|
<sect1 id="brotli" xreflabel="Brotli-&brotli-version;">
|
|
<?dbhtml filename="brotli.html"?>
|
|
|
|
<sect1info>
|
|
<date>$Date$</date>
|
|
</sect1info>
|
|
|
|
<title>brotli-&brotli-version;</title>
|
|
|
|
<indexterm zone="brotli">
|
|
<primary sortas="a-brotli">Brotli</primary>
|
|
</indexterm>
|
|
|
|
<sect2 role="package">
|
|
<title>Introduction to Brotli</title>
|
|
|
|
<para>
|
|
<application>Brotli</application> provides a general-purpose lossless
|
|
compression algorithm that compresses data using a combination of a
|
|
modern variant of the LZ77 algorithm, Huffman coding and 2nd order
|
|
context modeling. Its libraries are particularly used for WOFF2 fonts
|
|
on webpages.
|
|
</para>
|
|
|
|
&lfs111_checked;
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
<itemizedlist spacing="compact">
|
|
<listitem>
|
|
<para>
|
|
Download (HTTP): <ulink url="&brotli-download-http;"/>
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download (FTP): <ulink url="&brotli-download-ftp;"/>
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download MD5 sum: &brotli-md5sum;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download size: &brotli-size;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Estimated disk space required: &brotli-buildsize;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Estimated build time: &brotli-time;
|
|
</para>
|
|
</listitem>
|
|
</itemizedlist>
|
|
|
|
<bridgehead renderas="sect3">Brotli Dependencies</bridgehead>
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
|
<para role="required">
|
|
<xref linkend="cmake"/>
|
|
</para>
|
|
|
|
<!-- Brotli doesn't have any lua bindings, at least not with 1.0.7.
|
|
Do not advertise python2 as python3 should be used instead
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
|
<para role="optional">
|
|
<xref linkend="lua"/> (to create Lua bindings) and
|
|
<xref linkend="python2"/> (to create python2 bindings)
|
|
</para>
|
|
-->
|
|
<para condition="html" role="usernotes">
|
|
User Notes: <ulink url="&blfs-wiki;/brotli"/>
|
|
</para>
|
|
</sect2>
|
|
|
|
|
|
<sect2 role="installation">
|
|
<title>Installation of Brotli</title>
|
|
|
|
<para>
|
|
At first, fix an issue in pkg-config files:
|
|
</para>
|
|
|
|
<screen><userinput>sed -i 's@-R..libdir.@@' scripts/*.pc.in</userinput></screen>
|
|
|
|
<para>
|
|
Install <application>brotli</application> by running the following
|
|
commands:
|
|
</para>
|
|
|
|
<screen><userinput>mkdir out &&
|
|
cd out &&
|
|
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
.. &&
|
|
make</userinput></screen>
|
|
|
|
|
|
<para>
|
|
To test the results, issue: <command>make test</command>.
|
|
</para>
|
|
|
|
<!-- These are broken
|
|
<para>
|
|
The python tests are missing most of the necessary testdata files and
|
|
therefore 240 of 311 tests fail.
|
|
If you nevertheless wish to test the bindings, go back to the top-level directory and
|
|
issue: <command>python3 setup.py test</command>.
|
|
</para>
|
|
-->
|
|
<para>
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
</para>
|
|
|
|
<screen role="root"><userinput>make install &&
|
|
cd ..</userinput></screen>
|
|
|
|
<para>
|
|
If desired, build and install the <application>Python3</application>
|
|
bindings as the &root; user:
|
|
</para>
|
|
|
|
<screen><userinput>pip3 wheel -w dist --no-build-isolation --no-deps $PWD &&
|
|
pip3 install --no-index --find-links dist --no-cache-dir Brotli</userinput></screen>
|
|
<!--
|
|
<para>
|
|
If you have built the <application>python</application> bindings,
|
|
install them as the <systemitem class="username">root</systemitem>
|
|
user:
|
|
</para>
|
|
|
|
<screen role="root"><userinput>python3 setup.py install - -optimize=1</userinput></screen>
|
|
-->
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="content">
|
|
<title>Contents</title>
|
|
|
|
<segmentedlist>
|
|
<segtitle>Installed Programs</segtitle>
|
|
<segtitle>Installed Libraries</segtitle>
|
|
<segtitle>Installed Directory</segtitle>
|
|
|
|
<seglistitem>
|
|
<seg>
|
|
brotli
|
|
</seg>
|
|
<seg>
|
|
libbrotlicommon{-static.a,.so},
|
|
libbrotlidec{,-static.a,.so}, and
|
|
libbrotlienc{,-static.a,.so}
|
|
</seg>
|
|
<seg>
|
|
/usr/include/brotli
|
|
/usr/lib/python3.10/site-packages/Brotli-&brotli-version;.dist-info
|
|
</seg>
|
|
</seglistitem>
|
|
</segmentedlist>
|
|
|
|
<variablelist>
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
<?dbfo list-presentation="list"?>
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
<varlistentry id="brotli-prog">
|
|
<term><command>brotli</command></term>
|
|
<listitem>
|
|
<para>
|
|
can compress or decompress files, or test the integrity of
|
|
compressed files
|
|
</para>
|
|
<indexterm zone="brotli brotli-prog">
|
|
<primary sortas="b-brotli">brotli</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="libbrotlicommon">
|
|
<term><filename class="libraryfile">libbrotlicommon{-static.a,.so}</filename></term>
|
|
<listitem>
|
|
<para>
|
|
is the Brotli common dictionary library
|
|
</para>
|
|
<indexterm zone="brotli libbrotlicommon">
|
|
<primary sortas="c-libbrotlicommon">libbrotlicommon{,-static.a,.so}</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="libbrotlidec">
|
|
<term><filename class="libraryfile">libbrotlidec{-static.a,.so}</filename></term>
|
|
<listitem>
|
|
<para>
|
|
is the Brotli decoder library
|
|
</para>
|
|
<indexterm zone="brotli libbrotlidec">
|
|
<primary sortas="c-libbrotlidec">libbrotlidec{,-static.a,.so}</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="libbrotlienc">
|
|
<term><filename class="libraryfile">libbrotlienc{-static.a,.so}</filename></term>
|
|
<listitem>
|
|
<para>
|
|
is the Brotli common encoder library
|
|
</para>
|
|
<indexterm zone="brotli libbrotlienc">
|
|
<primary sortas="c-libbrotlienc">libbrotlienc{,-static.a,.so}</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|