diff --git a/ports/libssh/CONTROL b/ports/libssh/CONTROL index fbee566de36b88..d1e607e8cbdfd6 100644 --- a/ports/libssh/CONTROL +++ b/ports/libssh/CONTROL @@ -1,6 +1,8 @@ Source: libssh Version: 0.9.5 +Port-Version: 1 Homepage: https://www.libssh.org/ +Build-Depends: libssh[core,mbedtls] (android) Description: libssh is a multiplatform C library implementing the SSHv2 protocol on client and server side Default-Features: crypto Supports: !uwp @@ -10,7 +12,7 @@ Build-Depends: libssh[mbedtls] Description: Default crypto backend Feature: mbedtls -Build-Depends: mbedtls[pthreads] +Build-Depends: mbedtls[pthreads] (!android), mbedtls[core] Description: Crypto support (mbedTLS) Feature: openssl diff --git a/ports/libssh/portfile.cmake b/ports/libssh/portfile.cmake index 3874d193951640..ee7f0ac8f761a3 100644 --- a/ports/libssh/portfile.cmake +++ b/ports/libssh/portfile.cmake @@ -19,10 +19,17 @@ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS zlib WITH_ZLIB ) +if (VCPKG_TARGET_IS_ANDROID) + set(EXTRA_ARGS "-DWITH_SERVER=FALSE" + "-DWITH_PCAP=FALSE" + ) +endif () + vcpkg_configure_cmake( SOURCE_PATH ${SOURCE_PATH} PREFER_NINJA OPTIONS + ${EXTRA_ARGS} ${FEATURE_OPTIONS} -DWITH_EXAMPLES=OFF -DUNIT_TESTING=OFF diff --git a/versions/baseline.json b/versions/baseline.json index a06db4fb0de4ed..8afed10c32e2fc 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -3350,7 +3350,7 @@ }, "libssh": { "baseline": "0.9.5", - "port-version": 0 + "port-version": 1 }, "libssh2": { "baseline": "1.9.0", diff --git a/versions/l-/libssh.json b/versions/l-/libssh.json index 2aa48093dda1a2..117d34e07531ab 100644 --- a/versions/l-/libssh.json +++ b/versions/l-/libssh.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "bf1fb5ae9324823a60784a5ed0ecbca8a3325214", + "version-string": "0.9.5", + "port-version": 1 + }, { "git-tree": "a9db7620dc774257483a98c9c5309dbb7eff8263", "version-string": "0.9.5",