Blame groups.d/231.native_packages_etc.d/cmake.package

b2c1ea
: ${PKG_CMAKE_DEPENDS:="curl libarchive libuv libz ncurses"};
b2c1ea
: ${PKG_CMAKE_SHA256SUM:=dc1246c4e6d168ea4d6e042cfba577c1acd65feea27e56f5ff37df920c30cae0};
b2c1ea
: ${PKG_CMAKE_VERSION:=3.7.2};
b2c1ea
: ${PKG_CMAKE_URL:=https://cmake.org/files/v${PKG_CMAKE_VERSION%.*}/cmake-${PKG_CMAKE_VERSION}.tar.gz};
b2c1ea
: ${PKG_CMAKE_CFLAGS_CONFIGURE_EXTRA:="-g0 -O2"};
b2c1ea
: ${PKG_CMAKE_CMAKE_ARGS_EXTRA:="
b2c1ea
	-DBZIP2_INCLUDE_DIR=${PREFIX_NATIVE}/include
b2c1ea
	-DBZIP2_LIBRARIES=${PREFIX_NATIVE}/lib/libbz2.a
b2c1ea
	-DCMAKE_USE_SYSTEM_BZIP2=ON
b2c1ea
	-DCMAKE_USE_SYSTEM_CURL=ON
b2c1ea
	-DCMAKE_USE_SYSTEM_EXPAT=OFF
b2c1ea
	-DCMAKE_USE_SYSTEM_LIBARCHIVE=ON
b2c1ea
	-DCMAKE_USE_SYSTEM_LIBUV=ON
b2c1ea
	-DCMAKE_USE_SYSTEM_ZLIB=ON
b2c1ea
	-DCURL_INCLUDE_DIR=${PREFIX_NATIVE}/include/curl
b2c1ea
	-DCURL_LIBRARY=${PREFIX_NATIVE}/lib/libcurl.lib.a
b2c1ea
	-DCURSES_NCURSES_LIBRARY=${PREFIX_NATIVE}/lib/libncurses.lib.a
b2c1ea
	-DKWSYS_LFS_WORKS=YES
b2c1ea
	-DLibArchive_INCLUDE_DIR=${PREFIX_NATIVE}/include
b2c1ea
	-DLibArchive_LIBRARY=${PREFIX_NATIVE}/lib/libarchive.lib.a
b2c1ea
	-DLIBLZMA_HAS_AUTO_DECODER=YES
b2c1ea
	-DLIBLZMA_HAS_EASY_ENCODER=YES
b2c1ea
	-DLIBLZMA_HAS_LZMA_PRESET=YES
b2c1ea
	-DLIBLZMA_INCLUDE_DIR=${PREFIX_NATIVE}/include
b2c1ea
	-DLIBLZMA_LIBRARY=${PREFIX_NATIVE}/lib/liblzma.lib.a
b2c1ea
	-DLibUV_INCLUDE_DIR=${PREFIX_NATIVE}/include
b2c1ea
	-DLibUV_LIBRARY=${PREFIX_NATIVE}/lib/libuv.1.0.0.lib.a
b2c1ea
	-DZLIB_INCLUDE_DIR=${PREFIX_NATIVE}/include
b2c1ea
	-DZLIB_LIBRARY=${PREFIX_NATIVE}/lib/libz.a"};
b2c1ea
: ${PKG_CMAKE_CONFIGURE_TYPE:="cmake"};
b2c1ea
b2c1ea
ex_pkg_register "cmake" "${RTL_FILEOP_SOURCE_FNAME}" "native_packages";
b2c1ea
b2c1ea
# vim:filetype=sh textwidth=0