The special codepath for CUSTOM_DATA_INSTALL_PATH on OSX means the path is
generated multiple backslashes which cause problems later on in the compile.
Having the same codepath as everything else appears to resolve this problem.
The CUSTOM_DATA_INSTALL_PATH constant is checked at different
places in the code but was not actually passed to the compiler.
This resulted in searching the data files in /usr/games instead
of /usr/share/games/megaglest (in Ubuntu and Debian).
This commit also fixes setting the variable. It is still wrong
for Apple I think. But I can not test it.
- fontconfig not working
- new cmake option to control inclusion of libvlc
- new commandline option to force where to look for fonts: --font-path=x
- removal of libluajit from cmake
BUILD_MEGAGLEST_MODEL_IMPORT_EXPORT_TOOLS
BUILD_MEGAGLEST_MODEL_VIEWER
BUILD_MEGAGLEST_MAP_EDITOR
BUILD_MEGAGLEST_CONFIGURATOR
BUILD_MEGAGLEST
By default these are all enabled (On). Turn turn off a module run cmake with the option turned off:
-DBUILD_MEGAGLEST_CONFIGURATOR=OFF
- missing glest.ini during make install (this file is handled by the data install)
- properly handles destdir for all installed files
- customizable paths for all installation destinations (the following can now be set):
MEGAGLEST_BIN_INSTALL_PATH - "bin/" - "The installation path for binaries (this is appended to the CMAKE_INSTALL_PREFIX)")
MEGAGLEST_DATA_INSTALL_PATH - "share/megaglest/" - "The installation path for data files (this is appended to the CMAKE_INSTALL_PREFIX)")
MEGAGLEST_DESKTOP_INSTALL_PATH - "share/applications/" - "The installation path for desktop files (this is appended to the CMAKE_INSTALL_PREFIX)")
MEGAGLEST_ICON_INSTALL_PATH - "share/pixmaps/" - "The installation path for icon files (this is appended to the CMAKE_INSTALL_PREFIX)")
CUSTOM_DATA_INSTALL_PATH - "'\\\"${CMAKE_INSTALL_PREFIX}/${MEGAGLEST_DATA_INSTALL_PATH}\\\"'" - "The FULL installation path for data files (this is build automatically by combining CMAKE_INSTALL_PREFIX and MEGAGLEST_DATA_INSTALL_PATH)")
- Fixed startup scripts for tools (remove bin folder)
- Fixed source and data tarball scripts to include required files (missed the proper main ini files)
- Debian can now easily package up megaglest and build deb files
- cmake system changes (after doing a make you may go: sudo make install to install in standard linux paths)
- updates to various pathing in order to more robustly support lhs
*WARNING, Linux dev's should run cmake like the following to avoid pathing issues as the default now is lhs paths:
cmake -DCMAKE_INSTALL_PREFIX= .. (notice the SPACE before the ..)