git: 236c97ad7fae - 2024Q1 - textproc/enchant: Fix build with ISPELL option

From: Joseph Mingrone <jrm_at_FreeBSD.org>
Date: Thu, 18 Jan 2024 23:51:10 UTC
The branch 2024Q1 has been updated by jrm:

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

commit 236c97ad7faea13d55f4f2a611ee250fcf55c10c
Author:     Olivier Certner <olce.freebsd@certner.fr>
AuthorDate: 2023-08-25 11:06:31 +0000
Commit:     Joseph Mingrone <jrm@FreeBSD.org>
CommitDate: 2024-01-18 23:48:34 +0000

    textproc/enchant: Fix build with ISPELL option
    
    clang++ 16 defaults to C++17 causing errors with the codebase when the
    ISPELL option is turned on.  Switching back to C++11 (what upstream did
    for 1.6.1) makes it build correctly.
    
    PR:             273649
    (cherry picked from commit ed633bad445cb49e524aab1cb11a2cbf17364a5c)
---
 textproc/enchant/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/textproc/enchant/Makefile b/textproc/enchant/Makefile
index 6b87664386c6..daaa569a8735 100644
--- a/textproc/enchant/Makefile
+++ b/textproc/enchant/Makefile
@@ -13,6 +13,7 @@ GNU_CONFIGURE=	yes
 USE_LDCONFIG=	yes
 USES=		gmake gnome libtool pathfix pkgconfig
 USE_GNOME=	glib20
+USE_CXXSTD=	c++11
 CONFIGURE_ARGS=	--disable-uspell \
 		--disable-voikko