mirror of
https://github.com/openwrt/luci
synced 2025-01-08 12:08:04 +08:00
build: luci.mk: allow overriding menu category and section values
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
848fa6effd
commit
de2c0451f3
6
luci.mk
6
luci.mk
@ -10,6 +10,8 @@ LUCI_BASENAME?=$(patsubst luci-$(LUCI_TYPE)-%,%,$(LUCI_NAME))
|
||||
LUCI_LANGUAGES:=$(sort $(filter-out templates,$(notdir $(wildcard ${CURDIR}/po/*))))
|
||||
LUCI_DEFAULTS:=$(notdir $(wildcard ${CURDIR}/root/etc/uci-defaults/*))
|
||||
LUCI_PKGARCH?=$(if $(realpath src/Makefile),,all)
|
||||
LUCI_SECTION?=luci
|
||||
LUCI_CATEGORY?=LuCI
|
||||
|
||||
# Language code titles
|
||||
LUCI_LANG.ar=العربية (Arabic)
|
||||
@ -119,8 +121,8 @@ PKG_GITBRANCH?=$(if $(DUMP),x,$(strip $(shell \
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/$(PKG_NAME)
|
||||
SECTION:=luci
|
||||
CATEGORY:=LuCI
|
||||
SECTION:=$(LUCI_SECTION)
|
||||
CATEGORY:=$(LUCI_CATEGORY)
|
||||
SUBMENU:=$(if $(LUCI_MENU.$(LUCI_TYPE)),$(LUCI_MENU.$(LUCI_TYPE)),$(LUCI_MENU.app))
|
||||
TITLE:=$(if $(LUCI_TITLE),$(LUCI_TITLE),LuCI $(LUCI_NAME) $(LUCI_TYPE))
|
||||
DEPENDS:=$(LUCI_DEPENDS)
|
||||
|
Loading…
Reference in New Issue
Block a user