2015-02-12 00:02:22 +11:00
|
|
|
# Description: A fast compiler cache.
|
2012-06-14 23:22:38 +10:00
|
|
|
# URL: http://ccache.samba.org/
|
2014-11-10 23:25:50 +11:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2012-06-14 23:22:38 +10:00
|
|
|
# Packager: Tilman Sauerbeck, tilman at crux dot nu
|
2015-02-12 00:02:22 +11:00
|
|
|
# Depends on: zlib
|
2016-08-20 13:58:16 +10:00
|
|
|
# Optional: clang
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
name=ccache
|
2016-07-21 11:10:18 +10:00
|
|
|
version=3.2.7
|
2011-01-09 12:31:32 +01:00
|
|
|
release=1
|
|
|
|
source=(http://samba.org/ftp/$name/$name-$version.tar.xz)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
build() {
|
2012-06-14 23:22:38 +10:00
|
|
|
cd $name-$version
|
2006-02-23 15:26:10 +00:00
|
|
|
|
2015-11-04 12:34:50 +11:00
|
|
|
./configure --prefix=/usr
|
2012-06-14 23:22:38 +10:00
|
|
|
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
|
|
|
install -d $PKG/usr/lib/$name
|
2016-08-20 13:58:16 +10:00
|
|
|
prt-get isinst clang >/dev/null && local clang='clang clang++'
|
2015-02-12 00:02:22 +11:00
|
|
|
|
|
|
|
for c in $clang cc gcc g++ cpp c++; do
|
|
|
|
ln -s /usr/bin/ccache $PKG/usr/lib/ccache/$c
|
2012-06-14 23:22:38 +10:00
|
|
|
done
|
2006-02-23 15:26:10 +00:00
|
|
|
}
|