summary refs log tree commit diff
path: root/pkgs/games/widelands/bincmake.patch
diff options
context:
space:
mode:
authorrardiol <ricardo.ardissone@gmail.com>2017-02-15 04:11:59 -0200
committerFranz Pletz <fpletz@fnordicwalking.de>2017-02-15 07:11:59 +0100
commit195ca7393c42a9d93d34ca8911082101cb8db642 (patch)
tree35f0dfdfb78b104c9074d924fb9c03e054f85f52 /pkgs/games/widelands/bincmake.patch
parent01e5b8527dacfb61319dcdc2178ec6aed7f7f3c5 (diff)
downloadnixpkgs-195ca7393c42a9d93d34ca8911082101cb8db642.tar
nixpkgs-195ca7393c42a9d93d34ca8911082101cb8db642.tar.gz
nixpkgs-195ca7393c42a9d93d34ca8911082101cb8db642.tar.bz2
nixpkgs-195ca7393c42a9d93d34ca8911082101cb8db642.tar.lz
nixpkgs-195ca7393c42a9d93d34ca8911082101cb8db642.tar.xz
nixpkgs-195ca7393c42a9d93d34ca8911082101cb8db642.tar.zst
nixpkgs-195ca7393c42a9d93d34ca8911082101cb8db642.zip
widelands: 18 -> 19 (#22796)
Diffstat (limited to 'pkgs/games/widelands/bincmake.patch')
-rw-r--r--pkgs/games/widelands/bincmake.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/pkgs/games/widelands/bincmake.patch b/pkgs/games/widelands/bincmake.patch
new file mode 100644
index 00000000000..ed6a9912522
--- /dev/null
+++ b/pkgs/games/widelands/bincmake.patch
@@ -0,0 +1,21 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -25,6 +25,8 @@
+ # Packagers (or people using make install) have to set this variable to an absolute path.
+ wl_set_if_unset(WL_INSTALL_DATADIR "./data")
+ 
++wl_set_if_unset(WL_INSTALL_BINARY "./bin")
++
+ if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
+   if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.7)
+     message(FATAL_ERROR "Widelands needs GCC >= 4.7 to compile.")
+
+--- a/cmake/WlFunctions.cmake
++++ b/cmake/WlFunctions.cmake
+@@ -276,5 +276,5 @@
+ 
+   #Quoting the CMake documentation on DESTINATION:
+   #"If a relative path is given it is interpreted relative to the value of CMAKE_INSTALL_PREFIX"
+-  install(TARGETS ${NAME} DESTINATION "." COMPONENT ExecutableFiles)
++  install(TARGETS ${NAME} DESTINATION ${WL_INSTALL_BINARY} COMPONENT ExecutableFiles)
+ endfunction()