Thu, 04 Oct 2012 20:31:26 +0200
Correct build configuration dependency on ncurses(3) and detection thereof.
cmake/cmake.spec | file | annotate | diff | comparison | revisions |
1.1 --- a/cmake/cmake.spec Thu Oct 04 20:30:05 2012 +0200 1.2 +++ b/cmake/cmake.spec Thu Oct 04 20:31:26 2012 +0200 1.3 @@ -45,18 +45,20 @@ 1.4 # build information 1.5 BuildPreReq: OpenPKG, openpkg >= 20100101, gcc, gcc::with_cxx = yes, make 1.6 PreReq: OpenPKG, openpkg >= 20100101 1.7 +BuildPreReq: ncurses 1.8 +PreReq: ncurses 1.9 1.10 %description 1.11 - CMake is an extensible, open-source system that manages the build 1.12 + CMake is an extensible, opensource system that manages the build 1.13 process in an operating system and compiler independent manner. 1.14 - Unlike many cross-platform systems, CMake is designed to be used in 1.15 + Unlike many cross platform systems, CMake is designed to be used in 1.16 conjunction with the native build environment. Simple configuration 1.17 files placed in each source directory (called CMakeLists.txt files) 1.18 are used to generate standard build files (e.g., makefiles on Unix 1.19 and projects/workspaces in Windows MSVC) which are used in the usual 1.20 way. CMake can compile source code, create libraries, generate 1.21 wrappers, and build executables in arbitrary combinations. CMake 1.22 - supports in-place and out-of-place builds, and can therefore support 1.23 + supports in place and out of place builds, and can therefore support 1.24 multiple builds from a single source tree. CMake also supports 1.25 static and dynamic library builds. Another nice feature of CMake is 1.26 that it generates a cache file that is designed to be used with a 1.27 @@ -75,6 +77,12 @@ 1.28 1.29 %prep 1.30 %setup -q -n cmake-%{V_dist} 1.31 + %{l_shtool} subst \ 1.32 + -e 's;FIND_FILE(CURSES_HAVE_NCURSES_H *ncurses.h);;' \ 1.33 + -e 's;FIND_FILE(CURSES_HAVE_CURSES_H *curses.h);;' \ 1.34 + -e 's; ncurses.h ncurses/ncurses.h; ncurses/ncurses.h;' \ 1.35 + -e 's;\(CURSES_NCURSES_INCLUDE_PATH\) *\(curses.h\);\1 ncurses/\2;' \ 1.36 + Modules/FindCurses.cmake 1.37 1.38 %build 1.39 CC="%{l_cc}" \