2013-02-01 11:03:15 +01:00
|
|
|
# Template file for 'chroot-distcc'
|
|
|
|
pkgname=chroot-distcc
|
|
|
|
version=3.2rc1
|
2015-09-05 17:58:50 +02:00
|
|
|
revision=4
|
2013-02-01 11:03:15 +01:00
|
|
|
wrksrc="distcc-${version}"
|
2014-01-01 16:10:11 +01:00
|
|
|
bootstrap=yes
|
2014-01-08 10:55:31 +01:00
|
|
|
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"
|
2014-01-01 16:10:11 +01:00
|
|
|
conflicts="distcc>=0"
|
2013-02-01 11:03:15 +01:00
|
|
|
short_desc="Distributed compilation for faster C/C++ builds -- for xbps-src use"
|
2015-04-10 09:16:30 +02:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2013-02-01 11:03:15 +01:00
|
|
|
homepage="http://code.google.com/p/distcc"
|
|
|
|
license="GPL-2"
|
|
|
|
distfiles="http://distcc.googlecode.com/files/distcc-${version}.tar.bz2"
|
|
|
|
checksum=311671e844625d7fdb18dd3d096cd855751cfe8de13827682bcb7beff9133b30
|
|
|
|
|
2014-01-08 10:55:31 +01:00
|
|
|
pre_configure() {
|
2013-02-01 11:03:15 +01:00
|
|
|
sed -i -e 's|^\(all: $(bin_PROGRAMS)\) pump include-server|\1|g' Makefile.in
|
|
|
|
}
|
|
|
|
|
2014-01-08 10:55:31 +01:00
|
|
|
post_install() {
|
2015-09-05 17:58:50 +02:00
|
|
|
local f x
|
2013-02-01 11:03:15 +01:00
|
|
|
# Remove useless files.
|
|
|
|
rm -f ${DESTDIR}/usr/bin/distccd
|
|
|
|
rm -rf ${DESTDIR}/etc
|
|
|
|
rm -rf ${DESTDIR}/usr/share
|
|
|
|
|
2015-09-05 17:58:50 +02:00
|
|
|
# gcc wrappers
|
2013-02-01 11:03:15 +01:00
|
|
|
vmkdir usr/lib/distcc/bin
|
2015-09-05 17:58:50 +02:00
|
|
|
for f in gcc cc c++ g++; do
|
2013-02-01 11:03:15 +01:00
|
|
|
ln -sfr ${DESTDIR}/usr/bin/distcc ${DESTDIR}/usr/lib/distcc/bin/${f}
|
|
|
|
done
|
2015-09-05 17:58:50 +02:00
|
|
|
# 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
|
2013-02-01 11:03:15 +01:00
|
|
|
}
|