Makefile 957 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #
  2. # Copyright (C) 2006-2016 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=cmake
  9. PKG_VERSION:=3.19.8
  10. PKG_RELEASE:=1
  11. PKG_CPE_ID:=cpe:/a:kitware:cmake
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=https://github.com/Kitware/CMake/releases/download/v$(PKG_VERSION)/ \
  14. https://cmake.org/files/v3.19/
  15. PKG_HASH:=09b4fa4837aae55c75fb170f6a6e2b44818deba48335d1969deddfbb34e30369
  16. HOST_BUILD_PARALLEL:=1
  17. HOST_CONFIGURE_PARALLEL:=1
  18. include $(INCLUDE_DIR)/host-build.mk
  19. HOST_CONFIGURE_VARS += \
  20. CC="$(HOSTCC_NOCACHE)" \
  21. CXX="$(HOSTCXX_NOCACHE)" \
  22. MAKEFLAGS="$(HOST_JOBS)" \
  23. CXXFLAGS="$(HOST_CFLAGS)"
  24. HOST_CONFIGURE_ARGS := \
  25. $(if $(MAKE_JOBSERVER),--parallel="$(MAKE_JOBSERVER)") \
  26. --prefix=$(STAGING_DIR_HOST)
  27. ifneq ($(findstring c,$(LIBRECMC_VERBOSE)),)
  28. HOST_MAKE_FLAGS += VERBOSE=1
  29. endif
  30. $(eval $(call HostBuild))