git: 5c0c2cb6f377 - main - lang/ecl: Add non-default CXX option to enable C++ support

From: Jimmy Olgeni <olgeni_at_FreeBSD.org>
Date: Mon, 11 Aug 2025 15:08:45 UTC
The branch main has been updated by olgeni:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5c0c2cb6f37762bda399fb108647a05ceacb0e4f

commit 5c0c2cb6f37762bda399fb108647a05ceacb0e4f
Author:     Jimmy Olgeni <olgeni@FreeBSD.org>
AuthorDate: 2025-08-11 13:48:26 +0000
Commit:     Jimmy Olgeni <olgeni@FreeBSD.org>
CommitDate: 2025-08-11 15:08:39 +0000

    lang/ecl: Add non-default CXX option to enable C++ support
    
    ECL supports compiling with C++ (instead of the C compiler), for embedded
    applications written in C++. This is available as a non-default configure
    option in ECL.
    
    This patch adds a non-default CXX option that allows someone building from
    ports to turn on C++ support.
    
    PR:             288784
---
 lang/ecl/Makefile | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lang/ecl/Makefile b/lang/ecl/Makefile
index d3fb0ca3a0e4..694b36521fca 100644
--- a/lang/ecl/Makefile
+++ b/lang/ecl/Makefile
@@ -18,7 +18,6 @@ LIB_DEPENDS=	libgc.so:devel/boehm-gc \
 RUN_DEPENDS=	${LOCALBASE}/lib/libatomic_ops.a:devel/libatomic_ops
 
 USES=		autoreconf gmake localbase makeinfo perl5 tar:tgz
-USE_CSTD=	c99
 USE_LDCONFIG=	yes
 USE_PERL5=	build
 GNU_CONFIGURE=	yes
@@ -34,17 +33,20 @@ AUTORECONF_WRKSRC=	${WRKSRC}/src
 INFO=			ecl
 PLIST_SUB=		VERSION="${PORTVERSION}"
 
-OPTIONS_DEFINE=		ASDF DFFI SAGE SOCKETS THREADS X11
+OPTIONS_DEFINE=		ASDF CXX DFFI SAGE SOCKETS THREADS X11
 OPTIONS_DEFAULT=	ASDF DFFI SAGE SOCKETS THREADS
 OPTIONS_SUB=		yes
 
 ASDF_DESC=	Enable ASDF building facility
+CXX_DESC=	Enable C++ support
 DFFI_DESC=	Dynamic foreign-function support
 SAGE_DESC=	Build with patches for sage
 SOCKETS_DESC=	Enable socket interface
 
 ASDF_CONFIGURE_ON=	--with-asdf=yes
 ASDF_CONFIGURE_OFF=	--with-asdf=no
+CXX_CONFIGURE_ON=	--with-cxx
+CXX_VARS_OFF=		USE_CSTD=c99
 DFFI_LIB_DEPENDS=	libffi.so:devel/libffi
 DFFI_CONFIGURE_ON=	--with-dffi=system
 DFFI_CONFIGURE_OFF=	--with-dffi=no