Lines 1-10
Link Here
|
1 |
PORTNAME= libssh2 |
1 |
PORTNAME= libssh2 |
2 |
PORTVERSION= 1.11.0 |
2 |
DISTVERSION= 1.11.1 |
3 |
PORTREVISION= 1 |
|
|
4 |
PORTEPOCH= 3 |
3 |
PORTEPOCH= 3 |
5 |
CATEGORIES= security devel |
4 |
CATEGORIES= security devel |
6 |
MASTER_SITES= https://www.libssh2.org/download/ \ |
5 |
MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/releases/download/${PORTNAME}-${DISTVERSION}/ \ |
7 |
LOCAL/sbz |
6 |
https://www.libssh2.org/download/ |
8 |
|
7 |
|
9 |
MAINTAINER= sbz@FreeBSD.org |
8 |
MAINTAINER= sbz@FreeBSD.org |
10 |
COMMENT= Library implementing the SSH2 protocol |
9 |
COMMENT= Library implementing the SSH2 protocol |
Lines 13-49
WWW= https://www.libssh2.org/
Link Here
|
13 |
LICENSE= BSD3CLAUSE |
12 |
LICENSE= BSD3CLAUSE |
14 |
LICENSE_FILE= ${WRKSRC}/COPYING |
13 |
LICENSE_FILE= ${WRKSRC}/COPYING |
15 |
|
14 |
|
16 |
USES= compiler:c11 cpe libtool pathfix |
15 |
USES= cmake:testing cpe pathfix pkgconfig tar:xz |
17 |
USE_LDCONFIG= yes |
16 |
USE_LDCONFIG= yes |
18 |
GNU_CONFIGURE= yes |
|
|
19 |
GNU_CONFIGURE_MANPREFIX=${PREFIX}/share |
20 |
INSTALL_TARGET= install-strip |
21 |
TEST_TARGET= check |
22 |
|
17 |
|
23 |
OPTIONS_DEFINE= GCRYPT TRACE ZLIB |
18 |
CMAKE_OFF= BUILD_EXAMPLES \ |
24 |
OPTIONS_DEFAULT= ZLIB |
19 |
BUILD_TESTING \ |
|
|
20 |
RUN_DOCKER_TESTS \ |
21 |
RUN_SSHD_TESTS |
25 |
|
22 |
|
26 |
TRACE_DESC= Enable debug packet traces |
23 |
CMAKE_ON= ZLIB_CMAKE_BOOL |
|
|
24 |
|
25 |
OPTIONS_DEFINE= STATIC TRACE |
26 |
OPTIONS_SINGLE= SSL |
27 |
OPTIONS_SINGLE_SSL= GCRYPT OPENSSL |
28 |
OPTIONS_DEFAULT= OPENSSL ZLIB |
29 |
OPTIONS_SUB= yes |
30 |
|
31 |
TRACE_DESC= Enable debug packet traces |
27 |
|
32 |
|
28 |
GCRYPT_LIB_DEPENDS= libgcrypt.so:security/libgcrypt |
33 |
GCRYPT_LIB_DEPENDS= libgcrypt.so:security/libgcrypt |
29 |
GCRYPT_USES_OFF= ssl |
34 |
GCRYPT_CMAKE_ON= -DCRYPTO_BACKEND=Libgcrypt |
30 |
GCRYPT_CONFIGURE_ON= --with-crypto=libgcrypt |
35 |
|
31 |
GCRYPT_CONFIGURE_OFF= --with-crypto=openssl |
36 |
OPENSSL_USES= ssl |
32 |
GCRYPT_CPPFLAGS= -I${LOCALBASE}/include |
37 |
OPENSSL_CMAKE_ON= -DCRYPTO_BACKEND=OpenSSL |
33 |
GCRYPT_LIBS= -L${LOCALBASE}/lib |
38 |
|
34 |
TRACE_CONFIGURE_ENABLE= debug |
39 |
STATIC_CMAKE_BOOL= BUILD_STATIC_LIBS |
35 |
ZLIB_CONFIGURE_WITH= libz |
40 |
|
36 |
|
41 |
TRACE_CMAKE_BOOL= ENABLE_DEBUG_LOGGING |
37 |
.include <bsd.port.pre.mk> |
42 |
|
38 |
|
43 |
.include <bsd.port.mk> |
39 |
post-patch: |
|
|
40 |
@${REINPLACE_CMD} -e '/Libs:/s/@LIBS@//' \ |
41 |
${WRKSRC}/libssh2.pc.in |
42 |
.if ! ${PORT_OPTIONS:MGCRYPT} |
43 |
. if ${SSL_DEFAULT} == base |
44 |
@${REINPLACE_CMD} -e 's/LIBSREQUIRED="$$LIBSREQUIRED$${LIBSREQUIRED:+ }libssl libcrypto"/LIBS="$$LIBS -lssl -lcrypto"/' \ |
45 |
${WRKSRC}/configure |
46 |
. endif |
47 |
.endif |
48 |
|
49 |
.include <bsd.port.post.mk> |