# HG changeset patch # User Michael Schloh von Bennewitz # Date 1349375486 -7200 # Node ID b45328b0ff26ecc784e7659068c1343ac2b03327 # Parent c10fb90893b9216a8ed17b2e158a43a76ab196de Correct build configuration dependency on ncurses(3) and detection thereof. diff -r c10fb90893b9 -r b45328b0ff26 cmake/cmake.spec --- a/cmake/cmake.spec Thu Oct 04 20:30:05 2012 +0200 +++ b/cmake/cmake.spec Thu Oct 04 20:31:26 2012 +0200 @@ -45,18 +45,20 @@ # build information BuildPreReq: OpenPKG, openpkg >= 20100101, gcc, gcc::with_cxx = yes, make PreReq: OpenPKG, openpkg >= 20100101 +BuildPreReq: ncurses +PreReq: ncurses %description - CMake is an extensible, open-source system that manages the build + CMake is an extensible, opensource system that manages the build process in an operating system and compiler independent manner. - Unlike many cross-platform systems, CMake is designed to be used in + Unlike many cross platform systems, CMake is designed to be used in conjunction with the native build environment. Simple configuration files placed in each source directory (called CMakeLists.txt files) are used to generate standard build files (e.g., makefiles on Unix and projects/workspaces in Windows MSVC) which are used in the usual way. CMake can compile source code, create libraries, generate wrappers, and build executables in arbitrary combinations. CMake - supports in-place and out-of-place builds, and can therefore support + supports in place and out of place builds, and can therefore support multiple builds from a single source tree. CMake also supports static and dynamic library builds. Another nice feature of CMake is that it generates a cache file that is designed to be used with a @@ -75,6 +77,12 @@ %prep %setup -q -n cmake-%{V_dist} + %{l_shtool} subst \ + -e 's;FIND_FILE(CURSES_HAVE_NCURSES_H *ncurses.h);;' \ + -e 's;FIND_FILE(CURSES_HAVE_CURSES_H *curses.h);;' \ + -e 's; ncurses.h ncurses/ncurses.h; ncurses/ncurses.h;' \ + -e 's;\(CURSES_NCURSES_INCLUDE_PATH\) *\(curses.h\);\1 ncurses/\2;' \ + Modules/FindCurses.cmake %build CC="%{l_cc}" \