|
@ -6,9 +6,12 @@ |
|
|
################################################################################
|
|
|
################################################################################
|
|
|
|
|
|
|
|
|
pkgname = $(basename $(@F)) |
|
|
pkgname = $(basename $(@F)) |
|
|
|
|
|
|
|
|
pkg = $(call LOWERCASE,$(pkgname)) |
|
|
pkg = $(call LOWERCASE,$(pkgname)) |
|
|
PKG = $(call UPPERCASE,$(pkgname)) |
|
|
PKG = $(call UPPERCASE,$(pkgname)) |
|
|
|
|
|
|
|
|
|
|
|
PKG_PARENT = $(subst HOST_,,$(PKG)) |
|
|
|
|
|
|
|
|
PKG_BUILD_DIR = $(BUILD_DIR)/$($(PKG)_DIR)/$($(PKG)_SUBDIR) |
|
|
PKG_BUILD_DIR = $(BUILD_DIR)/$($(PKG)_DIR)/$($(PKG)_SUBDIR) |
|
|
PKG_FILES_DIR = $(PACKAGE_DIR)/$(subst host-,,$(pkgname))/files |
|
|
PKG_FILES_DIR = $(PACKAGE_DIR)/$(subst host-,,$(pkgname))/files |
|
|
PKG_PATCHES_DIR = $(PACKAGE_DIR)/$(subst host-,,$(pkgname))/patches |
|
|
PKG_PATCHES_DIR = $(PACKAGE_DIR)/$(subst host-,,$(pkgname))/patches |
|
@ -21,6 +24,22 @@ PKG_TARGET_PACKAGE = $(if $(filter $(PKG_HOST_PACKAGE),NO),YES,NO) |
|
|
# check for necessary $(PKG) variables
|
|
|
# check for necessary $(PKG) variables
|
|
|
define PKG_CHECK_VARIABLES |
|
|
define PKG_CHECK_VARIABLES |
|
|
|
|
|
|
|
|
|
|
|
# auto-assign HOST_ variables
|
|
|
|
|
|
ifeq ($(PKG_HOST_PACKAGE),YES) |
|
|
|
|
|
ifndef $(PKG)_VERSION |
|
|
|
|
|
$(PKG)_VERSION = $$($(PKG_PARENT)_VERSION) |
|
|
|
|
|
endif |
|
|
|
|
|
ifndef $(PKG)_DIR |
|
|
|
|
|
$(PKG)_DIR = $$($(PKG_PARENT)_DIR) |
|
|
|
|
|
endif |
|
|
|
|
|
ifndef $(PKG)_SOURCE |
|
|
|
|
|
$(PKG)_SOURCE = $$($(PKG_PARENT)_SOURCE) |
|
|
|
|
|
endif |
|
|
|
|
|
ifndef $(PKG)_SITE |
|
|
|
|
|
$(PKG)_SITE = $$($(PKG_PARENT)_SITE) |
|
|
|
|
|
endif |
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
# patch
|
|
|
# patch
|
|
|
ifndef $(PKG)_PATCH |
|
|
ifndef $(PKG)_PATCH |
|
|
$(PKG)_PATCH = $$(PKG_PATCHES_DIR) |
|
|
$(PKG)_PATCH = $$(PKG_PATCHES_DIR) |
|
|