From e30e6bd319f66492f2c0ad9dc01c4972cc2e86f0 Mon Sep 17 00:00:00 2001 From: Alexey Dokuchaev Date: Mon, 31 Aug 2020 08:53:00 +0000 Subject: [PATCH] Allow to build against contemporary versions of OpenSSL. PR: 244473 (modified) --- irc/ircproxy/Makefile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/irc/ircproxy/Makefile b/irc/ircproxy/Makefile index 5fbfc5193f2c..e56690bcd43d 100644 --- a/irc/ircproxy/Makefile +++ b/irc/ircproxy/Makefile @@ -15,7 +15,7 @@ LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libcares.so:dns/c-ares -USES= tar:bzip2 +USES= autoreconf tar:bzip2 GNU_CONFIGURE= yes LDFLAGS+= -L${LOCALBASE}/lib -lcrypto CFLAGS+= -I${LOCALBASE}/include @@ -39,14 +39,13 @@ SSL_USES= ssl .include -.if ${SSL_DEFAULT} == base -BROKEN_FreeBSD_12= gnutls library not found. Install gnutls or use --with-openssl -BROKEN_FreeBSD_13= gnutls library not found. Install gnutls or use --with-openssl -.endif - post-patch: @${REINPLACE_CMD} -e 's|EUSER="ircproxy"|EUSER="ircproxyd"|g; \ s|EGROUP="users"|EGROUP="ircproxyd"|g' ${WRKSRC}/data/${PORTNAME}d.conf +.if ${OSVERSION} > 1200084 + @${REINPLACE_CMD} -e '/gnutls/!s,SSL_library_init,OPENSSL_init_ssl,' \ + ${WRKSRC}/configure.in +.endif post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/imkpasswd ${STAGEDIR}${PREFIX}/bin/ircproxyd