summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--security/libssh2/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/security/libssh2/Makefile b/security/libssh2/Makefile
index 898bf9d2d90c..5a2bcd801ecd 100644
--- a/security/libssh2/Makefile
+++ b/security/libssh2/Makefile
@@ -3,6 +3,7 @@
PORTNAME= libssh2
PORTVERSION= 1.9.0
+PORTREVISION= 1
PORTEPOCH= 3
CATEGORIES= security devel
MASTER_SITES= https://www.libssh2.org/download/ \
@@ -35,4 +36,14 @@ ZLIB_CONFIGURE_WITH= libz
.include <bsd.port.pre.mk>
+post-patch:
+ @${REINPLACE_CMD} -e '/Libs:/s/@LIBS@//' \
+ ${WRKSRC}/libssh2.pc.in
+.if ! ${PORT_OPTIONS:MGCRYPT}
+. if ${SSL_DEFAULT} == base
+ @${REINPLACE_CMD} -e 's/LIBSREQUIRED="$$LIBSREQUIRED$${LIBSREQUIRED:+ }libssl libcrypto"/LIBS="$$LIBS -lssl -lcrypto"/' \
+ ${WRKSRC}/configure
+. endif
+.endif
+
.include <bsd.port.post.mk>