]> git.ipfire.org Git - ipfire-3.x.git/blame - cmake/cmake.nm
libseccomp: New package
[ipfire-3.x.git] / cmake / cmake.nm
CommitLineData
c8dfe941 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
c8dfe941
MT
4###############################################################################
5
802ea3af 6name = cmake
c3996e92 7version = %{ver_maj}.%{ver_min}
4fef5f19
MT
8ver_maj = 3.14
9ver_min = 1
166a2650 10release = 1
c8dfe941 11
802ea3af
MT
12groups = Development/Tools
13url = http://www.cmake.org
14license = BSD
15summary = Cross-platform make system.
8ffa5459 16
802ea3af 17description
c8dfe941
MT
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.
802ea3af 24end
c8dfe941 25
c3996e92 26source_dl = http://www.cmake.org/files/v%{ver_maj}/
166a2650 27
802ea3af
MT
28build
29 requires
c3996e92 30 bzip2-devel
802ea3af
MT
31 expat-devel
32 gcc-c++
4fef5f19
MT
33 jsoncpp-devel >= 1.4.1
34 libarchive-devel >= 3.1.0
802ea3af 35 libcurl-devel
4fef5f19 36 libuv-devel >= 1.10.0
802ea3af
MT
37 ncurses-devel
38 openssl-devel
4fef5f19 39 rhash-devel
c3996e92 40 xz-devel
802ea3af
MT
41 zlib-devel
42 end
c8dfe941 43
4fef5f19 44 PARALLELISMFLAGS = -j4
c8dfe941 45
802ea3af
MT
46 build
47 mkdir -pv build
48 cd build && ../bootstrap \
4fef5f19 49 --prefix=%{prefix} \
c8dfe941 50 --datadir=/share/cmake \
802ea3af 51 --docdir=/share/doc/cmake-%{version} \
c8dfe941
MT
52 --mandir=/share/man \
53 --system-libs \
802ea3af
MT
54 --parallel=$(/usr/bin/getconf _NPROCESSORS_ONLN)
55
56 make VERBOSE=1 %{PARALLELISMFLAGS}
57 end
c8dfe941 58
4fef5f19
MT
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
c8dfe941 65
802ea3af
MT
66 install
67 cd build && make install DESTDIR=%{BUILDROOT}
deee147b
MT
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
802ea3af
MT
73 end
74end
c8dfe941 75
802ea3af
MT
76packages
77 package %{name}
1f9bc2f0
MT
78
79 package %{name}-debuginfo
80 template DEBUGINFO
81 end
802ea3af 82end