2 # Copyright (C) 2006-2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
12 PKG_CPE_ID
:=cpe
:/a
:kitware
:cmake
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=https
://github.com
/Kitware
/CMake
/releases
/download
/v
$(PKG_VERSION
)/ \
16 https
://cmake.org
/files
/v3.24
/
17 PKG_HASH
:=4931e277a4db1a805f13baa7013a7757a0cbfe5b7932882925c7061d9d1fa82b
19 HOST_BUILD_PARALLEL
:=1
20 HOST_CONFIGURE_PARALLEL
:=1
22 include $(INCLUDE_DIR
)/host-build.mk
24 HOST_CONFIGURE_VARS
+= \
25 CC
="$(HOSTCC_NOCACHE)" \
26 CXX
="$(HOSTCXX_NOCACHE)" \
27 MAKEFLAGS
="$(HOST_JOBS)" \
28 CXXFLAGS
="$(HOST_CFLAGS)" \
29 MAKE
="$(STAGING_DIR_HOST)/bin/ninja"
31 HOST_CONFIGURE_ARGS
:= \
32 $(if
$(MAKE_JOBSERVER
),--parallel
="$(MAKE_JOBSERVER)") \
33 --prefix="$(STAGING_DIR_HOST)" \
36 define Host
/Compile
/Default
37 +$(NINJA
) -C
$(HOST_BUILD_DIR
) $(1)
40 define Host
/Install
/Default
41 +$(NINJA
) -C
$(HOST_BUILD_DIR
) install
44 define Host
/Uninstall
/Default
45 +$(NINJA
) -C
$(HOST_BUILD_DIR
) uninstall
48 ifneq ($(findstring c
,$(OPENWRT_VERBOSE
)),)
49 HOST_MAKE_FLAGS
+= VERBOSE
=1
52 $(eval
$(call HostBuild
))