contrib/distcc/Pkgfile

50 lines
1.2 KiB
Plaintext
Raw Normal View History

# Description: A tool to distribute compilations.
# URL: https://github.com/distcc/distcc
2014-11-10 13:28:07 +01:00
# Maintainer: Danny Rawlins, crux at romster dot me
# Optional: gtk avahi
2007-04-10 21:56:44 +02:00
name=distcc
2021-05-16 09:17:30 +02:00
version=3.4
2022-02-28 13:53:31 +01:00
release=2
2019-08-19 15:29:14 +02:00
source=(https://github.com/distcc/distcc/releases/download/v$version/$name-$version.tar.gz
distccd distccd.conf)
2007-04-10 21:56:44 +02:00
build() {
2019-08-19 15:29:14 +02:00
cd $name-$version
2016-06-12 08:03:48 +02:00
prt-get isinst gtk3 || PKGMK_DISTCC+=' --without-gtk'
prt-get isinst popt || PKGMK_DISTCC+=' --with-included-popt'
2020-07-15 15:29:49 +02:00
2019-08-19 15:29:14 +02:00
./autogen.sh
2019-08-19 15:29:14 +02:00
./configure ${PKGMK_DISTCC} \
2007-04-10 21:56:44 +02:00
--prefix=/usr \
2019-08-19 15:29:14 +02:00
--sysconfdir=/etc \
2022-02-28 13:53:31 +01:00
--runstatedir=/run \
--enable-rfc2553
2007-04-10 21:56:44 +02:00
make WERROR_CFLAGS= INCLUDESERVER_PYTHON=/usr/bin/python3
make DESTDIR=$PKG INCLUDESERVER_PYTHON=/usr/bin/python3 install
2009-01-09 09:04:37 +01:00
# distccd should be in sbin
mv $PKG/usr/bin/distccd $PKG/usr/sbin/distccd
2013-04-28 05:17:34 +02:00
# install service
2009-01-09 09:04:37 +01:00
install -m 0755 -D $SRC/distccd $PKG/etc/rc.d/distccd
2013-04-28 05:17:34 +02:00
# create the masquerade directory
install -d $PKG/usr/lib/distcc
cd $PKG/usr/lib/distcc
2013-04-28 05:17:34 +02:00
for c in cc c++ gcc g++ cpp; do
ln -s ../../bin/distcc $c
done
cd -
2013-04-28 05:17:34 +02:00
# install config file
install -D -m 0644 $SRC/distccd.conf $PKG/etc/distccd.conf
2019-08-19 15:29:14 +02:00
# cleanup
rm -r $PKG/usr/share/doc $PKG/etc/distcc $PKG/etc/default
rm $PKG/usr/sbin/update-distcc-symlinks
2007-04-10 21:56:44 +02:00
}