FFmpeg-Builds/scripts.d/50-openjpeg.sh
2022-08-16 12:44:22 +02:00

27 lines
683 B
Bash
Executable file

#!/bin/bash
SCRIPT_REPO="https://github.com/uclouvain/openjpeg.git"
SCRIPT_COMMIT="be95561917aa9b1d8ea4614820a534917cfa6bbe"
ffbuild_enabled() {
return 0
}
ffbuild_dockerbuild() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" openjpeg
cd openjpeg
mkdir build && cd build
cmake -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" -DBUILD_SHARED_LIBS=OFF -DBUILD_PKGCONFIG_FILES=ON -DBUILD_CODEC=OFF -DWITH_ASTYLE=OFF -DBUILD_TESTING=OFF ..
make -j$(nproc)
make install
}
ffbuild_configure() {
echo --enable-libopenjpeg
}
ffbuild_unconfigure() {
echo --disable-libopenjpeg
}