2008-11-22 13:08:31 +01:00
|
|
|
# Template file for 'cmake'
|
|
|
|
pkgname=cmake
|
2015-06-02 07:10:34 +02:00
|
|
|
version=3.2.3
|
2015-07-31 10:21:09 +02:00
|
|
|
revision=2
|
2008-11-22 13:08:31 +01:00
|
|
|
build_style=configure
|
2015-07-31 10:21:09 +02:00
|
|
|
makedepends="zlib-devel bzip2-devel expat-devel libcurl-devel ncurses-devel libarchive-devel"
|
2008-11-22 13:08:31 +01:00
|
|
|
short_desc="Cross-platform, open-source build system"
|
2015-04-10 09:16:30 +02:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2014-08-06 17:51:00 +02:00
|
|
|
license="LGPL-2.1, 3-clause-BSD"
|
2012-08-11 21:36:26 +02:00
|
|
|
homepage="http://www.cmake.org"
|
2014-06-11 09:21:55 +02:00
|
|
|
distfiles="http://www.cmake.org/files/v${version%.*}/$pkgname-$version.tar.gz"
|
2015-06-02 07:10:34 +02:00
|
|
|
checksum=a1ebcaf6d288eb4c966714ea457e3b9677cdfde78820d0f088712d7320850297
|
2015-03-10 19:25:34 +01:00
|
|
|
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
# XXX ugly :-)
|
|
|
|
build_style=cmake
|
|
|
|
hostmakedepends="cmake gcc-fortran"
|
2015-03-18 07:06:34 +01:00
|
|
|
configure_args=" -DCMAKE_USE_SYSTEM_BZIP2=1"
|
2015-07-31 10:21:09 +02:00
|
|
|
configure_args+=" -DCMAKE_USE_SYSTEM_LIBARCHIVE=1"
|
2015-03-18 07:06:34 +01:00
|
|
|
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 -DCMAKE_USE_SYSTEM_LIBFORM=1"
|
|
|
|
configure_args+=" -DHAVE_GLIBC_STRERROR_R=0 -DHAVE_POSIX_STRERROR_R=1"
|
|
|
|
configure_args+=" -DHAVE_GLIBC_STRERROR_R__TRYRUN_OUTPUT=0 -DHAVE_POSIX_STRERROR_R__TRYRUN_OUTPUT=0"
|
|
|
|
configure_args+=" -DHAVE_POLL_FINE=1 -DKWSYS_CHAR_IS_SIGNED=1 -DKWSYS_LFS_WORKS=1"
|
2015-03-10 19:25:34 +01:00
|
|
|
else
|
|
|
|
build_style=configure
|
|
|
|
configure_args="--prefix=/usr --mandir=/share/man"
|
2015-07-31 10:21:09 +02:00
|
|
|
configure_args+=" --docdir=/share/doc/cmake --system-libs --no-system-jsoncpp ${XBPS_MAKEJOBS:+--parallel=$XBPS_MAKEJOBS}"
|
2015-03-10 19:25:34 +01:00
|
|
|
fi
|
2015-03-18 07:06:34 +01:00
|
|
|
|
|
|
|
post_install() {
|
|
|
|
if [ -d ${DESTDIR}/usr/doc ]; then
|
|
|
|
mv ${DESTDIR}/usr/doc ${DESTDIR}/usr/share
|
|
|
|
fi
|
|
|
|
}
|