2021-02-11 22:37:29 +03:30
|
|
|
#!/usr/bin/env -S bash ../.port_include.sh
|
2022-12-10 16:33:08 -07:00
|
|
|
port='cmake'
|
2023-07-15 23:40:50 +12:00
|
|
|
# NOTE: keep this version aligned with Toolchain/BuildCMake.sh
|
|
|
|
version='3.26.4'
|
2022-12-10 16:33:08 -07:00
|
|
|
useconfigure='true'
|
2023-07-10 13:10:29 +02:00
|
|
|
files=(
|
2023-08-07 21:10:39 +02:00
|
|
|
"https://github.com/Kitware/CMake/releases/download/v${version}/cmake-${version}.tar.gz 313b6880c291bd4fe31c0aa51d6e62659282a521e695f30d5cc0d25abbd5c208"
|
2023-07-10 13:10:29 +02:00
|
|
|
)
|
2022-12-10 16:33:08 -07:00
|
|
|
depends=(
|
|
|
|
'bash'
|
|
|
|
'make'
|
|
|
|
'sed'
|
|
|
|
'ncurses'
|
|
|
|
'libuv'
|
|
|
|
'openssl'
|
|
|
|
)
|
|
|
|
|
|
|
|
configopts=(
|
|
|
|
"-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt"
|
|
|
|
"-DCMAKE_USE_SYSTEM_LIBRARY_LIBUV=1"
|
|
|
|
"-DCMAKE_USE_OPENSSL=ON"
|
|
|
|
"-DBUILD_TESTING=OFF"
|
|
|
|
"-GNinja"
|
|
|
|
)
|
2021-02-11 22:37:29 +03:30
|
|
|
|
2021-04-17 10:47:55 +02:00
|
|
|
configure() {
|
2021-09-27 00:16:18 +02:00
|
|
|
run cmake "${configopts[@]}" .
|
2021-02-11 22:37:29 +03:30
|
|
|
}
|
|
|
|
|
2021-07-09 07:27:34 +04:30
|
|
|
build() {
|
2022-04-29 22:37:08 +02:00
|
|
|
run ninja -j${MAKEJOBS}
|
2021-07-09 07:27:34 +04:30
|
|
|
}
|
|
|
|
|
2021-02-11 22:37:29 +03:30
|
|
|
install() {
|
2021-07-09 07:27:34 +04:30
|
|
|
run ninja install
|
2021-02-11 22:37:29 +03:30
|
|
|
}
|