2017-02-08 21:14:30 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=gluon-web
|
|
|
|
PKG_VERSION:=1
|
|
|
|
|
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
2018-03-08 18:49:41 +00:00
|
|
|
include ../gluon.mk
|
2019-11-23 13:35:45 +00:00
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
2018-03-08 18:49:41 +00:00
|
|
|
|
2017-02-08 21:14:30 +00:00
|
|
|
define Package/gluon-web
|
|
|
|
TITLE:=Minimal Lua web framework derived from LuCI
|
2018-07-13 20:45:23 +00:00
|
|
|
DEPENDS:=+lua-jsonc +luaposix
|
2017-02-08 21:14:30 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define lang-config
|
|
|
|
|
|
|
|
config GLUON_WEB_LANG_$(1)
|
|
|
|
bool "$(GLUON_LANG_$(1)) language support for gluon-web"
|
|
|
|
depends on PACKAGE_gluon-web
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/gluon-web/config
|
|
|
|
$(foreach lang,$(GLUON_SUPPORTED_LANGS),$(call lang-config,$(lang)))
|
|
|
|
endef
|
|
|
|
|
2019-11-23 13:35:45 +00:00
|
|
|
define Host/Prepare
|
|
|
|
$(CP) ./src/* $(HOST_BUILD_DIR)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Host/Compile
|
|
|
|
$(call Host/Compile/Default,gluon-po2lmo)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Host/Install
|
|
|
|
$(INSTALL_DIR) $(1)/bin
|
|
|
|
$(INSTALL_BIN) $(HOST_BUILD_DIR)/gluon-po2lmo $(1)/bin/
|
|
|
|
endef
|
|
|
|
|
2018-03-08 18:49:41 +00:00
|
|
|
$(eval $(call BuildPackageGluon,gluon-web))
|
2019-11-23 13:35:45 +00:00
|
|
|
$(eval $(call HostBuild))
|