Skip to content

Commit a8ba135

Browse files
authored
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
1 parent 2f02c14 commit a8ba135

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

build-ffmpeg

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,15 @@ if build "openssl"; then
367367
build_done "openssl"
368368
fi
369369

370+
if build "srt"; then
371+
download "https://github.com/Haivision/srt/archive/v1.4.1.tar.gz" "v1.4.1.tar.gz"
372+
cd "$PACKAGES"/srt-1.4.1 || exit
373+
execute cmake -DCMAKE_INSTALL_PREFIX:PATH="${WORKSPACE}" -DENABLE_SHARED=OFF -DENABLE_STATIC=ON -DENABLE_APPS=OFF "$PACKAGES"/srt-1.4.1
374+
execute make -j $MJOBS
375+
execute make install
376+
build_done "srt"
377+
fi
378+
370379
CFLAGS="-I$WORKSPACE/include"
371380
LDFLAGS="-L$WORKSPACE/lib"
372381
if command -v nvcc > /dev/null ; then
@@ -417,7 +426,8 @@ cd "$PACKAGES"/ffmpeg-4.3.1/ || exit
417426
--enable-libopencore_amrnb \
418427
--enable-filters \
419428
--enable-libvidstab \
420-
--enable-libaom
429+
--enable-libaom \
430+
--enable-libsrt
421431

422432
execute make -j $MJOBS
423433
execute make install

0 commit comments

Comments
 (0)