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