FFmpeg-Builds/scripts.d/45-libsamplerate.sh

23 lines
643 B
Bash
Raw Normal View History

#!/bin/bash
LIBSR_REPO="https://github.com/libsndfile/libsamplerate.git"
2021-09-22 13:27:59 +00:00
LIBSR_COMMIT="c96f5e3de9c4488f4e6c97f59f5245f22fda22f7"
ffbuild_enabled() {
# Dependency of GPL-Only librubberband
2021-06-20 19:59:48 +00:00
[[ $VARIANT == lgpl* ]] && 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
}