The CMakeLists.txt set the CMAKE_INSTALL_PREFIX Parameter forcefully to
"/usr". This breaks any usage of the cmake DESTDIR parameter or similar
attempts to change the install directory via environment or command line
parameters.
This patch will hide the setting of CMAKE_INSTALL_PREFIX behind th
CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT flag to make the currently
forced "/usr" install directory in the project default value, but allow
users to overwrite the variable.
CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT is introduced in cmake 3.7.1
and since already cmake 3.10 is required, this change should not be
breaking in any way.
Different distributions use different names for curses (e.g. curses vs
ncurses). Also the previous hard-coded way didn't seem to work well with
compat package from ncurses 6 for ncurses 5 applications.