]>
Commit | Line | Data |
---|---|---|
9efad0d0 MT |
1 | ############################################################################### |
2 | # # | |
3 | # IPFire.org - A linux based firewall # | |
4 | # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt # | |
5 | # # | |
6 | # This program is free software: you can redistribute it and/or modify # | |
7 | # it under the terms of the GNU General Public License as published by # | |
8 | # the Free Software Foundation, either version 3 of the License, or # | |
9 | # (at your option) any later version. # | |
10 | # # | |
11 | # This program is distributed in the hope that it will be useful, # | |
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of # | |
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # | |
14 | # GNU General Public License for more details. # | |
15 | # # | |
16 | # You should have received a copy of the GNU General Public License # | |
17 | # along with this program. If not, see <http://www.gnu.org/licenses/>. # | |
18 | # # | |
19 | ############################################################################### | |
20 | ||
21 | ############################################################################### | |
22 | # Definitions | |
23 | ############################################################################### | |
24 | ||
25 | include $(PKGROOT)/Include | |
26 | ||
27 | PKG_NAME = ccache | |
7ac136fb | 28 | PKG_VER = 3.1.3 |
9efad0d0 MT |
29 | PKG_REL = 0 |
30 | ||
31 | PKG_MAINTAINER = | |
32 | PKG_GROUP = Development/Compilers | |
33 | PKG_URL = http://ccache.samba.org/ | |
34 | PKG_LICENSE = GPLv2+ | |
35 | PKG_SUMMARY = C/C++ compiler cache. | |
36 | ||
f91bb879 | 37 | PKG_BUILD_DEPS+= perl zlib-devel |
fce85abf | 38 | |
9efad0d0 MT |
39 | define PKG_DESCRIPTION |
40 | ccache is a compiler cache. It acts as a caching pre-processor to \ | |
41 | C/C++ compilers, using the -E compiler switch and a hash to detect \ | |
42 | when a compilation can be satisfied from cache. This often results in \ | |
43 | a 5 to 10 times speedup in common compilations. | |
44 | endef | |
45 | ||
16416892 | 46 | PKG_TARBALL = $(THISAPP).tar.xz |
9efad0d0 | 47 | |
590c45fb SS |
48 | # Sets ccache max size up to 2 GB |
49 | CFLAGS += -DDEFAULT_MAXSIZE=2097152 | |
50 | ||
698742c3 | 51 | CONFIGURE_OPTIONS += \ |
16416892 MT |
52 | --mandir=/usr/share/man |
53 | ||
54 | define STAGE_PREPARE_CMDS | |
55 | # Disable pch test that fails | |
56 | cd $(DIR_APP) && sed -e "s/^pch_suite.*/& return 0/" -i test.sh | |
57 | endef | |
9efad0d0 | 58 | |
70dc7b28 MT |
59 | define STAGE_TEST |
60 | cd $(DIR_APP) && make check | |
fce85abf | 61 | endef |
9efad0d0 | 62 | |
698742c3 | 63 | define STAGE_INSTALL_CMDS |
9efad0d0 | 64 | mkdir -pv $(BUILDROOT)/usr/ccache/bin |
5a945523 | 65 | for i in gcc g++ cc c++; do \ |
9efad0d0 MT |
66 | ln -svf ../../bin/ccache $(BUILDROOT)/usr/ccache/bin/$${i}; \ |
67 | ln -svf ../../bin/ccache $(BUILDROOT)/usr/ccache/bin/$(TARGET)-$${i}; \ | |
68 | done | |
69 | endef |