]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blame - pkgs/core/ccache/ccache.nm
Merge branch 'master' of ssh://git.ipfire.org/pub/git/ipfire-3.x
[people/arne_f/ipfire-3.x.git] / pkgs / core / ccache / ccache.nm
CommitLineData
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
25include $(PKGROOT)/Include
26
27PKG_NAME = ccache
7ac136fb 28PKG_VER = 3.1.3
9efad0d0
MT
29PKG_REL = 0
30
31PKG_MAINTAINER =
32PKG_GROUP = Development/Compilers
33PKG_URL = http://ccache.samba.org/
34PKG_LICENSE = GPLv2+
35PKG_SUMMARY = C/C++ compiler cache.
36
f91bb879 37PKG_BUILD_DEPS+= perl zlib-devel
fce85abf 38
9efad0d0
MT
39define 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.
44endef
45
16416892 46PKG_TARBALL = $(THISAPP).tar.xz
9efad0d0 47
590c45fb
SS
48# Sets ccache max size up to 2 GB
49CFLAGS += -DDEFAULT_MAXSIZE=2097152
50
698742c3 51CONFIGURE_OPTIONS += \
16416892
MT
52 --mandir=/usr/share/man
53
54define STAGE_PREPARE_CMDS
55 # Disable pch test that fails
56 cd $(DIR_APP) && sed -e "s/^pch_suite.*/& return 0/" -i test.sh
57endef
9efad0d0 58
70dc7b28
MT
59define STAGE_TEST
60 cd $(DIR_APP) && make check
fce85abf 61endef
9efad0d0 62
698742c3 63define 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
69endef