cmake: ugly and quick drunken cross compilation support.

This commit is contained in:
Juan RP 2015-03-10 19:25:34 +01:00
parent 0c3416cd85
commit e04c50ef8b

View file

@ -2,11 +2,7 @@
pkgname=cmake
version=3.1.3
revision=2
nocross="http://build.voidlinux.eu/builders/armv7l_builder/builds/8898/steps/shell_3/logs/stdio"
build_style=configure
configure_script="./bootstrap"
configure_args="--prefix=/usr --mandir=/share/man
--docdir=/share/doc/cmake --system-libs ${XBPS_MAKEJOBS:+--parallel=$XBPS_MAKEJOBS}"
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>"
@ -14,3 +10,14 @@ 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