]>
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 |
c3996e92 MT |
7 | version = %{ver_maj}.%{ver_min} |
8 | ver_maj = 3.3 | |
9 | ver_min = 2 | |
166a2650 | 10 | release = 1 |
c8dfe941 | 11 | |
802ea3af MT |
12 | groups = Development/Tools |
13 | url = http://www.cmake.org | |
14 | license = BSD | |
15 | summary = Cross-platform make system. | |
8ffa5459 MT |
16 | |
17 | # Add some fixes to work with lto. | |
18 | CFLAGS += -Wl,-lpthread | |
19 | CXXFLAGS += -Wl,-lpthread | |
c8dfe941 | 20 | |
802ea3af | 21 | description |
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 | 28 | end |
c8dfe941 | 29 | |
c3996e92 | 30 | source_dl = http://www.cmake.org/files/v%{ver_maj}/ |
166a2650 | 31 | |
802ea3af MT |
32 | build |
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 |
76 | end | |
c8dfe941 | 77 | |
802ea3af MT |
78 | packages |
79 | package %{name} | |
1f9bc2f0 MT |
80 | |
81 | package %{name}-debuginfo | |
82 | template DEBUGINFO | |
83 | end | |
802ea3af | 84 | end |