Makefile 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Copyright (C) 2012 Nils Schneider <nils at nilsschneider.net>
  2. # This is free software, licensed under the Apache 2.0 license.
  3. include $(TOPDIR)/rules.mk
  4. PKG_NAME:=gluon-config-mode-core
  5. PKG_VERSION:=2
  6. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  7. include $(GLUONDIR)/include/package.mk
  8. PKG_CONFIG_DEPENDS += $(GLUON_I18N_CONFIG)
  9. define Package/gluon-config-mode-core
  10. SECTION:=gluon
  11. CATEGORY:=Gluon
  12. TITLE:=Luci based config mode for user friendly setup of new mesh nodes
  13. DEPENDS:=gluon-setup-mode-virtual +gluon-luci-theme +gluon-lock-password $(GLUON_I18N_PACKAGES)
  14. PROVIDES:=gluon-config-mode-core-virtual
  15. endef
  16. define Build/Prepare
  17. mkdir -p $(PKG_BUILD_DIR)
  18. endef
  19. define Build/Configure
  20. endef
  21. define Build/Compile
  22. $(call GluonBuildI18N,gluon-config-mode-core,i18n)
  23. $(call GluonSrcDiet,./luasrc,$(PKG_BUILD_DIR)/luadest/)
  24. endef
  25. define Package/gluon-config-mode-core/install
  26. $(CP) ./files/* $(1)/
  27. $(CP) $(PKG_BUILD_DIR)/luadest/* $(1)/
  28. $(call GluonInstallI18N,gluon-config-mode-core,$(1))
  29. endef
  30. $(eval $(call BuildPackage,gluon-config-mode-core))