38 lines
1.3 KiB
Bash
38 lines
1.3 KiB
Bash
# Template file for 'cmake'
|
|
pkgname=cmake
|
|
version=3.18.4
|
|
revision=1
|
|
build_style=cmake
|
|
configure_args="-DCMAKE_DOC_DIR=/share/doc/cmake
|
|
-DCMAKE_BUILD_TYPE=None
|
|
-DCMAKE_USE_SYSTEM_LIBARCHIVE=1
|
|
-DCMAKE_USE_SYSTEM_CURL=1 -DCMAKE_USE_SYSTEM_ZLIB=1
|
|
-DCMAKE_USE_SYSTEM_EXPAT=1 -DCMAKE_USE_SYSTEM_BZIP2=1
|
|
-DCMAKE_USE_SYSTEM_LIBUV=1 -DCMAKE_USE_SYSTEM_LIBRHASH=1
|
|
-DCMAKE_USE_SYSTEM_LIBLZMA=1 -DKWSYS_LFS_WORKS=1"
|
|
make_check_target=test
|
|
hostmakedepends="cmake-bootstrap gcc-fortran"
|
|
makedepends="expat-devel libarchive-devel libcurl-devel libuv-devel
|
|
ncurses-devel rhash-devel"
|
|
checkdepends="pax pkg-config"
|
|
short_desc="Cross-platform, open-source build system"
|
|
maintainer="Nathan Owens <ndowens04@gmail.com>"
|
|
license="LGPL-2.1-or-later, BSD-3-Clause"
|
|
homepage="https://www.cmake.org"
|
|
distfiles="https://www.cmake.org/files/v${version%.*}/${pkgname}-${version}.tar.gz"
|
|
checksum=597c61358e6a92ecbfad42a9b5321ddd801fc7e7eca08441307c9138382d4f77
|
|
|
|
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
|
|
vlicense Copyright.txt
|
|
vlicense Utilities/KWIML/Copyright.txt KWIML-Copyright.txt
|
|
vlicense Utilities/cmzlib/Copyright.txt cmzlib-Copyright.txt
|
|
}
|