cmake: fix cross builds

This commit is contained in:
Alessio Sergi 2016-07-10 01:54:06 +02:00
parent 50bbbd15a3
commit 6b663c6511

View file

@ -16,7 +16,10 @@ if [ "$CROSS_BUILD" ]; then
build_style=cmake
hostmakedepends="cmake gcc-fortran"
configure_args=" -DCMAKE_DOC_DIR=/share/doc/cmake"
configure_args+=" -DCMAKE_USE_SYSTEM_LIBRARIES=1 -DCMAKE_USE_SYSTEM_LIBRARY_JSONCPP=0"
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"