Browse Source

- add host-cmake-package infrastructure

master
vanhofen 4 years ago
parent
commit
6044d79533
  1. 19
      package/pkg-cmake.mk

19
package/pkg-cmake.mk

@ -11,9 +11,22 @@ define cmake-package
$(call EXTRACT,$(BUILD_DIR))
$(CHDIR)/$($(PKG)_DIR); \
$(APPLY_PATCHES); \
$(CMAKE); \
$(TARGET_CMAKE); \
$(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR)
-rm -r $(TARGET_libdir)/cmake
$(call FOLLOWUP)
@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))
$(CHDIR)/$($(PKG)_DIR); \
$(APPLY_PATCHES); \
$(HOST_CMAKE); \
$(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR)
$(call HOST_FOLLOWUP)
endef

Loading…
Cancel
Save