void-packages/srcpkgs/chroot-distcc/template
Jürgen Buchmüller 21e3328e3f distcc: can't distribute cpp; add cross-gcc
Distributing cpp is not possible (see man page example for
symbolic links), thus the symlink from cpp to distcc was wrong.

On the other hand it is very well possible to distribute cross
compiler jobs. For this to work the cross compiler must be
available on the slave machine(s) as well.
2015-09-05 18:46:52 +02:00

42 lines
1.3 KiB
Bash

# Template file for 'chroot-distcc'
pkgname=chroot-distcc
version=3.2rc1
revision=4
wrksrc="distcc-${version}"
bootstrap=yes
build_style=gnu-configure
configure_args="--with-included-popt --without-avahi --without-gnome
--without-gtk --disable-Werror ac_cv_path_PYTHON=/bin/false"
make_install_target="install-programs"
conflicts="distcc>=0"
short_desc="Distributed compilation for faster C/C++ builds -- for xbps-src use"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://code.google.com/p/distcc"
license="GPL-2"
distfiles="http://distcc.googlecode.com/files/distcc-${version}.tar.bz2"
checksum=311671e844625d7fdb18dd3d096cd855751cfe8de13827682bcb7beff9133b30
pre_configure() {
sed -i -e 's|^\(all: $(bin_PROGRAMS)\) pump include-server|\1|g' Makefile.in
}
post_install() {
local f x
# Remove useless files.
rm -f ${DESTDIR}/usr/bin/distccd
rm -rf ${DESTDIR}/etc
rm -rf ${DESTDIR}/usr/share
# gcc wrappers
vmkdir usr/lib/distcc/bin
for f in gcc cc c++ g++; do
ln -sfr ${DESTDIR}/usr/bin/distcc ${DESTDIR}/usr/lib/distcc/bin/${f}
done
# cross-gcc wrappers
for x in arm-linux-gnueabi arm-linux-gnueabihf armv7l-linux-gnueabihf \
arm-linux-musleabihf armv7l-linux-musleabihf; do
for f in gcc cc c++ g++; do
ln -sfr ${DESTDIR}/usr/bin/distcc ${DESTDIR}/usr/lib/distcc/bin/${x}-${f}
done
done
}