From f221cd197fc8ef915b76c3b7b170ccd76178ad74 Mon Sep 17 00:00:00 2001 From: Stefan Wildemann Date: Mon, 24 Apr 2017 11:19:49 +0200 Subject: Fix: Allow unusual building (#215) * 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. --- po/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'po') diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt index de83bb52b..1967005b4 100644 --- a/po/CMakeLists.txt +++ b/po/CMakeLists.txt @@ -84,7 +84,7 @@ foreach (LANG ${LANGUAGES}) COMMAND ${CMAKE_COMMAND} -E copy_if_different "${CMAKE_CURRENT_BINARY_DIR}/${LANG}.mo" "${PROJECT_BINARY_DIR}/locale/${LANG}/LC_MESSAGES/navit.mo" ) SET(MOFILES ${CMAKE_CURRENT_BINARY_DIR}/${LANG}.mo ${MOFILES}) - INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${LANG}.mo DESTINATION ${LOCALE_DIR}/${LANG}/LC_MESSAGES RENAME navit.mo) + INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${LANG}.mo DESTINATION ${LOCALE_DIR}/${LANG}/LC_MESSAGES RENAME ${PACKAGE}.mo) endforeach(LANG ${LANGUAGES}) add_custom_target(locales ALL DEPENDS ${MOFILES}) -- cgit v1.2.1