aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--games/arx-libertatis/arx-libertatis-1.1.2-cmake3.5.patch12
-rw-r--r--games/arx-libertatis/arx-libertatis.SlackBuild5
2 files changed, 16 insertions, 1 deletions
diff --git a/games/arx-libertatis/arx-libertatis-1.1.2-cmake3.5.patch b/games/arx-libertatis/arx-libertatis-1.1.2-cmake3.5.patch
new file mode 100644
index 000000000000..98f05e38cf3d
--- /dev/null
+++ b/games/arx-libertatis/arx-libertatis-1.1.2-cmake3.5.patch
@@ -0,0 +1,12 @@
+diff -up ./cmake/VersionString.cmake.orig ./cmake/VersionString.cmake
+--- ./cmake/VersionString.cmake.orig 2016-03-22 19:18:55.656290322 +0200
++++ ./cmake/VersionString.cmake 2016-03-22 19:19:08.239813098 +0200
+@@ -33,7 +33,7 @@ function(version_file SRC DST VERSION_SO
+
+ foreach(arg IN LISTS VERSION_SOURCES)
+
+- if(mode STREQUAL "variable")
++ if("${mode}" STREQUAL "variable")
+ set(mode "file")
+ else()
+ get_filename_component(arg "${arg}" ABSOLUTE)
diff --git a/games/arx-libertatis/arx-libertatis.SlackBuild b/games/arx-libertatis/arx-libertatis.SlackBuild
index 045b0530b59d..37058e08d679 100644
--- a/games/arx-libertatis/arx-libertatis.SlackBuild
+++ b/games/arx-libertatis/arx-libertatis.SlackBuild
@@ -67,7 +67,10 @@ find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+# Fix build with cmake3.5 (patch thanks to Mageia)
+patch -p1 < $CWD/arx-libertatis-1.1.2-cmake3.5.patch
mkdir -p build
cd build