diff --git a/srcpkgs/cmake/template b/srcpkgs/cmake/template index 13d19b2961..e1413c5a74 100644 --- a/srcpkgs/cmake/template +++ b/srcpkgs/cmake/template @@ -1,13 +1,12 @@ # Template file for 'cmake' pkgname=cmake version=3.20.2 -revision=1 -build_style=cmake -configure_args="-DCMAKE_DOC_DIR=/share/doc/cmake - -DCMAKE_USE_SYSTEM_LIBRARIES=ON -DKWSYS_LFS_WORKS=1" +revision=2 +build_style=configure +configure_args="--prefix=/usr --mandir=/share/man --docdir=/share/doc/cmake + --system-libs ${XBPS_MAKEJOBS:+--parallel=$XBPS_MAKEJOBS}" make_check_target=test -make_cmd=make -hostmakedepends="cmake-bootstrap gcc-fortran" +hostmakedepends="gcc-fortran" makedepends="expat-devel libarchive-devel libcurl-devel libuv-devel ncurses-devel rhash-devel jsoncpp-devel" checkdepends="pax pkg-config" @@ -17,15 +16,13 @@ license="BSD-3-Clause, ICU" homepage="https://www.cmake.org" distfiles="https://www.cmake.org/files/v${version%.*}/${pkgname}-${version}.tar.gz" checksum=aecf6ecb975179eb3bb6a4a50cae192d41e92b9372b02300f9e8f1d5f559544e +replaces="cmake-bootstrap>=0" -export CMAKE_GENERATOR="Unix Makefiles" - -pre_check() { - # use ctest of this build instead of requirig cmake to test cmake... - vsed -i "${wrksrc}/build/Makefile" \ - -e 's!/usr/bin/ctest!ctest!g' - export PATH="${wrksrc}/build/bin:$PATH" -} +if [ "$CROSS_BUILD" ]; then + build_style=cmake + configure_args="-DCMAKE_DOC_DIR=/share/doc/cmake + -DCMAKE_USE_SYSTEM_LIBRARIES=ON -DKWSYS_LFS_WORKS=1" +fi post_install() { rm -rf ${DESTDIR}/usr/share/doc/cmake