2013-01-09 16:45:56 +01:00
|
|
|
# Template file for 'distcc'
|
|
|
|
pkgname=distcc
|
|
|
|
version=3.2rc1
|
2015-05-31 12:48:50 +02:00
|
|
|
revision=12
|
2014-09-30 08:05:00 +02:00
|
|
|
build_options="systemd"
|
2013-01-09 16:45:56 +01:00
|
|
|
build_style=gnu-configure
|
2014-05-24 11:01:14 +02:00
|
|
|
configure_args="--disable-Werror --with-gtk"
|
|
|
|
hostmakedepends="pkg-config"
|
|
|
|
makedepends="python-devel popt-devel avahi-libs-devel gtk+-devel"
|
2014-01-01 16:10:11 +01:00
|
|
|
conflicts="chroot-distcc>=0"
|
|
|
|
conf_files="
|
|
|
|
/etc/distcc/hosts
|
|
|
|
/etc/distcc/clients.allow"
|
2013-01-09 16:45:56 +01:00
|
|
|
short_desc="Distributed compilation for faster C/C++ builds"
|
2015-04-10 09:16:30 +02:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2013-01-09 16:45:56 +01:00
|
|
|
homepage="http://code.google.com/p/distcc"
|
|
|
|
license="GPL-2"
|
|
|
|
distfiles="http://distcc.googlecode.com/files/${pkgname}-${version}.tar.bz2"
|
|
|
|
checksum=311671e844625d7fdb18dd3d096cd855751cfe8de13827682bcb7beff9133b30
|
2013-02-01 11:04:45 +01:00
|
|
|
|
2013-01-14 17:23:24 +01:00
|
|
|
post_install() {
|
|
|
|
# Remove useless files.
|
|
|
|
rm -f ${DESTDIR}/etc/default/distcc
|
|
|
|
rm -f ${DESTDIR}/etc/distcc/commands.allow.sh
|
|
|
|
rm -rf ${DESTDIR}/usr/share/doc/distcc/example
|
|
|
|
|
|
|
|
# systemd service
|
2014-09-30 08:05:00 +02:00
|
|
|
if [ "$build_option_systemd" ]; then
|
|
|
|
vinstall ${FILESDIR}/distccd.service 644 usr/lib/systemd/system
|
|
|
|
fi
|
2014-10-13 11:21:10 +02:00
|
|
|
vsv distccd
|
2013-01-16 17:50:40 +01:00
|
|
|
|
2015-04-23 09:54:38 +02:00
|
|
|
# gcc wrappers
|
2013-01-16 17:50:40 +01:00
|
|
|
vmkdir usr/lib/distcc/bin
|
2013-01-27 11:07:32 +01:00
|
|
|
for f in gcc cc c++ cpp g++; do
|
2013-01-16 17:50:40 +01:00
|
|
|
ln -sfr ${DESTDIR}/usr/bin/distcc ${DESTDIR}/usr/lib/distcc/bin/${f}
|
|
|
|
done
|
2013-01-14 17:23:24 +01:00
|
|
|
}
|
2013-04-12 09:46:44 +02:00
|
|
|
|
2014-05-24 11:01:14 +02:00
|
|
|
distcc-gtk_package() {
|
|
|
|
depends="distcc-${version}_${revision}"
|
|
|
|
short_desc+=" - GTK+ monitor"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/distccmon-gnome
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
|
|
|
2013-04-12 09:46:44 +02:00
|
|
|
distcc-pump_package() {
|
|
|
|
depends="distcc-${version}_${revision}"
|
2014-01-01 16:10:11 +01:00
|
|
|
short_desc+=" - Pump mode support files"
|
2013-04-12 09:46:44 +02:00
|
|
|
pycompile_module="include_server"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/pump
|
|
|
|
vmove usr/share/man/man1/pump.1.gz
|
|
|
|
vmove usr/share/man/man1/include_server.1.gz
|
|
|
|
vmove usr/lib/python2.7
|
|
|
|
vmove usr/share/doc/distcc/README.pump
|
|
|
|
}
|
|
|
|
}
|
2014-05-24 11:01:14 +02:00
|
|
|
|
|
|
|
fi # !CROSS_BUILD
|