50-zimg.sh 804 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #!/bin/bash
  2. SCRIPT_REPO="https://bitbucket.org/the-sekrit-twc/zimg.git"
  3. SCRIPT_COMMIT="034b7cf5339e576080e61fd53f566387687ff4d6"
  4. ffbuild_enabled() {
  5. return 0
  6. }
  7. ffbuild_dockerdl() {
  8. default_dl .
  9. echo "git submodule update --init --recursive --depth=1"
  10. }
  11. ffbuild_dockerbuild() {
  12. ./autogen.sh
  13. local myconf=(
  14. --prefix="$FFBUILD_PREFIX"
  15. --disable-shared
  16. --enable-static
  17. --with-pic
  18. )
  19. if [[ $TARGET == win* || $TARGET == linux* ]]; then
  20. myconf+=(
  21. --host="$FFBUILD_TOOLCHAIN"
  22. )
  23. else
  24. echo "Unknown target"
  25. return -1
  26. fi
  27. ./configure "${myconf[@]}"
  28. make -j$(nproc)
  29. make install
  30. }
  31. ffbuild_configure() {
  32. echo --enable-libzimg
  33. }
  34. ffbuild_unconfigure() {
  35. echo --disable-libzimg
  36. }