1PORTNAME= libssh2 2PORTVERSION= 1.11.1 3PORTEPOCH= 3 4CATEGORIES= security devel 5MASTER_SITES= https://www.libssh2.org/download/ \ 6 FREEBSD_LOCAL/sbz 7 8MAINTAINER= ports@MidnightBSD.org 9COMMENT= Library implementing the SSH2 protocol 10 11LICENSE= bsd3 12LICENSE_FILE= ${WRKSRC}/COPYING 13 14GNU_CONFIGURE= yes 15INSTALL_TARGET= install-strip 16USES= compiler:c11 libtool pathfix cpe 17CPE_VENDOR= libssh2 18USE_LDCONFIG= yes 19 20OPTIONS_DEFINE= GCRYPT TRACE ZLIB 21OPTIONS_DEFAULT= ZLIB 22 23TRACE_DESC= Enable debug packet traces 24 25TRACE_CONFIGURE_ENABLE= debug 26GCRYPT_LIB_DEPENDS= libgcrypt.so:security/libgcrypt 27GCRYPT_CONFIGURE_ON= --with-crypto=libgcrypt 28GCRYPT_CONFIGURE_OFF= --with-crypto=openssl 29GCRYPT_CPPFLAGS= -I${LOCALBASE}/include 30GCRYPT_LIBS= -L${LOCALBASE}/lib 31GCRYPT_USES_OFF= ssl 32ZLIB_CONFIGURE_WITH= libz 33 34.include <bsd.port.pre.mk> 35 36post-patch: 37 @${REINPLACE_CMD} -e '/Libs:/s/@LIBS@//' \ 38 ${WRKSRC}/libssh2.pc.in 39.if ! ${PORT_OPTIONS:MGCRYPT} 40. if ${SSL_DEFAULT} == base 41 @${REINPLACE_CMD} -e 's/LIBSREQUIRED="$$LIBSREQUIRED$${LIBSREQUIRED:+ }libssl libcrypto"/LIBS="$$LIBS -lssl -lcrypto"/' \ 42 ${WRKSRC}/configure 43. endif 44.endif 45 46.include <bsd.port.post.mk> 47