2022-08-21 16:56:41 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
SCRIPT_REPO="https://git.libssh.org/projects/libssh.git"
|
2023-06-21 11:43:28 +00:00
|
|
|
SCRIPT_COMMIT="df0a445c87dc9678f23984141f6b396c72888972"
|
2022-08-21 16:56:41 +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"
|
2022-08-21 16:56:41 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|