blob: 2b42066ab483b23b64349825e2993f895e1bee17 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#!/usr/bin/env -S bash ../.port_include.sh
port='cmake'
version='3.25.1'
useconfigure='true'
files="https://github.com/Kitware/CMake/releases/download/v${version}/cmake-${version}.tar.gz cmake-${version}.tar.gz 1c511d09516af493694ed9baf13c55947a36389674d657a2d5e0ccedc6b291d8"
auth_type='sha256'
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"
)
configure() {
run cmake "${configopts[@]}" .
}
build() {
run ninja -j${MAKEJOBS}
}
install() {
run ninja install
}
|