37 lines
1.2 KiB
Bash
37 lines
1.2 KiB
Bash
# Template file for 'cmake'
|
|
pkgname=cmake
|
|
version=3.19.6
|
|
revision=1
|
|
build_style=cmake
|
|
configure_args="-DCMAKE_DOC_DIR=/share/doc/cmake -DCMAKE_BUILD_TYPE=None
|
|
-DCMAKE_USE_SYSTEM_LIBRARIES=ON -DKWSYS_LFS_WORKS=1"
|
|
make_check_target=test
|
|
make_cmd=make
|
|
hostmakedepends="cmake-bootstrap gcc-fortran"
|
|
makedepends="expat-devel libarchive-devel libcurl-devel libuv-devel
|
|
ncurses-devel rhash-devel jsoncpp-devel"
|
|
checkdepends="pax pkg-config"
|
|
short_desc="Cross-platform, open-source build system"
|
|
maintainer="Nathan Owens <ndowens04@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=ec87ab67c45f47c4285f204280c5cde48e1c920cfcfed1555b27fb3b1a1d20ba
|
|
|
|
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"
|
|
}
|
|
|
|
post_install() {
|
|
rm -rf ${DESTDIR}/usr/share/doc/cmake
|
|
sed -n -e '/Copyright/,/authorization[.]/p' \
|
|
Source/CursesDialog/form/fld_arg.c >fld.LICENSE
|
|
vlicense fld.LICENSE
|
|
vlicense Copyright.txt
|
|
vlicense Utilities/KWIML/Copyright.txt KWIML-Copyright.txt
|
|
}
|