From a8ba1353447fc5fd5cd3af3e9a1c696937274398 Mon Sep 17 00:00:00 2001 From: Richard Goodwin Date: Mon, 31 Aug 2020 11:57:25 -0500 Subject: [PATCH] Add build section for SRT Build section, using cmake (to avoid tclsh dependency), disabled included apps. Added ffmpeg option. Test on Docker (macOS), macOS Catalina, Ubuntu --- build-ffmpeg | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/build-ffmpeg b/build-ffmpeg index dc63b40c..7d4f52fa 100755 --- a/build-ffmpeg +++ b/build-ffmpeg @@ -367,6 +367,15 @@ if build "openssl"; then build_done "openssl" fi +if build "srt"; then + download "https://github.com/Haivision/srt/archive/v1.4.1.tar.gz" "v1.4.1.tar.gz" + cd "$PACKAGES"/srt-1.4.1 || exit + execute cmake -DCMAKE_INSTALL_PREFIX:PATH="${WORKSPACE}" -DENABLE_SHARED=OFF -DENABLE_STATIC=ON -DENABLE_APPS=OFF "$PACKAGES"/srt-1.4.1 + execute make -j $MJOBS + execute make install + build_done "srt" +fi + CFLAGS="-I$WORKSPACE/include" LDFLAGS="-L$WORKSPACE/lib" if command -v nvcc > /dev/null ; then @@ -417,7 +426,8 @@ cd "$PACKAGES"/ffmpeg-4.3.1/ || exit --enable-libopencore_amrnb \ --enable-filters \ --enable-libvidstab \ - --enable-libaom + --enable-libaom \ + --enable-libsrt execute make -j $MJOBS execute make install