123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #!/bin/bash
- SCRIPT_REPO="https://github.com/breakfastquay/rubberband.git"
- SCRIPT_COMMIT="a19a891b3619ecea00f5c402006fe95b9c4d8a7f"
- ffbuild_enabled() {
- [[ $VARIANT == lgpl* ]] && return -1
- return 0
- }
- ffbuild_dockerbuild() {
- mkdir build && cd build
- local myconf=(
- --prefix="$FFBUILD_PREFIX"
- -Ddefault_library=static
- -Dfft=fftw
- -Dresampler=libsamplerate
- )
- if [[ $TARGET == win* || $TARGET == linux* ]]; then
- myconf+=(
- --cross-file=/cross.meson
- )
- else
- echo "Unknown target"
- return -1
- fi
- meson "${myconf[@]}" ..
- ninja -j$(nproc)
- ninja install
- }
- ffbuild_configure() {
- echo --enable-librubberband
- }
- ffbuild_unconfigure() {
- echo --disable-librubberband
- }
|