e528977100
PKG_FILE_DEPENDS caused the whole site repo to be hashed to determine if gluon-site needed rebuilding. While this is normally no problem, alternative build setups sometimes put the Gluon repo inside the site repo, causing long build times and parallel build failures.
43 lines
914 B
Makefile
43 lines
914 B
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=gluon-site
|
|
PKG_VERSION:=$(if $(GLUON_SITE_CODE),$(GLUON_SITE_CODE),1)
|
|
PKG_RELEASE:=$(GLUON_RELEASE)
|
|
|
|
PKG_FILE_DEPENDS := $(GLUON_SITEDIR)/site.conf $(GLUON_SITEDIR)/i18n/
|
|
PKG_BUILD_DEPENDS := luci-base/host
|
|
|
|
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
|
|
|
include $(GLUONDIR)/include/package.mk
|
|
|
|
PKG_CONFIG_DEPENDS += $(GLUON_I18N_CONFIG)
|
|
|
|
|
|
define Package/gluon-site
|
|
SECTION:=gluon
|
|
CATEGORY:=Gluon
|
|
TITLE:=Site-specific files of Gluon
|
|
endef
|
|
|
|
define Build/Prepare
|
|
mkdir -p $(PKG_BUILD_DIR)
|
|
endef
|
|
|
|
define Build/Configure
|
|
endef
|
|
|
|
define Build/Compile
|
|
$(call GluonBuildI18N,gluon-site,$(GLUON_SITEDIR)/i18n)
|
|
endef
|
|
|
|
define Package/gluon-site/install
|
|
$(INSTALL_DIR) $(1)/lib/gluon
|
|
$(CP) $(GLUON_SITEDIR)/site.conf $(1)/lib/gluon/site.conf
|
|
echo "$(GLUON_RELEASE)" > $(1)/lib/gluon/release
|
|
|
|
$(call GluonInstallI18N,gluon-site,$(1))
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,gluon-site))
|