]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/blob - cmake/cmake.nm
python-lxml: Update to 4.3.4
[people/stevee/ipfire-3.x.git] / cmake / cmake.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = cmake
7 version = %{ver_maj}.%{ver_min}
8 ver_maj = 3.14
9 ver_min = 1
10 release = 1
11
12 groups = Development/Tools
13 url = http://www.cmake.org
14 license = BSD
15 summary = Cross-platform make system.
16
17 description
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.
24 end
25
26 source_dl = http://www.cmake.org/files/v%{ver_maj}/
27
28 build
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
74 end
75
76 packages
77 package %{name}
78
79 package %{name}-debuginfo
80 template DEBUGINFO
81 end
82 end