You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
816 B
32 lines
816 B
################################################################################
|
|
#
|
|
# CMake packages
|
|
#
|
|
################################################################################
|
|
|
|
define cmake-package
|
|
$(call DEPENDENCIES)
|
|
$(call DOWNLOAD,$($(PKG)_SOURCE))
|
|
$(call STARTUP)
|
|
$(call EXTRACT,$(BUILD_DIR))
|
|
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR))
|
|
$(CHDIR)/$($(PKG)_DIR); \
|
|
$(TARGET_CMAKE); \
|
|
$(MAKE); \
|
|
$(MAKE) install DESTDIR=$(TARGET_DIR)
|
|
@rm -rf $(TARGET_libdir)/cmake
|
|
$(call TARGET_FOLLOWUP)
|
|
endef
|
|
|
|
define host-cmake-package
|
|
$(call DEPENDENCIES)
|
|
$(call DOWNLOAD,$($(PKG)_SOURCE))
|
|
$(call STARTUP)
|
|
$(call EXTRACT,$(BUILD_DIR))
|
|
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR))
|
|
$(CHDIR)/$($(PKG)_DIR); \
|
|
$(HOST_CMAKE); \
|
|
$(MAKE); \
|
|
$(MAKE) install DESTDIR=$(TARGET_DIR)
|
|
$(call HOST_FOLLOWUP)
|
|
endef
|
|
|