Index | Thread | Search

From:
Theo Buehler <tb@theobuehler.org>
Subject:
cegui: fix build with newer boost
To:
ports@openbsd.org
Cc:
pascal@openbsd.org
Date:
Wed, 23 Apr 2025 10:57:02 +0200

Download raw body.

Thread
  • Theo Buehler:

    cegui: fix build with newer boost

The headers this pulls in use noexcept with newer boost, so -std=c++03
doesn't work anymore. Just remove it and use the compiler's default.

I bumped the majors since there's quite a bit of churn resulting from
this change and I'm not interested in spending time on reducing the
bumps to the strict minimum.

FreeBSD uses a compiler setting -std=c++11 so doesn't need this patch.

Index: Makefile
===================================================================
RCS file: /cvs/ports/x11/cegui/Makefile,v
diff -u -p -r1.18 Makefile
--- Makefile	27 Sep 2023 20:37:02 -0000	1.18
+++ Makefile	23 Apr 2025 08:54:02 -0000
@@ -2,15 +2,15 @@ COMMENT =		widgets library for graphics 
 
 V =			0.8.7
 DISTNAME =		cegui-${V}
-REVISION =		0
+REVISION =		1
 
-SHARED_LIBS +=  CEGUIBase-0			1.0 # 3.1
-SHARED_LIBS +=  CEGUICommonDialogs-0		1.0 # 3.1
-SHARED_LIBS +=  CEGUIIrrlichtRenderer-0		1.0 # 3.1
-SHARED_LIBS +=  CEGUIOgreRenderer-0		1.0 # 3.1
-SHARED_LIBS +=  CEGUIOpenGLRenderer-0		1.0 # 3.1
-SHARED_LIBS +=	CEGUIFreeImageImageCodec	1.0
-SHARED_LIBS +=	CEGUIExpatParser		1.0
+SHARED_LIBS +=	CEGUIBase-0			2.0 # 3.1
+SHARED_LIBS +=	CEGUICommonDialogs-0		2.0 # 3.1
+SHARED_LIBS +=	CEGUIIrrlichtRenderer-0		2.0 # 3.1
+SHARED_LIBS +=	CEGUIOgreRenderer-0		2.0 # 3.1
+SHARED_LIBS +=	CEGUIOpenGLRenderer-0		2.0 # 3.1
+SHARED_LIBS +=	CEGUIFreeImageImageCodec	2.0
+SHARED_LIBS +=	CEGUIExpatParser		2.0
 
 CATEGORIES =		x11
 
Index: patches/patch-CMakeLists_txt
===================================================================
RCS file: patches/patch-CMakeLists_txt
diff -N patches/patch-CMakeLists_txt
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ patches/patch-CMakeLists_txt	23 Apr 2025 08:47:32 -0000
@@ -0,0 +1,14 @@
+Fix build with boost >= 1.87
+
+Index: CMakeLists.txt
+--- CMakeLists.txt.orig
++++ CMakeLists.txt
+@@ -72,7 +72,7 @@ endif()
+ 
+ if ((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") OR (CMAKE_CXX_COMPILER_ID STREQUAL "Clang"))
+     set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99")
+-    set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++03")
++    set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
+ elseif (NOT CMAKE_VERSION VERSION_LESS "3.1")
+     set (CMAKE_C_STANDARD_REQUIRED TRUE)
+     set (CMAKE_C_STANDARD "99")