2020-09-05 19:50:25 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
SRT_REPO="https://github.com/Haivision/srt.git"
|
2021-12-05 20:10:10 +00:00
|
|
|
SRT_COMMIT="c9a8db75e865925f156e0d1c3eeea02ec43e1208"
|
2020-09-05 19:50:25 +00:00
|
|
|
|
|
|
|
ffbuild_enabled() {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_dockerbuild() {
|
2020-09-05 20:34:23 +00:00
|
|
|
git-mini-clone "$SRT_REPO" "$SRT_COMMIT" srt
|
2020-09-05 19:50:25 +00:00
|
|
|
cd srt
|
|
|
|
|
|
|
|
mkdir build && cd build
|
|
|
|
|
2021-05-13 11:42:16 +00:00
|
|
|
cmake -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" \
|
|
|
|
-DENABLE_SHARED=OFF -DENABLE_STATIC=ON -DENABLE_ENCRYPTION=ON -DENABLE_APPS=OFF ..
|
2021-04-04 21:20:31 +00:00
|
|
|
make -j$(nproc)
|
|
|
|
make install
|
2020-09-05 19:50:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_configure() {
|
|
|
|
echo --enable-libsrt
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_unconfigure() {
|
|
|
|
echo --disable-libsrt
|
|
|
|
}
|