]>
Commit | Line | Data |
---|---|---|
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 |
6 | name = cmake |
7 | version = 2.8.4 | |
8 | release = 1 | |
c8dfe941 | 9 | |
802ea3af MT |
10 | groups = Development/Tools |
11 | url = http://www.cmake.org | |
12 | license = BSD | |
13 | summary = Cross-platform make system. | |
8ffa5459 MT |
14 | |
15 | # Add some fixes to work with lto. | |
16 | CFLAGS += -Wl,-lpthread | |
17 | CXXFLAGS += -Wl,-lpthread | |
c8dfe941 | 18 | |
802ea3af | 19 | description |
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 | 26 | end |
c8dfe941 | 27 | |
802ea3af MT |
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 | |
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 | |
64 | end | |
c8dfe941 | 65 | |
802ea3af MT |
66 | packages |
67 | package %{name} | |
68 | end | |
1f9bc2f0 MT |
69 | |
70 | package %{name}-debuginfo | |
71 | template DEBUGINFO | |
72 | end | |
802ea3af | 73 | end |