2020-09-05 19:50:25 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-07-12 15:54:12 +00:00
|
|
|
SCRIPT_REPO="https://github.com/Haivision/srt.git"
|
2023-07-08 15:37:10 +00:00
|
|
|
SCRIPT_COMMIT="61c7bedf27a2edbcf6e6fdc179612980bae53c6a"
|
2020-09-05 19:50:25 +00:00
|
|
|
|
|
|
|
ffbuild_enabled() {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2023-06-18 14:44:57 +00:00
|
|
|
ffbuild_dockerbuild() {
|
2023-06-18 19:25:50 +00:00
|
|
|
cd "$FFBUILD_DLDIR/$SELF"
|
2020-09-05 19:50:25 +00:00
|
|
|
|
|
|
|
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" \
|
2022-06-13 21:28:37 +00:00
|
|
|
-DENABLE_SHARED=OFF -DENABLE_STATIC=ON -DENABLE_CXX_DEPS=ON -DUSE_STATIC_LIBSTDCXX=ON -DENABLE_ENCRYPTION=ON -DENABLE_APPS=OFF ..
|
2021-04-04 21:20:31 +00:00
|
|
|
make -j$(nproc)
|
|
|
|
make install
|
2022-06-13 21:28:37 +00:00
|
|
|
|
|
|
|
echo "Libs.private: -lstdc++" >> "$FFBUILD_PREFIX"/lib/pkgconfig/srt.pc
|
2020-09-05 19:50:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_configure() {
|
|
|
|
echo --enable-libsrt
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_unconfigure() {
|
|
|
|
echo --disable-libsrt
|
|
|
|
}
|