]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blob - cmake/cmake.nm
kernel: update to 4.12.10
[people/arne_f/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.3
9 ver_min = 2
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 # Add some fixes to work with lto.
18 CFLAGS += -Wl,-lpthread
19 CXXFLAGS += -Wl,-lpthread
20
21 description
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.
28 end
29
30 source_dl = http://www.cmake.org/files/v%{ver_maj}/
31
32 build
33 requires
34 bzip2-devel
35 expat-devel
36 gcc-c++
37 jsoncpp-devel
38 libarchive-devel
39 libcurl-devel
40 ncurses-devel
41 openssl-devel
42 xz-devel
43 zlib-devel
44 end
45
46 prepare_cmds
47 # Fixup permissions
48 find -name \*.h -o -name \*.cxx -print0 | xargs -0 chmod -x
49 end
50
51 build
52 mkdir -pv build
53 cd build && ../bootstrap \
54 --prefix=/usr \
55 --datadir=/share/cmake \
56 --docdir=/share/doc/cmake-%{version} \
57 --mandir=/share/man \
58 --system-libs \
59 --parallel=$(/usr/bin/getconf _NPROCESSORS_ONLN)
60
61 make VERBOSE=1 %{PARALLELISMFLAGS}
62 end
63
64 test
65 cd build && bin/ctest -V -E ModuleNotices
66 end
67
68 install
69 cd build && make install DESTDIR=%{BUILDROOT}
70
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
75 end
76 end
77
78 packages
79 package %{name}
80
81 package %{name}-debuginfo
82 template DEBUGINFO
83 end
84 end