Proper fix for gnutls.pc generation by ripping out 'zlib' part

from configure as it was originally submitted by Fumiyuki Shimizu in
ports/157647.

Pointy hat to:		novel
This commit is contained in:
Roman Bogorodskiy 2011-06-06 12:07:37 +00:00
parent 233397d256
commit fdcb7cc1a2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=275127
2 changed files with 16 additions and 3 deletions

View File

@ -35,9 +35,6 @@ MANCOMPRESSED= no
.include <bsd.port.pre.mk>
post-configure:
@${REINPLACE_CMD} -e 's|zlib||' ${WRKSRC}/lib/gnutls.pc
.if (defined(WITH_LIBTASN1) || exists(${LOCALBASE}/lib/libtasn1.so.4)) && !defined(WITHOUT_LIBTASN1)
LIB_DEPENDS+= tasn1.4:${PORTSDIR}/security/libtasn1
.else

View File

@ -0,0 +1,16 @@
--- lib/configure.orig 2011-06-06 15:37:23.000000000 +0400
+++ lib/configure 2011-06-06 15:40:46.000000000 +0400
@@ -17201,13 +17201,6 @@
$as_echo "no" >&6; }
fi
-if test x$ac_zlib != xno; then
- if test x$GNUTLS_REQUIRES_PRIVATE = x; then
- GNUTLS_REQUIRES_PRIVATE="Requires.private: zlib"
- else
- GNUTLS_REQUIRES_PRIVATE="$GNUTLS_REQUIRES_PRIVATE , zlib"
- fi
-fi