Browse Source

Added srt

master
use 1 year ago
parent
commit
6e53c4eb96
2 changed files with 40 additions and 1 deletions
  1. +1
    -1
      build.sh
  2. +39
    -0
      deps/22_srt/build.sh

+ 1
- 1
build.sh View File

@ -46,12 +46,12 @@ make distclean
--enable-pic \ --enable-pic \
--enable-libass \ --enable-libass \
--enable-libfreetype \ --enable-libfreetype \
--enable-libsrt \
--enable-nonfree --enable-nonfree
# --disable-debug \ # --disable-debug \
# --enable-debug \ # --enable-debug \
# --enable-libmfx \ # --enable-libmfx \
# --enable-libsrt \
make -j8 make -j8
if make if make

+ 39
- 0
deps/22_srt/build.sh View File

@ -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"

Loading…
Cancel
Save