50-zvbi.sh 870 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #!/bin/bash
  2. SCRIPT_REPO="https://github.com/zapping-vbi/zvbi"
  3. SCRIPT_COMMIT="a48ab3a0d72efe9968ebafa34c425c892e4afa50"
  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. --without-doxygen
  15. --without-x
  16. --disable-dvb
  17. --disable-bktr
  18. --disable-nls
  19. --disable-proxy
  20. )
  21. if [[ $TARGET == win* || $TARGET == linux* ]]; then
  22. myconf+=(
  23. --host="$FFBUILD_TOOLCHAIN"
  24. )
  25. else
  26. echo "Unknown target"
  27. return -1
  28. fi
  29. ./configure "${myconf[@]}"
  30. make -C src -j$(nproc)
  31. make -C src install
  32. make SUBDIRS=. install
  33. }
  34. ffbuild_configure() {
  35. echo --enable-libzvbi
  36. }
  37. ffbuild_unconfigure() {
  38. echo --disable-libzvbi
  39. }