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
|
|
|
|
version=1.8.2
|
2021-04-16 17:39:43 +00:00
|
|
|
files="https://github.com/ninja-build/ninja/archive/v${version}.tar.gz ninja-v${version}.tar.gz 5fdb04461cc7f5d02536b3bfc0300166"
|
|
|
|
auth_type=md5
|
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
|
|
|
}
|