Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Jul 2023 18:26:23 GMT
From:      Muhammad Moinur Rahman <bofh@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: afd72f06bf35 - main - mail/avenger: Fix build with llvm16
Message-ID:  <202307211826.36LIQNiW091143@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by bofh:

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

commit afd72f06bf351bea22af0efc134af69292a0fe61
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-07-21 17:37:45 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-07-21 18:26:13 +0000

    mail/avenger: Fix build with llvm16
    
    - Pet portclippy
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 mail/avenger/Makefile | 28 +++++++++++++++-------------
 1 file changed, 15 insertions(+), 13 deletions(-)

diff --git a/mail/avenger/Makefile b/mail/avenger/Makefile
index 6d7a086be8ec..2a00e3d27f0f 100644
--- a/mail/avenger/Makefile
+++ b/mail/avenger/Makefile
@@ -11,34 +11,40 @@ LICENSE=	GPLv3
 LICENSE_FILE=	${WRKSRC}/COPYING
 
 USES=		bdb ssl
+USE_CXXSTD=	c++14
 
 GNU_CONFIGURE=	yes
+CONFIGURE_ARGS=	--enable-ssl=${OPENSSLBASE} \
+		--with-db=${LOCALBASE} \
+		--with-etcdir=${ETCDIR}
+CONFIGURE_ENV=	WFLAGS='-Wall'
+
+# Fix build with clang11
+CFLAGS+=	-fcommon
 
 CONFLICTS_INSTALL=	mailutils # bin/dotlock
 
+SUB_FILES=	pkg-message
+
 USERS=		${PORTNAME}
 GROUPS=		${USERS}
 
 PORTDOCS=	INSTALL INSTALL.html README NEWS
-SUB_FILES=	pkg-message
-
-CONFIGURE_ENV=	WFLAGS='-Wall'
-CONFIGURE_ARGS=	--enable-ssl=${OPENSSLBASE} \
-		--with-db=${LOCALBASE} \
-		--with-etcdir=${ETCDIR}
-# Fix build with clang11
-CFLAGS+=	-fcommon
 
 OPTIONS_DEFINE=	DOCS SASL
 
-SASL_CONFIGURE_ENABLE=	sasl
 SASL_LIB_DEPENDS=	libsasl2.so:security/cyrus-sasl2
+SASL_CONFIGURE_ENABLE=	sasl
 
 post-patch:
 	@${REINPLACE_CMD} -e \
 		'/for vers in/s|5.*;|${BDB_LIB_NAME:S,db-,,};|' \
 		${WRKSRC}/configure
 
+do-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
+
 post-install:
 	@${MKDIR} ${STAGEDIR}${ETCDIR}
 	${INSTALL_DATA} ${WRKSRC}/etc/asmtpd.conf \
@@ -51,8 +57,4 @@ post-install:
 	(cd ${WRKSRC}/etc ; ${INSTALL_DATA} smtp-filter.pf avsendmail.m4 \
 		${STAGEDIR}${DATADIR})
 
-do-install-DOCS-on:
-	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
-
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202307211826.36LIQNiW091143>