- set some install defaults for posix systems

This commit is contained in:
Rachael Alexanderson 2020-12-27 05:28:47 -05:00
parent 220283d1ec
commit 38faefa663
2 changed files with 6 additions and 3 deletions

View file

@ -99,7 +99,7 @@ function( add_pk3 PK3_NAME PK3_DIR )
if( WIN32 )
set( INSTALL_PK3_PATH . CACHE STRING "Directory where engine data will be placed during install." )
else()
set( INSTALL_PK3_PATH share/games/doom CACHE STRING "Directory where engine data will be placed during install." )
set( INSTALL_PK3_PATH share/games/raze CACHE STRING "Directory where engine data will be placed during install." )
endif()
install(FILES "${PROJECT_BINARY_DIR}/${PK3_NAME}"
DESTINATION ${INSTALL_PK3_PATH}

View file

@ -96,9 +96,12 @@ FGameConfigFile::FGameConfigFile ()
SetValueForKey ("Path", "$PROGDIR/*", true);
#else
SetValueForKey ("Path", "$HOME/" GAME_DIR "/*", true);
// Arch Linux likes them in /usr/share/doom
// Debian likes them in /usr/share/games/doom
// Arch Linux likes them in /usr/share/raze
// Debian likes them in /usr/share/games/raze
// I assume other distributions don't do anything radically different
SetValueForKey ("Path", "/opt/raze", true);
SetValueForKey ("Path", "/usr/share/games/raze", true);
SetValueForKey ("Path", "/usr/local/share/games/raze", true);
SetValueForKey ("Path", "/usr/share/games/jfduke3d", true);
SetValueForKey ("Path", "/usr/local/share/games/jfduke3d", true);
SetValueForKey ("Path", "/usr/share/games/eduke32", true);