diff --git a/srcpkgs/cmake/template b/srcpkgs/cmake/template index bbe602d6649..b19395670af 100644 --- a/srcpkgs/cmake/template +++ b/srcpkgs/cmake/template @@ -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 " 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}