mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
7cb9237be9
Except in the Lua port's Makefile patch, I couldn't figure this out...
17 lines
536 B
Bash
Executable file
17 lines
536 B
Bash
Executable file
#!/usr/bin/env -S bash ../.port_include.sh
|
|
port=ninja
|
|
version=1.8.2
|
|
files="https://github.com/ninja-build/ninja/archive/v${version}.tar.gz ninja-v${version}.tar.gz"
|
|
|
|
build() {
|
|
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"
|
|
}
|