git: 49f9ff3087b8 - main - mail/emailrelay: Fix build with llvm16

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sun, 06 Aug 2023 12:30:52 UTC
The branch main has been updated by bofh:

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

commit 49f9ff3087b8402380eb1f24513321bb8d341c53
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-06 12:16:08 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-06 12:30:37 +0000

    mail/emailrelay: Fix build with llvm16
    
    - Pet portclippy
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 mail/emailrelay/Makefile | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/mail/emailrelay/Makefile b/mail/emailrelay/Makefile
index 3fedf7b7a8ac..df9d0b1fcb5e 100644
--- a/mail/emailrelay/Makefile
+++ b/mail/emailrelay/Makefile
@@ -13,24 +13,26 @@ LICENSE=	GPLv3
 LICENSE_FILE=	${WRKSRC}/COPYING
 
 USES=		autoreconf pkgconfig
+USE_CXXSTD=	c++14
+USE_RC_SUBR=	${PORTNAME}
+
 GNU_CONFIGURE=	yes
-CONFIGURE_ENV=	e_spooldir=${PREFIX}/var/spool/emailrelay
 CONFIGURE_ARGS=	--without-pam
-USE_RC_SUBR=	${PORTNAME}
+CONFIGURE_ENV=	e_spooldir=${PREFIX}/var/spool/emailrelay
 
 OPTIONS_DEFINE=		DOCS DOXYGEN OPENSSL IPV6
 OPTIONS_DEFAULT=	OPENSSL
 OPTIONS_SUB=		yes
 
-DOXYGEN_CONFIGURE_WITH=	doxygen
 DOXYGEN_BUILD_DEPENDS=	doxygen:devel/doxygen
+DOXYGEN_CONFIGURE_WITH=	doxygen
+
+IPV6_CONFIGURE_ENABLE=	ipv6
 
-OPENSSL_CONFIGURE_WITH=	openssl
 OPENSSL_USES=		ssl
-OPENSSL_LDFLAGS=	-L${OPENSSLLIB}
+OPENSSL_CONFIGURE_WITH=	openssl
 OPENSSL_CPPFLAGS=	-I${OPENSSLINC}
-
-IPV6_CONFIGURE_ENABLE=	ipv6
+OPENSSL_LDFLAGS=	-L${OPENSSLLIB}
 
 post-install:
 	${MV} ${STAGEDIR}${PREFIX}/etc/emailrelay.auth.template \