blob: 6f56af4fde81e6523d13effa31c7c2279709c5ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/bash ../.port_include.sh
port=ninja
version=1.8.2
workdir=ninja-1.8.2
files="https://github.com/ninja-build/ninja/archive/v1.8.2.tar.gz ninja-v1.8.2.tar.gz"
build() {
CXX=i686-pc-serenity-g++ CXXFLAGS="--sysroot=${SERENITY_ROOT}/Build/Root" \
LDFLAGS="--sysroot=${SERENITY_ROOT}/Build/Root" \
# platform=linux is close enough.
run ./configure.py --bootstrap --platform=linux
strip "${workdir}/ninja"
}
install() {
cp "${workdir}/ninja" "${SERENITY_ROOT}/Build/Root/usr/local/bin/ninja"
}
|