]> git.ipfire.org Git - people/pmueller/ipfire-3.x.git/blame_incremental - cmake/cmake.nm
cmake: Update to 3.14.5
[people/pmueller/ipfire-3.x.git] / cmake / cmake.nm
... / ...
CommitLineData
1###############################################################################
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
4###############################################################################
5
6name = cmake
7version = %{ver_maj}.%{ver_min}
8ver_maj = 3.14
9ver_min = 5
10release = 1
11
12groups = Development/Tools
13url = http://www.cmake.org
14license = BSD
15summary = Cross-platform make system.
16
17description
18 CMake is used to control the software compilation process using simple
19 platform and compiler independent configuration files. CMake generates
20 native makefiles and workspaces that can be used in the compiler
21 environment of your choice. CMake is quite sophisticated: it is possible
22 to support complex environments requiring system configuration, pre-processor
23 generation, code generation, and template instantiation.
24end
25
26source_dl = http://www.cmake.org/files/v%{ver_maj}/
27
28build
29 requires
30 bzip2-devel
31 expat-devel
32 gcc-c++
33 jsoncpp-devel >= 1.4.1
34 libarchive-devel >= 3.1.0
35 libcurl-devel
36 libuv-devel >= 1.10.0
37 ncurses-devel
38 openssl-devel
39 rhash-devel
40 xz-devel
41 zlib-devel
42 end
43
44 PARALLELISMFLAGS = -j4
45
46 build
47 mkdir -pv build
48 cd build && ../bootstrap \
49 --prefix=%{prefix} \
50 --datadir=/share/cmake \
51 --docdir=/share/doc/cmake-%{version} \
52 --mandir=/share/man \
53 --system-libs \
54 --parallel=$(/usr/bin/getconf _NPROCESSORS_ONLN)
55
56 make VERBOSE=1 %{PARALLELISMFLAGS}
57 end
58
59 # The following tests FAILED:
60 # 5 - kwsys.testSystemTools (Failed)
61 # 327 - RunCMake.FileAPI (Failed)
62 #test
63 # cd build && bin/ctest -V -E ModuleNotices
64 #end
65
66 install
67 cd build && make install DESTDIR=%{BUILDROOT}
68
69 # Install pakfire macro.
70 mkdir -p %{BUILDROOT}/usr/lib/pakfire/macros
71 install -v -m 644 %{DIR_SOURCE}/cmake.macro \
72 %{BUILDROOT}/usr/lib/pakfire/macros
73 end
74end
75
76packages
77 package %{name}
78
79 package %{name}-debuginfo
80 template DEBUGINFO
81 end
82end