SUMMARY="A SSH2 library" DESCRIPTION="libssh2 is a library implementing the SSH2 protocol, available \ under the revised BSD license." HOMEPAGE="https://www.libssh2.org/" COPYRIGHT="2004-2007 Sara Golemon 2005,2006 Mikhail Gusarov 2006-2007 The Written Word, Inc. 2007 Eli Fant 2009-2023 Daniel Stenberg 2008, 2009 Simon Josefsson 2000 Markus Friedl 2015 Microsoft Corp." LICENSE="BSD (3-clause)" REVISION="1" SOURCE_URI="https://www.libssh2.org/download/libssh2-$portVersion.tar.gz" CHECKSUM_SHA256="d9ec76cbe34db98eec3539fe2c899d26b0c837cb3eb466a56b0f109cabf658f7" PATCHES="libssh2-$portVersion.patchset" ARCHITECTURES="all" SECONDARY_ARCHITECTURES="x86" PROVIDES=" libssh2$secondaryArchSuffix = $portVersion compat >= 1.4 lib:libssh2$secondaryArchSuffix = 1.0.1 compat >= 1 " REQUIRES=" haiku$secondaryArchSuffix lib:libcrypto$secondaryArchSuffix lib:libssl$secondaryArchSuffix lib:libz$secondaryArchSuffix " PROVIDES_devel=" libssh2${secondaryArchSuffix}_devel = $portVersion compat >= 1.4 devel:libssh2$secondaryArchSuffix = 1.0.1 compat >= 1 " REQUIRES_devel=" libssh2$secondaryArchSuffix == $portVersion base " BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel devel:libcrypto$secondaryArchSuffix >= 3 devel:libssl$secondaryArchSuffix >= 3 devel:libz$secondaryArchSuffix " BUILD_PREREQUIRES=" cmd:aclocal cmd:autoconf cmd:automake cmd:gcc$secondaryArchSuffix cmd:ld$secondaryArchSuffix cmd:libtoolize cmd:make cmd:pkg_config$secondaryArchSuffix " BUILD() { CFLAGS="-DB_USE_POSITIVE_POSIX_ERRORS" \ LDFLAGS="-lposix_error_mapper -lnetwork" \ runConfigure ./configure \ --disable-static \ --disable-docker-tests make $jobArgs } INSTALL() { make install rm $libDir/libssh2.la prepareInstalledDevelLibs libssh2 fixPkgconfig # devel package packageEntries devel \ $developDir \ $manDir } TEST() { make check }