1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
7 version = %{ver_maj}.%{ver_min}
12 groups = Development/Tools
13 url = http://www.cmake.org
15 summary = Cross-platform make system.
17 # Add some fixes to work with lto.
18 CFLAGS += -Wl,-lpthread
19 CXXFLAGS += -Wl,-lpthread
22 CMake is used to control the software compilation process using simple \
23 platform and compiler independent configuration files. CMake generates \
24 native makefiles and workspaces that can be used in the compiler \
25 environment of your choice. CMake is quite sophisticated: it is possible \
26 to support complex environments requiring system configuration, pre-processor \
27 generation, code generation, and template instantiation.
30 source_dl = http://www.cmake.org/files/v%{ver_maj}/
48 find -name \*.h -o -name \*.cxx -print0 | xargs -0 chmod -x
53 cd build && ../bootstrap \
55 --datadir=/share/cmake \
56 --docdir=/share/doc/cmake-%{version} \
59 --parallel=$(/usr/bin/getconf _NPROCESSORS_ONLN)
61 make VERBOSE=1 %{PARALLELISMFLAGS}
65 cd build && bin/ctest -V -E ModuleNotices
69 cd build && make install DESTDIR=%{BUILDROOT}
71 # Install pakfire macro.
72 mkdir -p %{BUILDROOT}/usr/lib/pakfire/macros
73 install -v -m 644 %{DIR_SOURCE}/cmake.macro \
74 %{BUILDROOT}/usr/lib/pakfire/macros
81 package %{name}-debuginfo