mirror of
https://git.freebsd.org/ports.git
synced 2025-05-12 23:31:50 -04:00
Allow to build against contemporary versions of OpenSSL.
PR: 244473 (modified)
This commit is contained in:
parent
7fa17f420f
commit
e30e6bd319
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=547156
1 changed files with 5 additions and 6 deletions
|
@ -15,7 +15,7 @@ LICENSE_FILE= ${WRKSRC}/COPYING
|
||||||
|
|
||||||
LIB_DEPENDS= libcares.so:dns/c-ares
|
LIB_DEPENDS= libcares.so:dns/c-ares
|
||||||
|
|
||||||
USES= tar:bzip2
|
USES= autoreconf tar:bzip2
|
||||||
GNU_CONFIGURE= yes
|
GNU_CONFIGURE= yes
|
||||||
LDFLAGS+= -L${LOCALBASE}/lib -lcrypto
|
LDFLAGS+= -L${LOCALBASE}/lib -lcrypto
|
||||||
CFLAGS+= -I${LOCALBASE}/include
|
CFLAGS+= -I${LOCALBASE}/include
|
||||||
|
@ -39,14 +39,13 @@ SSL_USES= ssl
|
||||||
|
|
||||||
.include <bsd.port.pre.mk>
|
.include <bsd.port.pre.mk>
|
||||||
|
|
||||||
.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:
|
post-patch:
|
||||||
@${REINPLACE_CMD} -e 's|EUSER="ircproxy"|EUSER="ircproxyd"|g; \
|
@${REINPLACE_CMD} -e 's|EUSER="ircproxy"|EUSER="ircproxyd"|g; \
|
||||||
s|EGROUP="users"|EGROUP="ircproxyd"|g' ${WRKSRC}/data/${PORTNAME}d.conf
|
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:
|
post-install:
|
||||||
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/imkpasswd ${STAGEDIR}${PREFIX}/bin/ircproxyd
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/imkpasswd ${STAGEDIR}${PREFIX}/bin/ircproxyd
|
||||||
|
|
Loading…
Add table
Reference in a new issue