blob: 47c5702f63fac770486a67aa2472d6f32a664262 (
plain)
1 # Description: A tool to distribute compilations.
2 # URL: http://distcc.org/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Optional: python3 gtk avahi
5
6 name=distcc
7 version=3.3.3
8 release=1
9 source=(https://github.com/distcc/distcc/releases/download/v$version/$name-$version.tar.gz
10 distccd)
11
12 build() {
13 cd $name-$version
14
15 [ -e '/usr/lib/pkgconfig/python-3.7.pc' ] || PKGMK_DISTCC+=' --disable-pump-mode'
16 [ -e '/usr/lib/pkgconfig/gtk+-2.0.pc' ] || PKGMK_DISTCC+=' --without-gtk'
17 [ -e '/usr/lib/pkgconfig/popt.pc' ] || PKGMK_DISTCC+=' --with-included-popt'
18
19 ./autogen.sh
20
21 ./configure ${PKGMK_DISTCC} \
22 --prefix=/usr \
23 --sysconfdir=/etc \
24 --enable-rfc2553 \
25 --disable-Werror
26
27 make
28 make DESTDIR=$PKG install
29
30 # distccd should be in sbin
31 mv $PKG/usr/bin/distccd $PKG/usr/sbin/distccd
32
33 # install service
34 install -m 0755 -D $SRC/distccd $PKG/etc/rc.d/distccd
35
36 # create the masquerade directory
37 install -d $PKG/usr/lib/distcc
38 cd $PKG/usr/lib/distcc
39 for c in cc c++ gcc g++ cpp; do
40 ln -s ../../bin/distcc $c
41 done
42 cd -
43
44 # cleanup
45 rm -r $PKG/usr/share/doc $PKG/etc/distcc $PKG/etc/default
46 rm $PKG//usr/sbin/update-distcc-symlinks
47
48 # python is required for pump mode
49 [ -e '/usr/lib/pkgconfig/python-3.7.pc' ] || \
50 rm $PKG/usr/share/man/man1/{pump,include_server}.1.gz
51 }
|