2013-09-21 00:55:24 +02:00
|
|
|
# Created by: Alexander Leidinger <netchild@FreeBSD.org>
|
2005-04-22 22:09:20 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= libssh2
|
2019-04-30 13:12:28 +02:00
|
|
|
PORTVERSION= 1.8.2
|
2017-01-03 19:43:18 +01:00
|
|
|
PORTEPOCH= 3
|
2005-04-22 22:09:20 +02:00
|
|
|
CATEGORIES= security devel
|
2019-08-03 00:42:04 +02:00
|
|
|
MASTER_SITES= https://www.libssh2.org/download/ \
|
2012-10-09 00:51:50 +02:00
|
|
|
LOCAL/sbz
|
2005-04-22 22:09:20 +02:00
|
|
|
|
2011-03-18 11:04:54 +01:00
|
|
|
MAINTAINER= sbz@FreeBSD.org
|
2013-03-29 20:33:41 +01:00
|
|
|
COMMENT= Library implementing the SSH2 protocol
|
2005-04-22 22:09:20 +02:00
|
|
|
|
2014-01-16 18:06:35 +01:00
|
|
|
LICENSE= BSD3CLAUSE
|
2016-04-14 02:41:35 +02:00
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
2011-04-13 13:45:03 +02:00
|
|
|
|
2005-06-16 04:24:17 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2014-08-28 23:21:57 +02:00
|
|
|
INSTALL_TARGET= install-strip
|
|
|
|
USES= libtool pathfix
|
2006-09-07 22:04:19 +02:00
|
|
|
USE_LDCONFIG= yes
|
2009-12-08 10:56:12 +01:00
|
|
|
|
2012-07-16 12:47:28 +02:00
|
|
|
OPTIONS_DEFINE= GCRYPT TRACE ZLIB
|
|
|
|
OPTIONS_DEFAULT= ZLIB
|
|
|
|
|
|
|
|
TRACE_DESC= Enable debug packet traces
|
2005-04-22 22:09:20 +02:00
|
|
|
|
2014-03-07 13:53:40 +01:00
|
|
|
TRACE_CONFIGURE_ENABLE= debug
|
2016-04-01 16:25:16 +02:00
|
|
|
GCRYPT_LIB_DEPENDS= libgcrypt.so:security/libgcrypt
|
2016-12-14 18:03:16 +01:00
|
|
|
GCRYPT_CONFIGURE_ON= --with-libgcrypt
|
|
|
|
GCRYPT_CONFIGURE_OFF= --with-openssl
|
2014-08-28 23:21:57 +02:00
|
|
|
GCRYPT_CPPFLAGS= -I${LOCALBASE}/include
|
|
|
|
GCRYPT_LIBS= -L${LOCALBASE}/lib
|
2017-03-15 16:43:13 +01:00
|
|
|
GCRYPT_USES_OFF= ssl
|
2014-03-07 13:53:40 +01:00
|
|
|
ZLIB_CONFIGURE_WITH= libz
|
2009-12-08 10:56:12 +01:00
|
|
|
|
2014-03-07 13:53:40 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
2011-08-19 00:38:48 +02:00
|
|
|
|
2005-04-22 22:09:20 +02:00
|
|
|
post-patch:
|
2016-12-14 18:03:16 +01:00
|
|
|
@${REINPLACE_CMD} -e '/Libs:/s/@LIBS@//' \
|
2014-08-28 23:21:57 +02:00
|
|
|
${WRKSRC}/libssh2.pc.in
|
2016-06-18 11:02:40 +02:00
|
|
|
.if ! ${PORT_OPTIONS:MGCRYPT}
|
|
|
|
. if ${SSL_DEFAULT} == base
|
2014-08-28 23:21:57 +02:00
|
|
|
@${REINPLACE_CMD} -e 's/LIBSREQUIRED=libssl,libcrypto/LIBS="$$LIBS -lssl -lcrypto"/' \
|
|
|
|
${WRKSRC}/configure
|
2016-06-18 11:02:40 +02:00
|
|
|
. endif
|
2014-03-07 13:53:40 +01:00
|
|
|
.endif
|
2005-04-22 22:09:20 +02:00
|
|
|
|
2009-10-06 23:38:18 +02:00
|
|
|
.include <bsd.port.post.mk>
|