50-rubberband.sh 783 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #!/bin/bash
  2. SCRIPT_REPO="https://github.com/breakfastquay/rubberband.git"
  3. SCRIPT_COMMIT="a19a891b3619ecea00f5c402006fe95b9c4d8a7f"
  4. ffbuild_enabled() {
  5. [[ $VARIANT == lgpl* ]] && return -1
  6. return 0
  7. }
  8. ffbuild_dockerbuild() {
  9. mkdir build && cd build
  10. local myconf=(
  11. --prefix="$FFBUILD_PREFIX"
  12. -Ddefault_library=static
  13. -Dfft=fftw
  14. -Dresampler=libsamplerate
  15. )
  16. if [[ $TARGET == win* || $TARGET == linux* ]]; then
  17. myconf+=(
  18. --cross-file=/cross.meson
  19. )
  20. else
  21. echo "Unknown target"
  22. return -1
  23. fi
  24. meson "${myconf[@]}" ..
  25. ninja -j$(nproc)
  26. ninja install
  27. }
  28. ffbuild_configure() {
  29. echo --enable-librubberband
  30. }
  31. ffbuild_unconfigure() {
  32. echo --disable-librubberband
  33. }