Files
haikuports/sys-devel/distcc/distcc-3.2~rc1.recipe
2017-11-01 15:59:51 +01:00

79 lines
1.8 KiB
Bash

SUMMARY="Distribute compilation of C code across several machines on a network"
DESCRIPTION="
distcc is a program to distribute builds of C, C++, Objective C or Objective \
C++ code across several machines on a network. distcc should always generate \
the same results as a local build, is simple to install and use, and is \
usually much faster than a local compile.
distcc does not require all machines to share a filesystem, have synchronized \
clocks, or to have the same libraries or header files installed. They can even \
have different processors or operating systems, if cross-compilers are \
installed.
"
HOMEPAGE="http://distcc.org/"
COPYRIGHT="2002-2004 by Martin Pool
2005 Google Inc."
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://github.com/distcc/distcc/archive/v3.2rc1.tar.gz"
CHECKSUM_SHA256="33e85981ff6afd94efc38b23b2d8b9036b3dff2dc6eac6982b9ff0ae1de64caa"
SOURCE_DIR="distcc-3.2rc1"
PATCHES="distcc-$portVersion.patchset"
GLOBAL_WRITABLE_FILES="
settings/default/distcc keep-old
settings/distcc/hosts keep-old
settings/distcc/clients.allow keep-old
settings/distcc/commands.allow.sh keep-old
"
ARCHITECTURES="x86_gcc2 ?x86 x86_64"
PROVIDES="
distcc = $portVersion
cmd:distcc = $portVersion
cmd:distccd = $portVersion
cmd:distccmon_text = $portVersion
cmd:lsdistcc = $portVersion
cmd:pump =$portVersion
"
REQUIRES="
haiku
lib:libpython2.7
"
BUILD_REQUIRES="
haiku_devel
devel:libpython2.7
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:gcc
cmd:g++
cmd:libtoolize
cmd:make
cmd:which
# for testing
#cmd:gdb
"
BUILD()
{
libtoolize --copy --force --install
./autogen.sh
CFLAGS=-D_BSD_SOURCE runConfigure ./configure --disable-Werror \
LDFLAGS=-L`python-config --prefix`/lib/python2.7/config
make $jobArgs
}
INSTALL()
{
make install
}
TEST()
{
make check RESTRICTED_PATH=/sources/distcc-3.1:/bin
}