50-dav1d.sh 704 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #!/bin/bash
  2. SCRIPT_REPO="https://code.videolan.org/videolan/dav1d.git"
  3. SCRIPT_COMMIT="c783088fe7bba8b0c11d78140510134ca80ed6b8"
  4. ffbuild_enabled() {
  5. return 0
  6. }
  7. ffbuild_dockerbuild() {
  8. mkdir build && cd build
  9. local myconf=(
  10. --prefix="$FFBUILD_PREFIX"
  11. --buildtype=release
  12. --default-library=static
  13. )
  14. if [[ $TARGET == win* || $TARGET == linux* ]]; then
  15. myconf+=(
  16. --cross-file=/cross.meson
  17. )
  18. else
  19. echo "Unknown target"
  20. return -1
  21. fi
  22. meson "${myconf[@]}" ..
  23. ninja -j$(nproc)
  24. ninja install
  25. }
  26. ffbuild_configure() {
  27. echo --enable-libdav1d
  28. }
  29. ffbuild_unconfigure() {
  30. echo --disable-libdav1d
  31. }