From c9320e3521fac97568abbb80419a3fb10d88362d Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Sat, 23 Apr 2016 13:17:11 +0200 Subject: [PATCH] games-rpg/arx-libertatis: fix build with latest cmake --- .../arx-libertatis-1.1.2.exheres-0 | 4 ++++ .../arx-libertatis-1.1.2-fix-cmake-build.patch | 17 +++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 packages/games-rpg/arx-libertatis/files/arx-libertatis-1.1.2-fix-cmake-build.patch diff --git a/packages/games-rpg/arx-libertatis/arx-libertatis-1.1.2.exheres-0 b/packages/games-rpg/arx-libertatis/arx-libertatis-1.1.2.exheres-0 index dd2c3d5..1009dcc 100644 --- a/packages/games-rpg/arx-libertatis/arx-libertatis-1.1.2.exheres-0 +++ b/packages/games-rpg/arx-libertatis/arx-libertatis-1.1.2.exheres-0 @@ -27,6 +27,10 @@ DEPENDENCIES=" arx-install-data tool ] ]] " +DEFAULT_SRC_PREPARE_PATCHES=( + "${FILES}"/${PNV}-fix-cmake-build.patch +) + CMAKE_SRC_CONFIGURE_PARAMS=( -DBUILD_EDITOR=OFF -DCMAKE_INSTALL_DATAROOTDIR="/usr/share" diff --git a/packages/games-rpg/arx-libertatis/files/arx-libertatis-1.1.2-fix-cmake-build.patch b/packages/games-rpg/arx-libertatis/files/arx-libertatis-1.1.2-fix-cmake-build.patch new file mode 100644 index 0000000..6c5483d --- /dev/null +++ b/packages/games-rpg/arx-libertatis/files/arx-libertatis-1.1.2-fix-cmake-build.patch @@ -0,0 +1,17 @@ +This is a backport from +https://github.com/arx/ArxLibertatis/commit/60e43c3cbf3fb0aa10cc3092b2512ccebb60b80d + +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -11,6 +11,11 @@ + endif() + else() + cmake_minimum_required(VERSION 2.8) ++ if(CMAKE_VERSION VERSION_GREATER 3.4) ++ cmake_policy(VERSION 3.4) ++ else() ++ cmake_policy(VERSION ${CMAKE_VERSION}) ++ endif() + endif() + +