svn commit: r542067 - head/security/libssh2

Antoine Brodin antoine at FreeBSD.org
Sun Jul 12 08:43:28 UTC 2020


Author: antoine
Date: Sun Jul 12 08:43:27 2020
New Revision: 542067
URL: https://svnweb.freebsd.org/changeset/ports/542067

Log:
  Unbreak
  
  Reported by:	pkg-fallout

Modified:
  head/security/libssh2/Makefile

Modified: head/security/libssh2/Makefile
==============================================================================
--- head/security/libssh2/Makefile	Sun Jul 12 07:09:22 2020	(r542066)
+++ head/security/libssh2/Makefile	Sun Jul 12 08:43:27 2020	(r542067)
@@ -3,6 +3,7 @@
 
 PORTNAME=	libssh2
 PORTVERSION=	1.9.0
+PORTREVISION=	1
 PORTEPOCH=	3
 CATEGORIES=	security devel
 MASTER_SITES=	https://www.libssh2.org/download/ \
@@ -34,5 +35,15 @@ GCRYPT_USES_OFF=	ssl
 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>


More information about the svn-ports-all mailing list