2020-09-06 17:42:42 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
OPENJPEG_REPO="https://github.com/uclouvain/openjpeg.git"
|
2021-12-05 20:10:10 +00:00
|
|
|
OPENJPEG_COMMIT="22eb737d5d5d25947cec28cf23bcb0b4a5a682a3"
|
2020-09-06 17:42:42 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|