50-srt.sh 698 B

12345678910111213141516171819202122232425262728
  1. #!/bin/bash
  2. SCRIPT_REPO="https://github.com/Haivision/srt.git"
  3. SCRIPT_COMMIT="5f16494f584e52b08a5dcdc55fe891d01d02f3a4"
  4. ffbuild_enabled() {
  5. return 0
  6. }
  7. ffbuild_dockerbuild() {
  8. mkdir build && cd build
  9. cmake -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" \
  10. -DENABLE_SHARED=OFF -DENABLE_STATIC=ON -DENABLE_CXX_DEPS=ON -DUSE_STATIC_LIBSTDCXX=ON -DENABLE_ENCRYPTION=ON -DENABLE_APPS=OFF ..
  11. make -j$(nproc)
  12. make install
  13. echo "Libs.private: -lstdc++" >> "$FFBUILD_PREFIX"/lib/pkgconfig/srt.pc
  14. }
  15. ffbuild_configure() {
  16. echo --enable-libsrt
  17. }
  18. ffbuild_unconfigure() {
  19. echo --disable-libsrt
  20. }