FFmpeg-Builds/scripts.d/50-libssh.sh

36 lines
814 B
Bash
Raw Normal View History

#!/bin/bash
SCRIPT_REPO="https://git.libssh.org/projects/libssh.git"
2023-05-29 12:10:36 +00:00
SCRIPT_COMMIT="2bf49e3e65912fd26c06fc4aa37a72eeedfec9d8"
ffbuild_enabled() {
return 0
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR/$SELF"
mkdir build && cd build
cmake -GNinja -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" \
-DBUILD_SHARED_LIBS=OFF \
-DWITH_EXAMPLES=OFF -DWITH_SERVER=OFF \
-DWITH_SFTP=ON -DWITH_ZLIB=ON ..
ninja -j$(nproc)
ninja install
{
echo "Requires.private: libssl libcrypto zlib"
echo "Cflags.private: -DLIBSSH_STATIC"
} >> "$FFBUILD_PREFIX"/lib/pkgconfig/libssh.pc
}
ffbuild_configure() {
echo --enable-libssh
}
ffbuild_unconfigure() {
echo --disable-libssh
}