cmake: update to 3.22.2.

This commit is contained in:
Đoàn Trần Công Danh 2022-02-20 10:11:05 +07:00 committed by Đoàn Trần Công Danh
parent 105de5a836
commit 34d9d2416e
1 changed files with 5 additions and 7 deletions

View File

@ -1,6 +1,6 @@
# Template file for 'cmake'
pkgname=cmake
version=3.22.1
version=3.22.2
revision=1
build_style=cmake
configure_args="-DCMAKE_DOC_DIR=/share/doc/cmake
@ -16,18 +16,16 @@ maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
license="BSD-3-Clause, ICU"
homepage="https://www.cmake.org"
distfiles="https://www.cmake.org/files/v${version%.*}/${pkgname}-${version}.tar.gz"
checksum=0e998229549d7b3f368703d20e248e7ee1f853910d42704aa87918c213ea82c0
checksum=3c1c478b9650b107d452c5bd545c72e2fad4e37c09b89a1984b9a2f46df6aced
replaces="cmake-bootstrap>=0"
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" cmake"
fi
pre_configure() {
local f
[ ! "$CROSS_BUILD" ] || return 0
mkdir -p build
cd build
CC=$CC_FOR_BUILD CFLAGS="$CFLAGS_FOR_BUILD" \
CXX=$CXX_FOR_BUILD CXXFLAGS="$CXXFLAGS_FOR_BUILD" \
LD=$LD_FOR_BUILD LDFLAGS="$LDFLAGS_FOR_BUILD" \
../bootstrap --no-system-libs \
--generator=Ninja \
${XBPS_MAKEJOBS:+--parallel=$XBPS_MAKEJOBS}