2013-02-01 10:03:15 +00:00
|
|
|
# Template file for 'chroot-distcc'
|
|
|
|
pkgname=chroot-distcc
|
|
|
|
version=3.2rc1
|
|
|
|
revision=1
|
|
|
|
wrksrc="distcc-${version}"
|
|
|
|
short_desc="Distributed compilation for faster C/C++ builds -- for xbps-src use"
|
|
|
|
maintainer="pancake <pancake@nopcode.org>"
|
|
|
|
homepage="http://code.google.com/p/distcc"
|
|
|
|
license="GPL-2"
|
|
|
|
distfiles="http://distcc.googlecode.com/files/distcc-${version}.tar.bz2"
|
|
|
|
checksum=311671e844625d7fdb18dd3d096cd855751cfe8de13827682bcb7beff9133b30
|
|
|
|
|
2013-02-02 16:24:24 +00:00
|
|
|
bootstrap=yes
|
2013-02-01 10:03:15 +00:00
|
|
|
|
|
|
|
do_configure() {
|
|
|
|
sed -i -e 's|^\(all: $(bin_PROGRAMS)\) pump include-server|\1|g' Makefile.in
|
|
|
|
|
2013-05-26 08:41:55 +00:00
|
|
|
./configure ${configure_args} --with-included-popt \
|
2013-02-01 10:03:15 +00:00
|
|
|
--without-avahi --without-gnome \
|
|
|
|
--without-gtk --disable-Werror \
|
|
|
|
ac_cv_path_PYTHON=/bin/false
|
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
2013-05-26 08:41:55 +00:00
|
|
|
make ${make_build_args}
|
2013-02-01 10:03:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
make DESTDIR=${DESTDIR} install-programs
|
|
|
|
|
|
|
|
# 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++ cpp g++; do
|
|
|
|
ln -sfr ${DESTDIR}/usr/bin/distcc ${DESTDIR}/usr/lib/distcc/bin/${f}
|
|
|
|
done
|
|
|
|
}
|
2013-04-12 06:55:23 +00:00
|
|
|
|
|
|
|
chroot-distcc_package() {
|
|
|
|
conflicts="distcc>=0"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr
|
|
|
|
}
|
|
|
|
}
|