FFmpeg-Builds/scripts.d/45-libsamplerate.sh
nanake 4375ff99ad Update dependencies
Signed-off-by: nanake <nanake@users.noreply.github.com>
2021-05-18 15:39:22 +02:00

22 lines
642 B
Bash
Executable file

#!/bin/bash
LIBSR_REPO="https://github.com/libsndfile/libsamplerate.git"
LIBSR_COMMIT="70423ce8c77b8cb32c5ee18dd30e866ebafd22f3"
ffbuild_enabled() {
# Dependency of GPL-Only librubberband
[[ $VARIANT == gpl* ]] || return -1
return 0
}
ffbuild_dockerbuild() {
git-mini-clone "$LIBSR_REPO" "$LIBSR_COMMIT" libsr
cd libsr
mkdir build
cd build
cmake -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" -DBUILD_SHARED_LIBS=NO -DBUILD_TESTING=NO -DLIBSAMPLERATE_EXAMPLES=OFF -DLIBSAMPLERATE_INSTALL=YES ..
make -j$(nproc)
make install
}