]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blame - ccache/ccache.nm
xfsprogs: Update to 4.9.0
[people/arne_f/ipfire-3.x.git] / ccache / ccache.nm
CommitLineData
9efad0d0 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
9efad0d0
MT
4###############################################################################
5
802ea3af 6name = ccache
a20152c4 7version = 3.3.3
e0f5e371 8release = 1
9efad0d0 9
802ea3af
MT
10groups = Development/Compilers
11url = http://ccache.samba.org/
12license = GPLv2+
13summary = C/C++ compiler cache.
fce85abf 14
802ea3af
MT
15description
16 ccache is a compiler cache. It acts as a caching pre-processor to
17 C/C++ compilers, using the -E compiler switch and a hash to detect
18 when a compilation can be satisfied from cache. This often results in
9efad0d0 19 a 5 to 10 times speedup in common compilations.
802ea3af 20end
9efad0d0 21
a20152c4 22source_dl = https://www.samba.org/ftp/ccache/
38736b09 23sources = %{thisapp}.tar.xz
9efad0d0 24
590c45fb
SS
25# Sets ccache max size up to 2 GB
26CFLAGS += -DDEFAULT_MAXSIZE=2097152
27
802ea3af
MT
28build
29 requires
30 perl
31 zlib-devel
32 end
33
34 CCACHE_CACHE = /var/cache/ccache
35
36 configure_options += \
37 --mandir=/usr/share/man
38
39 prepare_cmds
40 # Disable pch test that fails
41 sed -e "s/^pch_suite.*/& return 0/" -i test.sh
e0f5e371
MT
42
43 # Remove shipped zlib
44 rm -rf zlib
802ea3af 45 end
13f2619e 46
802ea3af 47 test
392abd68
MT
48 # The test suite fails with GCC 6
49 : #SHELL=/bin/bash make check
802ea3af 50 end
16416892 51
802ea3af
MT
52 install_cmds
53 CCACHE_PLATFORM_TARGET=$(echo %{DISTRO_MACHINE} | sed -e "s/-gnu//g")
9efad0d0 54
8b7867f2 55 mkdir -pv %{BUILDROOT}%{libdir}/ccache
802ea3af 56 for i in gcc g++ cc c++; do \
8b7867f2
MT
57 ln -svf ../../bin/ccache %{BUILDROOT}%{libdir}/ccache/${i}; \
58 ln -svf ../../bin/ccache %{BUILDROOT}%{libdir}/ccache/${CCACHE_PLATFORM_TARGET}-${i}; \
802ea3af 59 done
9efad0d0 60
802ea3af 61 mkdir -pv %{BUILDROOT}/etc/profile.d
8b7867f2 62 sed -e "s|@LIBDIR@|%{libdir}|g" -e "s|@CACHEDIR@|%{CCACHE_CACHE}|g" \
802ea3af 63 < %{DIR_SOURCE}/ccache.sh > %{BUILDROOT}/etc/profile.d/ccache.sh
13f2619e 64
802ea3af
MT
65 mkdir -pv -m770 %{BUILDROOT}/%{CCACHE_CACHE}
66 end
67end
13f2619e 68
802ea3af
MT
69packages
70 package %{name}
1f9bc2f0
MT
71
72 package %{name}-debuginfo
73 template DEBUGINFO
74 end
802ea3af 75end