void-packages/srcpkgs/cmake/template
2020-03-24 10:43:08 +01:00

35 lines
1.2 KiB
Bash

# Template file for 'cmake'
pkgname=cmake
version=3.16.5
revision=1
build_style=configure
configure_args="--prefix=/usr --mandir=/share/man --docdir=/share/doc/cmake
--system-libs --no-system-jsoncpp ${XBPS_MAKEJOBS:+--parallel=$XBPS_MAKEJOBS}"
make_check_target=test
makedepends="expat-devel libarchive-devel libcurl-devel libuv-devel
ncurses-devel rhash-devel"
checkdepends="pax"
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=5f760b50b8ecc9c0c37135fae5fbf00a2fef617059aa9d61c1bb91653e5a8bfc
if [ "$CROSS_BUILD" ]; then
# XXX ugly :-)
build_style=cmake
hostmakedepends="cmake gcc-fortran"
configure_args=" -DCMAKE_DOC_DIR=/share/doc/cmake
-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_LIBLZMA=1 -DKWSYS_LFS_WORKS=1"
fi
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
}