45-libsamplerate.sh 492 B

123456789101112131415161718
  1. #!/bin/bash
  2. SCRIPT_REPO="https://github.com/libsndfile/libsamplerate.git"
  3. SCRIPT_COMMIT="4858fb016550d677de2356486bcceda5aed85a72"
  4. ffbuild_enabled() {
  5. return 0
  6. }
  7. ffbuild_dockerbuild() {
  8. mkdir build
  9. cd build
  10. 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 ..
  11. make -j$(nproc)
  12. make install
  13. }