]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blame - cmake/cmake.nm
Merge remote-tracking branch 'arne_f/automake'
[people/amarx/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
MT
6name = cmake
7version = 2.8.4
8release = 1
c8dfe941 9
802ea3af
MT
10groups = Development/Tools
11url = http://www.cmake.org
12license = BSD
13summary = Cross-platform make system.
8ffa5459
MT
14
15# Add some fixes to work with lto.
16CFLAGS += -Wl,-lpthread
17CXXFLAGS += -Wl,-lpthread
c8dfe941 18
802ea3af 19description
c8dfe941
MT
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.
802ea3af 26end
c8dfe941 27
802ea3af
MT
28build
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
c8dfe941 38
802ea3af
MT
39 prepare_cmds
40 # Fixup permissions
41 find -name \*.h -o -name \*.cxx -print0 | xargs -0 chmod -x
42 end
c8dfe941 43
802ea3af
MT
44 build
45 mkdir -pv build
46 cd build && ../bootstrap \
c8dfe941
MT
47 --prefix=/usr \
48 --datadir=/share/cmake \
802ea3af 49 --docdir=/share/doc/cmake-%{version} \
c8dfe941
MT
50 --mandir=/share/man \
51 --system-libs \
802ea3af
MT
52 --parallel=$(/usr/bin/getconf _NPROCESSORS_ONLN)
53
54 make VERBOSE=1 %{PARALLELISMFLAGS}
55 end
c8dfe941 56
802ea3af
MT
57 test
58 cd build && bin/ctest -V -E ModuleNotices
59 end
c8dfe941 60
802ea3af
MT
61 install
62 cd build && make install DESTDIR=%{BUILDROOT}
63 end
64end
c8dfe941 65
802ea3af
MT
66packages
67 package %{name}
68 end
1f9bc2f0
MT
69
70 package %{name}-debuginfo
71 template DEBUGINFO
72 end
802ea3af 73end