28 lines
691 B
Bash
Executable file
28 lines
691 B
Bash
Executable file
#!/bin/bash
|
|
|
|
OPENJPEG_REPO="https://github.com/uclouvain/openjpeg.git"
|
|
OPENJPEG_COMMIT="90481203a28d4d18052a07711d6d890ed1ab8c8a"
|
|
|
|
ffbuild_enabled() {
|
|
return 0
|
|
}
|
|
|
|
ffbuild_dockerbuild() {
|
|
git-mini-clone "$OPENJPEG_REPO" "$OPENJPEG_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
|
|
}
|