void-packages/srcpkgs/cmake/template

24 lines
845 B
Plaintext

# Template file for 'cmake'
pkgname=cmake
version=3.1.3
revision=2
build_style=configure
makedepends="zlib-devel expat-devel libcurl-devel ncurses-devel libarchive-devel>=3.1.2_16"
short_desc="Cross-platform, open-source build system"
maintainer="Juan RP <xtraeme@gmail.com>"
license="LGPL-2.1, 3-clause-BSD"
homepage="http://www.cmake.org"
distfiles="http://www.cmake.org/files/v${version%.*}/$pkgname-$version.tar.gz"
checksum=45f4d3fa8a2f61cc092ae461aac4cac1bab4ac6706f98274ea7f314dd315c6d0
if [ "$CROSS_BUILD" ]; then
# XXX ugly :-)
build_style=cmake
hostmakedepends="cmake gcc-fortran"
configure_args="-DKWSYS_CHAR_IS_SIGNED=1 -DKWSYS_LFS_WORKS=1"
else
build_style=configure
configure_args="--prefix=/usr --mandir=/share/man"
configure_args+=" --docdir=/share/doc/cmake --system-libs ${XBPS_MAKEJOBS:+--parallel=$XBPS_MAKEJOBS}"
fi