Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Jun 2023 15:52:49 GMT
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: fc03e3da6993 - main - games/wargus: fix build with recent c++ library
Message-ID:  <202306051552.355FqnsA049013@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by amdmi3:

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

commit fc03e3da69931447e8bbdb0a6b515283b975a28c
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2023-06-05 14:07:00 +0000
Commit:     Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2023-06-05 15:49:42 +0000

    games/wargus: fix build with recent c++ library
    
    In recent c++ library (such as on 14.x), <experimental/filesystem>
    header would be removed in favor of standard <filesystem>. Remove
    check for the former and don't do weird stuff when
    experimental/filesystem is not present.
    
    This is similar to 092787dffe45ea6ee1c5ea3b8cede34eea142992 for
    games/stratagus
    
    Reported by:    pkg-fallout
---
 games/wargus/files/patch-CMakeLists.txt | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/games/wargus/files/patch-CMakeLists.txt b/games/wargus/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..4711489c192c
--- /dev/null
+++ b/games/wargus/files/patch-CMakeLists.txt
@@ -0,0 +1,11 @@
+--- CMakeLists.txt.orig	2022-08-10 18:15:26 UTC
++++ CMakeLists.txt
+@@ -162,7 +162,7 @@ set(wartool_LIBS ${pudconvert_LIBS} ${PNG_LIBRARIES} $
+ 
+ if(WIN32 AND MSVC)
+ 	add_definitions(-D_CRT_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE=1)
+-else()
++elseif(FALSE)
+ 	include(CheckCXXSourceCompiles)
+ 	set(FS_SRC "
+ 	#include <experimental/filesystem> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202306051552.355FqnsA049013>