Files
kappa-packages/stable/cmake.kap
T
2026-08-18 01:51:35 -04:00

40 lines
1.3 KiB
Plaintext

/*
* cmake — the cross-platform build system generator.
*
* Bootstraps itself (./bootstrap builds a mini cmake, then the full
* build compiles the real one) — needs only a C++ compiler and make.
* All bundled third-party libs (libarchive, curl, jsoncpp, zlib, ...)
* are used by default, so no external deps.
*
* OpenSSL is forced OFF: the host may provide libssl, but the store
* cmake must not link against a host-only shared lib (the showoff ISO
* has none). HTTPS in cmake scripts comes later with an openssl package.
*/
package "cmake" {
const version = "4.4.1"
const source = "https://cmake.org/files/v4.4/cmake-${version}.tar.gz"
sha256 = "95d4721f3625fb0d9d6ca480dd59a46c84b4c157f7fadd2e9b179ef9c871174d"
license = "BSD-3-Clause"
provides = ["cmake", "ctest", "cpack"]
depends = [
{ name = "make" },
]
prepare {
curl -L -o cmake-${version}.tar.gz ${source}
echo "95d4721f3625fb0d9d6ca480dd59a46c84b4c157f7fadd2e9b179ef9c871174d cmake-${version}.tar.gz" | sha256sum -c -
tar xf cmake-${version}.tar.gz --strip-components=1
}
build {
./bootstrap --prefix=${prefix} -- -DCMAKE_USE_OPENSSL=OFF
make -j${jobs}
}
install {
make DESTDIR=${destdir} install
}
}