50-openjpeg.sh 606 B

12345678910111213141516171819202122232425
  1. #!/bin/bash
  2. SCRIPT_REPO="https://github.com/uclouvain/openjpeg.git"
  3. SCRIPT_COMMIT="362ec6c92dbc0f563810fafe552e4fa0d9fde024"
  4. ffbuild_enabled() {
  5. return 0
  6. }
  7. ffbuild_dockerbuild() {
  8. mkdir build && cd build
  9. 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 ..
  10. make -j$(nproc)
  11. make install
  12. }
  13. ffbuild_configure() {
  14. echo --enable-libopenjpeg
  15. }
  16. ffbuild_unconfigure() {
  17. echo --disable-libopenjpeg
  18. }