1
0
forked from ports/opt

27 lines
775 B
Plaintext
Raw Normal View History

2019-02-21 22:12:11 +11:00
# Description: Masquerade directory to use distcc with clang.
# URL: http://gcc.gnu.org/
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: clang distcc
name=clang-distcc-bindings
2020-05-02 14:11:33 +10:00
version=10
release=1
2019-02-21 22:12:11 +11:00
source=()
build() {
install -d $PKG/usr/lib/distcc
local clang0="$(clang++ -v 2>&1 | grep version | sed 's/.*version \([0-9]*\).[0-9]*.[0-9]* .*/\1/g')"
local clang1="$(clang++ -v 2>&1 | grep version | sed 's/.*version \([0-9]*.[0-9]*\).[0-9]* .*/\1/g')"
2019-02-21 22:12:11 +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
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++
}