--- include/package.mk | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)
diff --git a/include/package.mk b/include/package.mk index 76e109e..a1eeb2d 100644 --- a/include/package.mk +++ b/include/package.mk @@ -1,3 +1,7 @@ +# gluon packages will have this implicid integrated the build depends. +# This is just collective for community specific packages there use GluonSrcDiet. +PKG_BUILD_DEPENDS += luci-base/host lua/host + include $(INCLUDE_DIR)/package.mk
# Annoyingly, make's shell function replaces all newlines with spaces, so we have to do some escaping work. Yuck. @@ -33,3 +37,19 @@ define GluonInstallI18N fi; \ done endef + +define GluonSrcDiet + cd $(1) && $$(FIND) . | sed 's/.///' | while read src; do \ + if [ -d $$$$src ]; then \ + if [ ! -d $(shell echo "$(2)" | sed 's//$$//')/$$$$src ]; then \ + $$(INSTALL_DIR) -p "$(shell echo "$(2)" | sed 's//$$//')/$$$$src"; \ + fi; \ + else \ + if $(STAGING_DIR_HOST)/bin/lua $(STAGING_DIR_HOST)/bin/LuaSrcDiet \ + --noopt-binequiv -o "$(shell echo "$(2)" | sed 's//$$//')/$$$$src" \ + "$$$$src"; then \ + chmod +x "$(shell echo "$(2)" | sed 's//$$//')/$$$$src"; \ + fi; \ + fi; \ + done +endef