Files
haikuports/dev-util/ninja/ninja-1.8.2.recipe
2017-11-01 12:04:16 +01:00

49 lines
1.3 KiB
Bash

SUMMARY="A small build system similar to make"
DESCRIPTION="Ninja is a small build system with a focus on speed. It differs \
from other build systems in two major respects: it is designed to have its \
input files generated by a higher-level build system, and it is designed to \
run builds as fast as possible.
Ninja's low-level approach makes it perfect for embedding into more featureful \
build systems. Via gyp it can build Chrome and v8 and node.js etc.; via CMake \
it can build LLVM, KDE, Blender, etc."
HOMEPAGE="http://martine.github.io/ninja/"
COPYRIGHT="2012-2017 Google Inc."
LICENSE="Apache v2"
REVISION="2"
SOURCE_URI="https://github.com/martine/ninja/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="86b8700c3d0880c2b44c2ff67ce42774aaf8c28cbf57725cb881569288c1c6f4"
PATCHES="ninja-$portVersion.patchset"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="?x86"
PROVIDES="
ninja$secondaryArchSuffix = $portVersion
cmd:ninja = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel >= r1~alpha4_pm_hrev51418-1
"
BUILD_PREREQUIRES="
haiku_devel
cmd:python2
cmd:g++$secondaryArchSuffix
cmd:gcc$secondaryArchSuffix
cmd:as$secondaryArchSuffix
"
BUILD()
{
python2 ./configure.py --bootstrap
}
INSTALL()
{
mkdir -p $prefix/bin
cp ninja $prefix/bin
}