28 lines
629 B
Bash
Executable file
28 lines
629 B
Bash
Executable file
#!/bin/bash
|
|
|
|
SRT_REPO="https://github.com/Haivision/srt.git"
|
|
SRT_COMMIT="d9b7988347fdbd4c9e1ae7fdc3b0bb3080aa8ae1"
|
|
|
|
ffbuild_enabled() {
|
|
return 0
|
|
}
|
|
|
|
ffbuild_dockerbuild() {
|
|
git-mini-clone "$SRT_REPO" "$SRT_COMMIT" srt
|
|
cd srt
|
|
|
|
mkdir build && cd build
|
|
|
|
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 ..
|
|
make -j$(nproc)
|
|
make install
|
|
}
|
|
|
|
ffbuild_configure() {
|
|
echo --enable-libsrt
|
|
}
|
|
|
|
ffbuild_unconfigure() {
|
|
echo --disable-libsrt
|
|
}
|