Browse Source

- buildsystem-helpers: add PREPARE define

master
vanhofen 3 years ago
parent
commit
3e38456b85
  1. 21
      make/buildsystem-helpers.mk
  2. 12
      package/pkg-autotools.mk
  3. 12
      package/pkg-cmake.mk

21
make/buildsystem-helpers.mk

@ -3,6 +3,14 @@
# #
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# start-up build
define STARTUP
@$(call MESSAGE,"Start-up build")
$(REMOVE)/$($(PKG)_DIR)
endef
# -----------------------------------------------------------------------------
# resolve dependencies # resolve dependencies
define DEPENDENCIES define DEPENDENCIES
@$(call MESSAGE,"Resolving dependencies") @$(call MESSAGE,"Resolving dependencies")
@ -119,12 +127,17 @@ endef
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# start-up build # prepare for build
define STARTUP define PREPARE
@$(call MESSAGE,"Start-up build") $(call STARTUP)
$(REMOVE)/$($(PKG)_DIR) $(call DEPENDENCIES)
$(call DOWNLOAD,$($(PKG)_SOURCE))
$(call EXTRACT,$(BUILD_DIR))
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR))
endef endef
# -----------------------------------------------------------------------------
# follow-up build # follow-up build
define HOST_FOLLOWUP define HOST_FOLLOWUP
@$(call MESSAGE,"Follow-up build") @$(call MESSAGE,"Follow-up build")

12
package/pkg-autotools.mk

@ -5,11 +5,7 @@
################################################################################ ################################################################################
define autotools-package define autotools-package
$(call DEPENDENCIES) $(call PREPARE)
$(call DOWNLOAD,$($(PKG)_SOURCE))
$(call STARTUP)
$(call EXTRACT,$(BUILD_DIR))
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR))
$(CHDIR)/$($(PKG)_DIR); \ $(CHDIR)/$($(PKG)_DIR); \
$(TARGET_CONFIGURE); \ $(TARGET_CONFIGURE); \
$(MAKE); \ $(MAKE); \
@ -18,11 +14,7 @@ define autotools-package
endef endef
define host-autotools-package define host-autotools-package
$(call DEPENDENCIES) $(call PREPARE)
$(call DOWNLOAD,$($(PKG)_SOURCE))
$(call STARTUP)
$(call EXTRACT,$(BUILD_DIR))
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR))
$(CHDIR)/$($(PKG)_DIR); \ $(CHDIR)/$($(PKG)_DIR); \
$(HOST_CONFIGURE); \ $(HOST_CONFIGURE); \
$(MAKE); \ $(MAKE); \

12
package/pkg-cmake.mk

@ -5,11 +5,7 @@
################################################################################ ################################################################################
define cmake-package define cmake-package
$(call DEPENDENCIES) $(call PREPARE)
$(call DOWNLOAD,$($(PKG)_SOURCE))
$(call STARTUP)
$(call EXTRACT,$(BUILD_DIR))
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR))
$(CHDIR)/$($(PKG)_DIR); \ $(CHDIR)/$($(PKG)_DIR); \
$(TARGET_CMAKE); \ $(TARGET_CMAKE); \
$(MAKE); \ $(MAKE); \
@ -19,11 +15,7 @@ define cmake-package
endef endef
define host-cmake-package define host-cmake-package
$(call DEPENDENCIES) $(call PREPARE)
$(call DOWNLOAD,$($(PKG)_SOURCE))
$(call STARTUP)
$(call EXTRACT,$(BUILD_DIR))
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR))
$(CHDIR)/$($(PKG)_DIR); \ $(CHDIR)/$($(PKG)_DIR); \
$(HOST_CMAKE); \ $(HOST_CMAKE); \
$(MAKE); \ $(MAKE); \

Loading…
Cancel
Save