git: 09308d33ebbf - main - mail/rmilter: Unbreak on HEAD

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Wed, 03 May 2023 01:30:07 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=09308d33ebbf43cd15d685cb34805452828fa4b7

commit 09308d33ebbf43cd15d685cb34805452828fa4b7
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-05-02 18:55:06 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-05-03 01:29:49 +0000

    mail/rmilter: Unbreak on HEAD
    
    - Utilize OPTIONSNG
    
    Approved by:    portmgr (blanket)
---
 mail/rmilter/Makefile | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/mail/rmilter/Makefile b/mail/rmilter/Makefile
index 6f7e7905997b..ef22a1356216 100644
--- a/mail/rmilter/Makefile
+++ b/mail/rmilter/Makefile
@@ -28,18 +28,20 @@ OPTIONS_DEFINE=		DKIM
 OPTIONS_DEFAULT=	DKIM
 
 DKIM_DESC=		DKIM signing support
+
 DKIM_LIB_DEPENDS=	libopendkim.so:mail/opendkim
+DKIM_CMAKE_OFF=	-DENABLE_DKIM=OFF
 
 .include <bsd.port.pre.mk>
 
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400079
+CFLAGS+=       -Wno-error=int-conversion
+.endif
+
 # Workaround to prevent bsd.milter.mk from breaking the build with the recent clang
 WITHOUT_MILTER_LDFLAGS=	yes
 .include "${PORTSDIR}/mail/sendmail/bsd.milter.mk"
 
-.if ! ${PORT_OPTIONS:MDKIM}
-CMAKE_ARGS+=	-DENABLE_DKIM=OFF
-.endif
-
 post-patch:
 	${SED} ${SUB_LIST:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
 		${WRKSRC}/freebsd/rmilter > ${WRKDIR}/rmilter