define Build/Compile
- for i in '$(PKG_SELECTED_MODULES)'; do $(MAKE) -C$(PKG_BUILD_DIR)/$$i build LUA_TARGET=$(LUA_TARGET); done
+ for i in $(PKG_SELECTED_MODULES); do $(MAKE) -C$(PKG_BUILD_DIR)/$$$$i build LUA_TARGET=$(LUA_TARGET); done
endef
### Templates ###
DEPENDS:=+luci-mod-freifunk
endef
+define Package/luci/thtemplate
+ $(call Package/luci/libtemplate)
+ SUBMENU:=LuCI - Themes
+ DEPENDS:=+luci-web
+endef
+
define Package/luci/webtemplate
$(call Package/luci/libtemplate)
SUBMENU:=LuCI - Webinterface Components
define Package/luci-web/install
$(call Package/luci/install/template,$(1),libs/web)
- $(call Package/luci/install/template,$(1),themes/fledermaus)
endef
define Package/luci-mod-admin-core
$(call Package/luci/webtemplate)
- DEPENDS+=+luci-web +luci-cbi
+ DEPENDS+=+luci-web +luci-cbi +luci-theme-fledermaus
TITLE:=Administration module
endef
$(call Package/luci/install/template,$(1),libs/sgi-webuci)
endef
-### Compile Templates ###
+### Templates ###
+define Package/luci-theme-fledermaus
+ $(call Package/luci/thtemplate)
+ TITLE:=Fledermaus (default)
+endef
+
+define Package/luci-theme-fledermaus/install
+ $(call Package/luci/install/template,$(1),themes/fledermaus)
+endef
+
+
+### Compile ###
ifneq ($(CONFIG_PACKAGE_luci-core),)
PKG_SELECTED_MODULES+=libs/core
endif
ifneq ($(CONFIG_PACKAGE_luci-app-ffwizard-leipzig),)
PKG_SELECTED_MODULES+=applications/luci-ffwizard-leipzig
endif
+ifneq ($(CONFIG_PACKAGE_luci-app-firewall),)
+ PKG_SELECTED_MODULES+=applications/luci-fw
+endif
ifneq ($(CONFIG_PACKAGE_luci-app-splash),)
PKG_SELECTED_MODULES+=applications/luci-splash
endif
PKG_SELECTED_MODULES+=libs/sgi-webuci
endif
+ifneq ($(CONFIG_PACKAGE_luci-theme-fledermaus),)
+ PKG_SELECTED_MODULES+=themes/fledermaus
+endif
+
$(eval $(call BuildPackage,luci-core))
$(eval $(call BuildPackage,luci-cbi))
$(eval $(call BuildPackage,luci-sgi-haserl))
$(eval $(call BuildPackage,luci-sgi-webuci))
+
+$(eval $(call BuildPackage,luci-theme-fledermaus))