From 6e53c4eb960af295f5602deeea5eb6d7c9057177 Mon Sep 17 00:00:00 2001 From: use Date: Mon, 24 Apr 2023 16:33:54 -0700 Subject: [PATCH] Added srt --- build.sh | 2 +- deps/22_srt/build.sh | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 deps/22_srt/build.sh diff --git a/build.sh b/build.sh index fa28a02..300353b 100644 --- a/build.sh +++ b/build.sh @@ -46,12 +46,12 @@ make distclean --enable-pic \ --enable-libass \ --enable-libfreetype \ + --enable-libsrt \ --enable-nonfree # --disable-debug \ # --enable-debug \ # --enable-libmfx \ -# --enable-libsrt \ make -j8 if make diff --git a/deps/22_srt/build.sh b/deps/22_srt/build.sh new file mode 100644 index 0000000..0ffe317 --- /dev/null +++ b/deps/22_srt/build.sh @@ -0,0 +1,39 @@ +#!/bin/bash + +export PKG_CONFIG_PATH=/app/ffmpeg/install/lib/pkgconfig:/app/ffmpeg/install/lib64/pkgconfig/ +curDir="$PWD" + +pkg=srt +if ! [[ -d "$pkg" ]] +then + git clone https://github.com/Haivision/srt.git +fi +cd "$pkg" + +if ! [[ -f configure ]] && [[ -f autogen.sh ]] +then + bash autogen.sh +elif ! [[ -f configure ]] +then + echo "NO WAY TO CONFIGURE?, CMAKE?" + exit 1 +fi + +make clean +make distclean +./configure \ + --prefix="/app/ffmpeg/install/" + +make -j8 +if make +then + make install + cd "$curDir" + rm -rf "$pkg" +else + cd "$curDir" + echo "BUILD FAILED" +fi + +echo "Done" +