1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 19:47:34 +00:00

Ports/libssh2: Prefer openssl over libgcrypt as the crypto backend

Previously,`openssl` would be used as the crypto backend for `libssh2`
if the `openssl` port was installed and the `libgcrypt` dependency
would be ignored.

With this change we install `openssl` as a dependency and explicitly
specify that it should be used as the crypto backend. We also add
`zlib` as an explicit dependency and specify that `zlib` compression
should be used.
This commit is contained in:
Tim Ledbetter 2023-08-23 19:48:27 +01:00 committed by Tim Schumacher
parent 0cb339bad1
commit 6678a3ad00

View file

@ -5,8 +5,16 @@ useconfigure=true
files=(
"https://www.libssh2.org/download/libssh2-${version}.tar.gz 2d64e90f3ded394b91d3a2e774ca203a4179f69aebee03003e5a6fa621e41d51"
)
depends=("libgcrypt")
configopts=("-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt" "-GNinja")
depends=(
'openssl'
'zlib'
)
configopts=(
"-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt"
'-DCRYPTO_BACKEND=OpenSSL'
'-DENABLE_ZLIB_COMPRESSION=ON'
'-GNinja'
)
configure() {
run cmake "${configopts[@]}" .