void-packages/srcpkgs/cmake/template
2016-04-16 06:06:03 +02:00

34 lines
1.3 KiB
Bash

# Template file for 'cmake'
pkgname=cmake
version=3.5.2
revision=1
build_style=configure
makedepends="zlib-devel bzip2-devel expat-devel libcurl-devel ncurses-devel libarchive-devel"
short_desc="Cross-platform, open-source build system"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
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=92d8410d3d981bb881dfff2aed466da55a58d34c7390d50449aa59b32bb5e62a
if [ "$CROSS_BUILD" ]; then
# XXX ugly :-)
build_style=cmake
hostmakedepends="cmake gcc-fortran"
configure_args=" -DCMAKE_USE_SYSTEM_BZIP2=1"
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
}