mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-26 19:32:06 -05:00
f318ab6bed
Fixes #5710.
18 lines
588 B
Bash
Executable file
18 lines
588 B
Bash
Executable file
#!/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"
|
|
}
|