mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:57:44 +00:00
Ports: Add ninja
- 1.8.2 for now, newer versions need high-res timestamp file APIs which serenity doesn't have yet - pselect() instead of ppoll() for now, same reason (depends on #2609) - no good default for -j yet (see nproc.patch) - `-l` probably doesn't work yet (see loadavg.patch), but I've never used that anyways - some minor include patches that I've also sent upstream Other than that, this seems to work reasonably well. It currently produces some spam on stdout from probably the shell.
This commit is contained in:
parent
d23e655c83
commit
7f73f0300c
6 changed files with 98 additions and 0 deletions
17
Ports/ninja/package.sh
Executable file
17
Ports/ninja/package.sh
Executable file
|
@ -0,0 +1,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 --force-pselect
|
||||
strip "${workdir}/ninja"
|
||||
}
|
||||
|
||||
install() {
|
||||
cp "${workdir}/ninja" "${SERENITY_ROOT}/Build/Root/usr/local/bin/ninja"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue