50-libwebp.sh 927 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #!/bin/bash
  2. SCRIPT_REPO="https://chromium.googlesource.com/webm/libwebp"
  3. SCRIPT_COMMIT="dfdcb7f95ca280b2555020115b8f288a5a3453c2"
  4. ffbuild_enabled() {
  5. return 0
  6. }
  7. ffbuild_dockerbuild() {
  8. ./autogen.sh
  9. local myconf=(
  10. --prefix="$FFBUILD_PREFIX"
  11. --disable-shared
  12. --enable-static
  13. --with-pic
  14. --enable-libwebpmux
  15. --disable-libwebpextras
  16. --disable-libwebpdemux
  17. --disable-sdl
  18. --disable-gl
  19. --disable-png
  20. --disable-jpeg
  21. --disable-tiff
  22. --disable-gif
  23. )
  24. if [[ $TARGET == win* || $TARGET == linux* ]]; then
  25. myconf+=(
  26. --host="$FFBUILD_TOOLCHAIN"
  27. )
  28. else
  29. echo "Unknown target"
  30. return -1
  31. fi
  32. ./configure "${myconf[@]}"
  33. make -j$(nproc)
  34. make install
  35. }
  36. ffbuild_configure() {
  37. echo --enable-libwebp
  38. }
  39. ffbuild_unconfigure() {
  40. echo --disable-libwebp
  41. }