]>
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 | 6 | name = cmake |
166a2650 MT |
7 | version = 3.0.2 |
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 | |
166a2650 MT |
28 | source_dl = http://www.cmake.org/files/v3.0/ |
29 | ||
802ea3af MT |
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 | |
c8dfe941 | 40 | |
802ea3af MT |
41 | prepare_cmds |
42 | # Fixup permissions | |
43 | find -name \*.h -o -name \*.cxx -print0 | xargs -0 chmod -x | |
44 | end | |
c8dfe941 | 45 | |
802ea3af MT |
46 | build |
47 | mkdir -pv build | |
48 | cd build && ../bootstrap \ | |
c8dfe941 MT |
49 | --prefix=/usr \ |
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 | |
802ea3af MT |
59 | test |
60 | cd build && bin/ctest -V -E ModuleNotices | |
61 | end | |
c8dfe941 | 62 | |
802ea3af MT |
63 | install |
64 | cd build && make install DESTDIR=%{BUILDROOT} | |
deee147b MT |
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 | |
802ea3af MT |
70 | end |
71 | end | |
c8dfe941 | 72 | |
802ea3af MT |
73 | packages |
74 | package %{name} | |
1f9bc2f0 MT |
75 | |
76 | package %{name}-debuginfo | |
77 | template DEBUGINFO | |
78 | end | |
802ea3af | 79 | end |