2021-01-23 05:44:05 +13:00
|
|
|
#!/usr/bin/env -S bash ../.port_include.sh
|
2020-06-21 18:41:01 -04:00
|
|
|
port=ninja
|
2022-04-01 04:52:19 +02:00
|
|
|
version=1.10.2
|
|
|
|
files="https://github.com/ninja-build/ninja/archive/v${version}.tar.gz ninja-v${version}.tar.gz ce35865411f0490368a8fc383f29071de6690cbadc27704734978221f25e2bed"
|
2021-04-25 12:20:15 +02:00
|
|
|
auth_type=sha256
|
2020-06-21 18:41:01 -04:00
|
|
|
|
|
|
|
build() {
|
2021-04-20 18:42:04 +03:00
|
|
|
CXXFLAGS="--sysroot=${SERENITY_INSTALL_ROOT}" \
|
|
|
|
LDFLAGS="--sysroot=${SERENITY_INSTALL_ROOT}" \
|
2020-06-21 18:41:01 -04:00
|
|
|
# platform=linux is close enough.
|
2020-06-22 11:42:42 -04:00
|
|
|
run ./configure.py --bootstrap --platform=linux
|
2021-03-11 19:50:44 +01:00
|
|
|
run strip ninja
|
2020-06-21 18:41:01 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
install() {
|
2021-04-20 18:42:04 +03:00
|
|
|
run mkdir -p "${SERENITY_INSTALL_ROOT}/usr/local/bin"
|
|
|
|
run cp ninja "${SERENITY_INSTALL_ROOT}/usr/local/bin/ninja"
|
2020-06-21 18:41:01 -04:00
|
|
|
}
|