2015-02-11 14:02:22 +01:00
|
|
|
# Description: A fast compiler cache.
|
2017-01-26 08:51:51 +01:00
|
|
|
# URL: https://ccache.samba.org/
|
2014-11-10 13:25:50 +01:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2015-02-11 14:02:22 +01:00
|
|
|
# Depends on: zlib
|
2018-09-07 11:03:12 +02:00
|
|
|
# Optional: clang-ccache-bindings
|
2006-02-23 16:26:10 +01:00
|
|
|
|
|
|
|
name=ccache
|
2018-09-07 11:03:12 +02:00
|
|
|
version=3.4.3
|
2011-01-09 12:31:32 +01:00
|
|
|
release=1
|
2017-01-26 08:51:51 +01:00
|
|
|
source=(https://samba.org/ftp/$name/$name-$version.tar.xz)
|
2006-02-23 16:26:10 +01:00
|
|
|
|
|
|
|
build() {
|
2012-06-14 15:22:38 +02:00
|
|
|
cd $name-$version
|
2006-02-23 16:26:10 +01:00
|
|
|
|
2015-11-04 02:34:50 +01:00
|
|
|
./configure --prefix=/usr
|
2012-06-14 15:22:38 +02:00
|
|
|
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
2018-09-07 11:03:12 +02:00
|
|
|
install -d $PKG/usr/lib/ccache
|
2015-02-11 14:02:22 +01:00
|
|
|
|
2018-09-07 11:03:12 +02:00
|
|
|
for c in cc gcc g++ cpp c++; do
|
2015-02-11 14:02:22 +01:00
|
|
|
ln -s /usr/bin/ccache $PKG/usr/lib/ccache/$c
|
2012-06-14 15:22:38 +02:00
|
|
|
done
|
2006-02-23 16:26:10 +01:00
|
|
|
}
|