aboutsummaryrefslogtreecommitdiff
path: root/security/libssh2
diff options
context:
space:
mode:
authorAntoine Brodin <antoine@FreeBSD.org>2020-07-12 08:43:27 +0000
committerAntoine Brodin <antoine@FreeBSD.org>2020-07-12 08:43:27 +0000
commit34ff5e1b2ab2cb76806c8877aa21726199bd099a (patch)
tree4fbfa334210895b38aaa6aaa7751e6d6287406dd /security/libssh2
parent03787034c2c02968eec4dc4ac553f51ae0c9936e (diff)
downloadports-34ff5e1b2ab2cb76806c8877aa21726199bd099a.tar.gz
ports-34ff5e1b2ab2cb76806c8877aa21726199bd099a.zip
Unbreak
Reported by: pkg-fallout
Notes
Notes: svn path=/head/; revision=542067
Diffstat (limited to 'security/libssh2')
-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>