git: 38f54301414a - main - textproc/jade: fix build with clang 16

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Thu, 18 May 2023 18:30:30 UTC
The branch main has been updated by dim:

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

commit 38f54301414a3f446ff99de936c985672ff8e8c8
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2023-05-18 15:43:15 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2023-05-18 18:21:48 +0000

    textproc/jade: fix build with clang 16
    
    Since clang 16 (and gcc 11) the default C++ standard is now gnu++17.
    Because textproc/jade's Makefile does not explicitly set its C++
    standard, this leads to an error:
    
      Recognizer.cxx:40:3: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
        register const Trie *pos = trie_.pointer();
        ^~~~~~~~~
    
    Add USE_CXXSTD=gnu++98 to compile for C++98 with GNU extensions instead.
    
    PR:             271494
    Approved by:    cy (maintainer)
    MFH:            2023Q2
---
 textproc/jade/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/textproc/jade/Makefile b/textproc/jade/Makefile
index 4c13aa2bfae4..21e818789dc0 100644
--- a/textproc/jade/Makefile
+++ b/textproc/jade/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	jade
 PORTVERSION=	1.2.1
-PORTREVISION=	10
+PORTREVISION=	11
 CATEGORIES=	textproc
 MASTER_SITES=	ftp://ftp.jclark.com/pub/jade/ \
 		http://dist.bsdlab.org/
@@ -20,6 +20,7 @@ CONFLICTS=	sp-1.*
 
 GNU_CONFIGURE=	yes
 USES=		desthack gmake libtool
+USE_CXXSTD=	gnu++98
 USE_LDCONFIG=	yes
 CONFIGURE_ARGS=	--enable-default-catalog=${PREFIX}/share/sgml/catalog
 MAKE_JOBS_UNSAFE=	yes