aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-06-26 11:39:38 +0000
committerMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-06-26 12:16:00 +0000
commit588ebd2c0f180e15b53fabe99d95a8bf4c339492 (patch)
tree1d3c0bc02d5d4585f23436b15ddcfc99337b09c0
parentb0e420a2c7756290f5aba667282e282c2d70f7eb (diff)
downloadports-588ebd2c0f180e15b53fabe99d95a8bf4c339492.tar.gz
ports-588ebd2c0f180e15b53fabe99d95a8bf4c339492.zip
japanese/groff: Fix build with llvm16
Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation
-rw-r--r--japanese/groff/Makefile6
1 files changed, 6 insertions, 0 deletions
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