FFmpeg-Builds/scripts.d/50-rubberband.sh
nanake fd4fac0ec7 Update rubberband build options
Signed-off-by: nanake <nanake@users.noreply.github.com>
2022-11-04 21:18:55 +01:00

44 lines
864 B
Bash
Executable file

#!/bin/bash
SCRIPT_REPO="https://github.com/breakfastquay/rubberband.git"
SCRIPT_COMMIT="64d2989d28db8a171e82777f91ef4c571a58783f"
ffbuild_enabled() {
[[ $VARIANT == lgpl* ]] && return -1
return 0
}
ffbuild_dockerbuild() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" rubberband
cd rubberband
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
}