git: 588ebd2c0f18 - main - japanese/groff: Fix build with llvm16

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Mon, 26 Jun 2023 12:16:15 UTC
The branch main has been updated by bofh:

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

commit 588ebd2c0f180e15b53fabe99d95a8bf4c339492
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-26 11:39:38 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-26 12:16:00 +0000

    japanese/groff: Fix build with llvm16
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 japanese/groff/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/japanese/groff/Makefile b/japanese/groff/Makefile
index fccc7a031a99..c67f05c6f1b4 100644
--- a/japanese/groff/Makefile
+++ b/japanese/groff/Makefile
@@ -45,6 +45,12 @@ MDOCFILES=	ja.eucJP doc-common doc-syms
 
 OPTIONS_DEFINE=	DOCS EXAMPLES
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CPPFLAGS+=  -Dregister=
+.endif
+
 post-patch:
 	${REINPLACE_CMD} -E -e 's|^@setfilename +groff|&.info|g;' \
 	    ${WRKSRC}/doc/groff.texinfo