]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - cmake/cmake.nm
ppp: Re-add ifname patch
[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 = 3.0.2
8 release = 1
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 source_dl = http://www.cmake.org/files/v3.0/
29
30 build
31 requires
32 expat-devel
33 gcc-c++
34 libarchive-devel
35 libcurl-devel
36 ncurses-devel
37 openssl-devel
38 zlib-devel
39 end
40
41 prepare_cmds
42 # Fixup permissions
43 find -name \*.h -o -name \*.cxx -print0 | xargs -0 chmod -x
44 end
45
46 build
47 mkdir -pv build
48 cd build && ../bootstrap \
49 --prefix=/usr \
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 test
60 cd build && bin/ctest -V -E ModuleNotices
61 end
62
63 install
64 cd build && make install DESTDIR=%{BUILDROOT}
65
66 # Install pakfire macro.
67 mkdir -p %{BUILDROOT}/usr/lib/pakfire/macros
68 install -v -m 644 %{DIR_SOURCE}/cmake.macro \
69 %{BUILDROOT}/usr/lib/pakfire/macros
70 end
71 end
72
73 packages
74 package %{name}
75
76 package %{name}-debuginfo
77 template DEBUGINFO
78 end
79 end