summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorStefan Wildemann <metalstrolch@users.noreply.github.com>2017-04-24 11:19:49 +0200
committerGitHub <noreply@github.com>2017-04-24 11:19:49 +0200
commitf221cd197fc8ef915b76c3b7b170ccd76178ad74 (patch)
tree90782890a6d126983d22244e473eb7c3cca9420c /man
parentc25b3e102955e12ff1409c0a85a15f848e2d8225 (diff)
downloadnavit-f221cd197fc8ef915b76c3b7b170ccd76178ad74.tar.gz
Fix: Allow unusual building (#215)R7404
* Support unusual building This patch updates navits cmake system to allow more unusual build and install path configurations as well as renaming the navit binary. This sis required for restricted environments like Sailfish OS harbour that do not follow usual path conventions. You can now: redefine the binary name (NAVIT_BINARY) control the translation file names (PACKAGE) select the library directory (LIB_DIR) select the share directory (SHARE_DIR) select the locales directory (LOCALE_DIR) select the images directory (IMAGE_DIR) select the man directory (MAN_DIR) the .desktop file is updated and the man file is renamed according to this and the install prefix is still honoured.
Diffstat (limited to 'man')
-rw-r--r--man/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/man/CMakeLists.txt b/man/CMakeLists.txt
index ceb2ca3c9..886dc1227 100644
--- a/man/CMakeLists.txt
+++ b/man/CMakeLists.txt
@@ -1 +1,5 @@
-INSTALL(FILES maptool.1 navit.1 DESTINATION ${MAN_DIR})
+INSTALL(FILES maptool.1 DESTINATION ${MAN_DIR})
+if(NOT DEFINED NAVIT_BINARY)
+ set(NAVIT_BINARY navit)
+endif()
+INSTALL(FILES navit.1 DESTINATION ${MAN_DIR} RENAME ${NAVIT_BINARY}.1)