2019-02-21 22:12:11 +11:00
|
|
|
# Description: Masquerade directory to use distcc with clang.
|
2021-02-17 20:54:33 +11:00
|
|
|
# URL: http://distcc.org/
|
2019-02-21 22:12:11 +11:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
|
|
# Depends on: clang distcc
|
|
|
|
|
|
|
|
name=clang-distcc-bindings
|
2022-05-08 21:49:43 +02:00
|
|
|
version=14
|
2020-05-02 14:11:33 +10:00
|
|
|
release=1
|
2019-02-21 22:12:11 +11:00
|
|
|
source=()
|
|
|
|
|
|
|
|
build() {
|
|
|
|
install -d $PKG/usr/lib/distcc
|
|
|
|
|
2021-02-17 20:54:33 +11:00
|
|
|
local clang0="$(clang --version | awk '/version/ { split($3,i,"."); print i[1]"."i[2] }')"
|
|
|
|
local clang1="${clang0:0:2}"
|
2019-02-21 22:12:11 +11:00
|
|
|
|
2019-11-28 23:08:40 +11:00
|
|
|
if [ -z $clang0 ]; then
|
2019-02-21 22:12:11 +11:00
|
|
|
echo 'Failed to find clang version'
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
ln -s ../../bin/distcc $PKG/usr/lib/distcc/clang
|
2019-11-28 23:08:40 +11:00
|
|
|
ln -s ../../bin/distcc $PKG/usr/lib/distcc/clang-$clang0
|
|
|
|
ln -s ../../bin/distcc $PKG/usr/lib/distcc/clang-$clang1
|
2019-02-21 22:12:11 +11:00
|
|
|
ln -s ../../bin/distcc $PKG/usr/lib/distcc/clang++
|
|
|
|
}
|