# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# devel requires C++11 as of 2017-08-21
# https://gitlab.kitware.com/cmake/cmake/commit/c1f3eb9f2d628b2911aa17f65012fab0befc4b87
# release requires C++11 as of 3.10.0
if {!((${os.platform} eq "darwin" && ${os.major} < 10) || ${build_arch} eq "ppc" || ${build_arch} eq "ppc64")} {
depends_lib-append port:libcxx
configure.cxx_stdlib libc++
maintainers {michaelld @michaelld}
description Cross-platform make
set base_long_description \
"An extensible, open-source system that manages the build \
process in an operating system and compiler independent manner. \
Unlike many cross-platform systems, CMake is designed to be \
used in conjunction with the native build environment."
homepage https://cmake.org
if {${subport} eq ${name}} {
checksums rmd160 57f7e1b9853cbb837ee4485442ce9a569c1e225c \
sha256 5255584bfd043eb717562cff8942d472f1c0e4679c4941d84baadaa9b28e3194 \
master_sites ${homepage}/files/v${branch}/
long_description ${base_long_description} \
The ${subport} release port is updated roughly every few months.
patch-Modules-noArchCheck.release.diff \
patch-CMakeFindFrameworks.cmake.release.diff \
patch-Source_CMakeVersionCompute.cmake.release.diff \
patch-Source_CMakeLists.txt.release.diff \
patch-Source_Modules_FindLibUV.cmake.release.diff
livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix}
livecheck.url https://cmake.org/files/LatestRelease/