libgpg-error: Fix compiling with uclibc
[openadk.git] / package / cmake / Makefile
blobb915f3e3e4d159c3f69d1a37f9ac53be997cdf7c
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR)/rules.mk
6 PKG_NAME:= cmake
7 PKG_VERSION:= 3.21.3
8 PKG_RELEASE:= 1
9 PKG_HASH:= e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
10 PKG_DESCR:= build utility
11 PKG_SECTION:= dev/tools
12 HOST_BUILDDEP:= curl-host
13 PKG_URL:= http://www.cmake.org/
14 PKG_SITES:= https://github.com/Kitware/CMake/releases/download/v3.21.3/
16 DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
18 PKG_CFLINE_CMAKE:= depends on ADK_HOST_ONLY
20 include $(ADK_TOPDIR)/mk/host.mk
21 include $(ADK_TOPDIR)/mk/package.mk
23 $(eval $(call HOST_template,CMAKE,cmake,$(PKG_VERSION)-${PKG_RELEASE}))
25 HOST_STYLE:= manual
27 host-configure:
28 (cd $(WRKBUILD); ./configure --prefix=${STAGING_HOST_DIR}/usr --system-curl --parallel=${ADK_MAKE_JOBS} )
30 host-build:
31 (cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -j${ADK_MAKE_JOBS} -f ${MAKE_FILE} \
32 ${HOST_MAKE_FLAGS} ${HOST_ALL_TARGET}) $(MAKE_TRACE)
34 cmake-hostinstall:
35 cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -j${ADK_MAKE_JOBS} -f ${MAKE_FILE} \
36 ${HOST_FAKE_FLAGS} ${HOST_INSTALL_TARGET} $(MAKE_TRACE)
38 include ${ADK_TOPDIR}/mk/host-bottom.mk
39 include ${ADK_TOPDIR}/mk/pkg-bottom.mk