cmake/cmake.spec

changeset 743
51daf2b49ad7
parent 520
35bba3448acd
equal deleted inserted replaced
1:5323f972154c 2:9cd58efb2bf9
43 Source0: http://www.cmake.org/files/v%{V_major}/cmake-%{V_dist}.tar.gz 43 Source0: http://www.cmake.org/files/v%{V_major}/cmake-%{V_dist}.tar.gz
44 44
45 # build information 45 # build information
46 BuildPreReq: OpenPKG, openpkg >= 20100101, gcc, gcc::with_cxx = yes, make 46 BuildPreReq: OpenPKG, openpkg >= 20100101, gcc, gcc::with_cxx = yes, make
47 PreReq: OpenPKG, openpkg >= 20100101 47 PreReq: OpenPKG, openpkg >= 20100101
48 BuildPreReq: ncurses
49 PreReq: ncurses
48 50
49 %description 51 %description
50 CMake is an extensible, open-source system that manages the build 52 CMake is an extensible, opensource system that manages the build
51 process in an operating system and compiler independent manner. 53 process in an operating system and compiler independent manner.
52 Unlike many cross-platform systems, CMake is designed to be used in 54 Unlike many cross platform systems, CMake is designed to be used in
53 conjunction with the native build environment. Simple configuration 55 conjunction with the native build environment. Simple configuration
54 files placed in each source directory (called CMakeLists.txt files) 56 files placed in each source directory (called CMakeLists.txt files)
55 are used to generate standard build files (e.g., makefiles on Unix 57 are used to generate standard build files (e.g., makefiles on Unix
56 and projects/workspaces in Windows MSVC) which are used in the usual 58 and projects/workspaces in Windows MSVC) which are used in the usual
57 way. CMake can compile source code, create libraries, generate 59 way. CMake can compile source code, create libraries, generate
58 wrappers, and build executables in arbitrary combinations. CMake 60 wrappers, and build executables in arbitrary combinations. CMake
59 supports in-place and out-of-place builds, and can therefore support 61 supports in place and out of place builds, and can therefore support
60 multiple builds from a single source tree. CMake also supports 62 multiple builds from a single source tree. CMake also supports
61 static and dynamic library builds. Another nice feature of CMake is 63 static and dynamic library builds. Another nice feature of CMake is
62 that it generates a cache file that is designed to be used with a 64 that it generates a cache file that is designed to be used with a
63 graphical editor. For example, when CMake runs, it locates include 65 graphical editor. For example, when CMake runs, it locates include
64 files, libraries, and executable, and may encounter optional build 66 files, libraries, and executable, and may encounter optional build
73 regex = cmake-(__VER__)\.tar\.gz 75 regex = cmake-(__VER__)\.tar\.gz
74 } 76 }
75 77
76 %prep 78 %prep
77 %setup -q -n cmake-%{V_dist} 79 %setup -q -n cmake-%{V_dist}
80 %{l_shtool} subst \
81 -e 's;FIND_FILE(CURSES_HAVE_NCURSES_H *ncurses.h);;' \
82 -e 's;FIND_FILE(CURSES_HAVE_CURSES_H *curses.h);;' \
83 -e 's; ncurses.h ncurses/ncurses.h; ncurses/ncurses.h;' \
84 -e 's;\(CURSES_NCURSES_INCLUDE_PATH\) *\(curses.h\);\1 ncurses/\2;' \
85 Modules/FindCurses.cmake
78 86
79 %build 87 %build
80 CC="%{l_cc}" \ 88 CC="%{l_cc}" \
81 CXX="%{l_cxx}" \ 89 CXX="%{l_cxx}" \
82 CFLAGS="%{l_cflags -O}" \ 90 CFLAGS="%{l_cflags -O}" \

mercurial