]> git.pld-linux.org Git - packages/CEGUI.git/commitdiff
- use relaxed c++11 to fix build with new xerces-c auto/th/CEGUI-0.8.7-3
authorJan Rękorajski <baggins@pld-linux.org>
Wed, 22 Nov 2017 18:56:07 +0000 (19:56 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Wed, 22 Nov 2017 18:56:07 +0000 (19:56 +0100)
- rel 3

CEGUI.spec
cxx11.patch [new file with mode: 0644]

index d5a60a9be7c458ba324e98f8506af812fbed80dd..8650ad837d41281a3fc119ad2308c051093e2c40 100644 (file)
@@ -10,7 +10,7 @@ Summary:      CEGUI - a free library providing windowing and widgets
 Summary(pl.UTF-8):     CEGUI - wolnodostępna biblioteka zapewniającą okienka i widgety
 Name:          CEGUI
 Version:       0.8.7
-Release:       2
+Release:       3
 License:       LGPL v2.1+ (with MIT parts)
 Group:         Libraries
 Source0:       http://downloads.sourceforge.net/crayzedsgui/cegui-%{version}.tar.bz2
@@ -20,6 +20,7 @@ Source1:      http://downloads.sourceforge.net/crayzedsgui/cegui-docs.%{version}.zip
 Patch0:                pthread.patch
 Patch1:                %{name}-glfw3.patch
 Patch3:                x32.patch
+Patch4:                cxx11.patch
 URL:           http://www.cegui.org.uk/
 BuildRequires: DevIL-devel
 %{?with_directfb:BuildRequires:        DirectFB-devel >= 1.2.0}
@@ -460,6 +461,7 @@ Wiązania Pythona do biblioteki CEGUI OpenGLRenderer.
 %patch0 -p1
 %patch1 -p1
 %patch3 -p1
+%patch4 -p1
 
 %build
 install -d build
diff --git a/cxx11.patch b/cxx11.patch
new file mode 100644 (file)
index 0000000..6138960
--- /dev/null
@@ -0,0 +1,11 @@
+--- cegui-0.8.7/CMakeLists.txt~        2017-11-22 18:34:24.000000000 +0100
++++ cegui-0.8.7/CMakeLists.txt 2017-11-22 18:35:20.404123049 +0100
+@@ -72,7 +72,7 @@
+ 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} -std=c++11 -fpermissive")
+ elseif (NOT CMAKE_VERSION VERSION_LESS "3.1")
+     set (CMAKE_C_STANDARD_REQUIRED TRUE)
+     set (CMAKE_C_STANDARD "99")
This page took 0.05117 seconds and 4 git commands to generate.