]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - cmake/cmake.nm
c037f8737b00c28df7fcb3ec08126d4cf52f5f85
[people/ms/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 = 2.8.4
8 release = 2
9
10 groups = Development/Tools
11 url = http://www.cmake.org
12 license = BSD
13 summary = Cross-platform make system.
14
15 # Add some fixes to work with lto.
16 CFLAGS += -Wl,-lpthread
17 CXXFLAGS += -Wl,-lpthread
18
19 description
20 CMake is used to control the software compilation process using simple \
21 platform and compiler independent configuration files. CMake generates \
22 native makefiles and workspaces that can be used in the compiler \
23 environment of your choice. CMake is quite sophisticated: it is possible \
24 to support complex environments requiring system configuration, pre-processor \
25 generation, code generation, and template instantiation.
26 end
27
28 build
29 requires
30 expat-devel
31 gcc-c++
32 libarchive-devel
33 libcurl-devel
34 ncurses-devel
35 openssl-devel
36 zlib-devel
37 end
38
39 prepare_cmds
40 # Fixup permissions
41 find -name \*.h -o -name \*.cxx -print0 | xargs -0 chmod -x
42 end
43
44 build
45 mkdir -pv build
46 cd build && ../bootstrap \
47 --prefix=/usr \
48 --datadir=/share/cmake \
49 --docdir=/share/doc/cmake-%{version} \
50 --mandir=/share/man \
51 --system-libs \
52 --parallel=$(/usr/bin/getconf _NPROCESSORS_ONLN)
53
54 make VERBOSE=1 %{PARALLELISMFLAGS}
55 end
56
57 test
58 cd build && bin/ctest -V -E ModuleNotices
59 end
60
61 install
62 cd build && make install DESTDIR=%{BUILDROOT}
63
64 # Install pakfire macro.
65 mkdir -p %{BUILDROOT}/usr/lib/pakfire/macros
66 install -v -m 644 %{DIR_SOURCE}/cmake.macro \
67 %{BUILDROOT}/usr/lib/pakfire/macros
68 end
69 end
70
71 packages
72 package %{name}
73
74 package %{name}-debuginfo
75 template DEBUGINFO
76 end
77 end