2007-07-31 21:39:17 +10:00
|
|
|
# Description: A tool to distribute compilations.
|
2009-01-09 19:04:37 +11:00
|
|
|
# URL: http://distcc.org/
|
2014-11-10 23:28:07 +11:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2019-08-19 23:29:14 +10:00
|
|
|
# Optional: python3 gtk avahi
|
2007-04-11 05:56:44 +10:00
|
|
|
|
|
|
|
name=distcc
|
2019-08-19 23:29:14 +10:00
|
|
|
version=3.3.3
|
2020-07-15 23:29:49 +10:00
|
|
|
release=2
|
2019-08-19 23:29:14 +10:00
|
|
|
source=(https://github.com/distcc/distcc/releases/download/v$version/$name-$version.tar.gz
|
2020-07-15 23:29:49 +10:00
|
|
|
distccd
|
|
|
|
distcc-3.3.3-py38.patch
|
|
|
|
distcc-3.3.3-gcc-10-fix.patch)
|
2007-04-11 05:56:44 +10:00
|
|
|
|
|
|
|
build() {
|
2019-08-19 23:29:14 +10:00
|
|
|
cd $name-$version
|
2016-06-12 16:03:48 +10:00
|
|
|
|
2019-08-19 23:29:14 +10:00
|
|
|
[ -e '/usr/lib/pkgconfig/python-3.7.pc' ] || PKGMK_DISTCC+=' --disable-pump-mode'
|
|
|
|
[ -e '/usr/lib/pkgconfig/gtk+-2.0.pc' ] || PKGMK_DISTCC+=' --without-gtk'
|
|
|
|
[ -e '/usr/lib/pkgconfig/popt.pc' ] || PKGMK_DISTCC+=' --with-included-popt'
|
2016-06-12 16:03:48 +10:00
|
|
|
|
2020-07-15 23:29:49 +10:00
|
|
|
patch -p1 -i $SRC/distcc-3.3.3-py38.patch
|
|
|
|
patch -p1 -i $SRC/distcc-3.3.3-gcc-10-fix.patch
|
|
|
|
|
2019-08-19 23:29:14 +10:00
|
|
|
./autogen.sh
|
2007-07-31 21:39:17 +10:00
|
|
|
|
2019-08-19 23:29:14 +10:00
|
|
|
./configure ${PKGMK_DISTCC} \
|
2007-04-11 05:56:44 +10:00
|
|
|
--prefix=/usr \
|
2019-08-19 23:29:14 +10:00
|
|
|
--sysconfdir=/etc \
|
|
|
|
--enable-rfc2553 \
|
|
|
|
--disable-Werror
|
2007-04-11 05:56:44 +10:00
|
|
|
|
|
|
|
make
|
2013-04-28 13:17:34 +10:00
|
|
|
make DESTDIR=$PKG install
|
2009-01-09 19:04:37 +11:00
|
|
|
|
|
|
|
# distccd should be in sbin
|
|
|
|
mv $PKG/usr/bin/distccd $PKG/usr/sbin/distccd
|
|
|
|
|
2013-04-28 13:17:34 +10:00
|
|
|
# install service
|
2009-01-09 19:04:37 +11:00
|
|
|
install -m 0755 -D $SRC/distccd $PKG/etc/rc.d/distccd
|
2008-05-16 21:57:46 +10:00
|
|
|
|
2013-04-28 13:17:34 +10:00
|
|
|
# create the masquerade directory
|
2008-05-16 21:57:46 +10:00
|
|
|
install -d $PKG/usr/lib/distcc
|
2008-05-18 02:21:39 +10:00
|
|
|
cd $PKG/usr/lib/distcc
|
2013-04-28 13:17:34 +10:00
|
|
|
for c in cc c++ gcc g++ cpp; do
|
2008-05-18 02:21:39 +10:00
|
|
|
ln -s ../../bin/distcc $c
|
2008-05-16 21:57:46 +10:00
|
|
|
done
|
2008-05-18 02:21:39 +10:00
|
|
|
cd -
|
2013-04-28 13:17:34 +10:00
|
|
|
|
2019-08-19 23:29:14 +10:00
|
|
|
# cleanup
|
|
|
|
rm -r $PKG/usr/share/doc $PKG/etc/distcc $PKG/etc/default
|
|
|
|
rm $PKG//usr/sbin/update-distcc-symlinks
|
2015-03-12 19:36:06 +11:00
|
|
|
|
|
|
|
# python is required for pump mode
|
2019-08-19 23:29:14 +10:00
|
|
|
[ -e '/usr/lib/pkgconfig/python-3.7.pc' ] || \
|
|
|
|
rm $PKG/usr/share/man/man1/{pump,include_server}.1.gz
|
2007-04-11 05:56:44 +10:00
|
|
|
}
|