FFmpeg-Builds/scripts.d/50-libjxl/45-brotli.sh

20 lines
494 B
Bash
Raw Normal View History

2022-04-24 18:10:44 +00:00
#!/bin/bash
2022-07-12 15:54:12 +00:00
SCRIPT_REPO="https://github.com/google/brotli.git"
2023-06-21 11:43:28 +00:00
SCRIPT_COMMIT="1d8452b783dafd7e2acc0914919d38d46b861765"
2022-04-24 18:10:44 +00:00
ffbuild_enabled() {
return 0
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR/$SELF"
2022-04-24 18:10:44 +00:00
mkdir build && cd build
2022-12-24 20:37:48 +00:00
cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" \
-DCMAKE_POSITION_INDEPENDENT_CODE=ON -DBUILD_SHARED_LIBS=OFF ..
2022-04-24 18:10:44 +00:00
ninja -j$(nproc)
ninja install
}