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