git: 084f9f78443e - main - mail/enma: Unbreak on HEAD
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 03 May 2023 01:30:08 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=084f9f78443ef3ef618907059dfab095b669d6cd commit 084f9f78443ef3ef618907059dfab095b669d6cd Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2023-05-02 19:25:24 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-05-03 01:29:50 +0000 mail/enma: Unbreak on HEAD - Mark BROKEN_SSL on openssl30 and openssl31 - Fails to build with error: undefined reference due to --no-allow-shlib-undefined: EVP_* --- mail/enma/Makefile | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/mail/enma/Makefile b/mail/enma/Makefile index c79fd71f8624..a28c9f21a0fd 100644 --- a/mail/enma/Makefile +++ b/mail/enma/Makefile @@ -16,6 +16,8 @@ CONFIGURE_ARGS= --with-ssl-incdir=${OPENSSLINC} \ --with-ssl-libdir=${OPENSSLLIB} USES= gmake libtool perl5 ssl +BROKEN_SSL= openssl30 openssl31 +BROKEN_SSL_REASON- Fails to build with error: undefined reference due to --no-allow-shlib-undefined: EVP USE_RC_SUBR= milter-enma USE_LDCONFIG= yes USE_PERL5= build @@ -28,6 +30,13 @@ OPTIONS_DEFINE= DOCS LIBBIND LIBBIND_DESC= Link against dns/libbind instead of dns/ldns +LIBBIND_CONFIGURE_ON= --with-resolver=libbind \ + --with-libbind-incdir=${LOCALBASE}/include/bind \ + --with-libbind-libdir=${LOCALBASE}/lib +LIBBIND_BUILD_DEPENDS= ${LOCALBASE}/lib/libbind.a:dns/libbind +LIBBIND_CONFIGURE_OFF= --with-resolver=ldns +LIBBIND_LIB_DEPENDS_OFF= libldns.so:dns/ldns + .if defined(WITH_POSTFIX_MILTER) || defined(WITH_POSTFIX) || defined(WITH_POSTFIX_CURRENT) CONF_SUB= ${REINPLACE_CMD} -e '/milter\.postfix/s/false/true/' ${WRKSRC}/enma/etc/enma.conf.sample . if defined(WITH_POSTFIX_CURRENT) @@ -40,14 +49,10 @@ RUN_DEPENDS+= ${LOCALBASE}/libexec/postfix/smtpd:mail/postfix .include <bsd.port.options.mk> .include "${PORTSDIR}/mail/sendmail/bsd.milter.mk" -.if ${PORT_OPTIONS:MLIBBIND} -CONFIGURE_ARGS+= --with-resolver=libbind \ - --with-libbind-incdir=${LOCALBASE}/include/bind \ - --with-libbind-libdir=${LOCALBASE}/lib -BUILD_DEPENDS+= ${LOCALBASE}/lib/libbind.a:dns/libbind -.else -CONFIGURE_ARGS+= --with-resolver=ldns -LIB_DEPENDS+= libldns.so:dns/ldns +.include <bsd.port.pre.mk> + +.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400079 +CFLAGS+= -Wno-error=int-conversion .endif pre-configure: @@ -66,4 +71,4 @@ post-install: ${STAGEDIR}${PREFIX}/lib/libsauth.so \ ${STAGEDIR}${PREFIX}/libexec/enma -.include <bsd.port.mk> +.include <bsd.port.post.mk>