Brotli 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.
本パッケージは LFS-10.0 において正しくビルドでき動作することが確認されています。
Download (HTTP): https://github.com/google/brotli/archive/v1.0.9/brotli-1.0.9.tar.gz
Download MD5 sum: c2274f0c7af8470ad514637c35bcee7d
Download size: 476 KB
Estimated disk space required: 24 MB (python3 ãã¤ãã£ã³ã°è¾¼ã¿)
Estimated build time: 0.4 SBU (python3 ãã¤ãã£ã³ã°è¾¼ã¿)
Python-2.7.18 (to create python2 bindings)
At first, fix an issue in pkg-config files:
sed -i 's@-R..libdir.@@' scripts/*.pc.in
Install brotli by running the following commands:
mkdir out && cd out && cmake -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ .. && make
To test the results, issue: make test
If desired, either or both sets of python bindings can be built and installed without any conflicts. If you need the Python2 bindings, add or substitute python2 for python3 in the following instructions:
pushd .. && python3 setup.py build && popd
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: python3 setup.py test.
Now, as the root
user:
make install && cd ..
If you have built either or both sets of python bindings, install them as the
root
user (as before, use the
appropriate version(s) of python:
python3 setup.py install --optimize=1
最終更新日: 2020-12-29 14:49:12 +0900