mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 17:52:26 -05:00
4eb967b5eb
For now, only the non-standard _SC_NPROCESSORS_CONF and _SC_NPROCESSORS_ONLN are implemented. Use them to make ninja pick a better default -j value. While here, make the ninja package script not fail if no other port has been built yet.
18 lines
578 B
Bash
Executable file
18 lines
578 B
Bash
Executable file
#!/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() {
|
|
mkdir -p "${SERENITY_ROOT}/Build/Root/usr/local/bin"
|
|
cp "${workdir}/ninja" "${SERENITY_ROOT}/Build/Root/usr/local/bin/ninja"
|
|
}
|