1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00
elinks/docker/djgpp/build_brotli.sh
2023-11-15 18:05:20 +01:00

17 lines
400 B
Bash

cd
wget https://github.com/google/brotli/archive/refs/tags/v1.1.0.tar.gz
rm -rf brotli-1.1.0
tar -xf v1.1.0.tar.gz
cd brotli-1.1.0
patch -p1 < ../brotli.diff || exit 1
mkdir build
cd build
CC=/usr/local/bin/cc.py cmake \
-DCMAKE_INSTALL_PREFIX=$HOME \
-DBUILD_SHARED_LIBS:BOOL=OFF \
-DBUILD_STATIC_LIBS:BOOL=ON \
-DCMAKE_AR=/usr/bin/i586-pc-msdosdjgpp-ar \
..
make -j $(nproc) VERBOSE=1
make install