void-packages/srcpkgs/cmake/template
2019-02-06 14:56:54 +01:00

36 lines
1.4 KiB
Bash

# Template file for 'cmake'
pkgname=cmake
version=3.13.4
revision=1
build_style=configure
make_check_target=test
makedepends="expat-devel libarchive-devel libcurl-devel libuv-devel
ncurses-devel rhash-devel"
short_desc="Cross-platform, open-source build system"
maintainer="Juan RP <xtraeme@voidlinux.org>"
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=fdd928fee35f472920071d1c7f1a6a2b72c9b25e04f7a37b409349aef3f20e9b
if [ "$CROSS_BUILD" ]; then
# XXX ugly :-)
build_style=cmake
hostmakedepends="cmake gcc-fortran"
configure_args=" -DCMAKE_DOC_DIR=/share/doc/cmake"
configure_args+=" -DCMAKE_USE_SYSTEM_LIBARCHIVE=1"
configure_args+=" -DCMAKE_USE_SYSTEM_CURL=1 -DCMAKE_USE_SYSTEM_ZLIB=1"
configure_args+=" -DCMAKE_USE_SYSTEM_EXPAT=1 -DCMAKE_USE_SYSTEM_BZIP2=1"
configure_args+=" -DCMAKE_USE_SYSTEM_LIBLZMA=1 -DKWSYS_LFS_WORKS=1"
else
build_style=configure
configure_args="--prefix=/usr --mandir=/share/man"
configure_args+=" --docdir=/share/doc/cmake --system-libs --no-system-jsoncpp ${XBPS_MAKEJOBS:+--parallel=$XBPS_MAKEJOBS}"
fi
post_install() {
rm -rf ${DESTDIR}/usr/share/doc/cmake
vlicense Copyright.txt
vlicense Utilities/cmzlib/Copyright.txt cmzlib-Copyright.txt
vlicense Utilities/cmcompress/Copyright.txt cmcompress-Copyright.txt
}