mirror of
https://github.com/BtbN/FFmpeg-Builds.git
synced 2025-04-30 06:34:32 +02:00

They seem to have either banned Github, or having connectivity issues to Github networks. Their Github mirror is not maintained, so only Gitlab is left.
37 lines
916 B
Bash
Executable File
37 lines
916 B
Bash
Executable File
#!/bin/bash
|
|
|
|
SCRIPT_REPO="https://gitlab.com/libssh/libssh-mirror.git"
|
|
SCRIPT_COMMIT="f3fe85f45ef1158c3f97a6abe804df2bcb0df352"
|
|
|
|
ffbuild_enabled() {
|
|
return 0
|
|
}
|
|
|
|
ffbuild_dockerbuild() {
|
|
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"
|
|
if [[ $TARGET == win* ]]; then
|
|
echo "Libs.private: -liphlpapi -lws2_32"
|
|
fi
|
|
echo "Libs.private: -lpthread"
|
|
} >> "$FFBUILD_PREFIX"/lib/pkgconfig/libssh.pc
|
|
}
|
|
|
|
ffbuild_configure() {
|
|
echo --enable-libssh
|
|
}
|
|
|
|
ffbuild_unconfigure() {
|
|
echo --disable-libssh
|
|
}
|