Include a new app to make work recipe - negan07/ancistrus GitHub Wiki
Edit work/dirs.mak
Look at the other included apps as example.
Add the related variables in this way:
NEWAPP_NAME := newapp
VER_$(NEWAPP_NAME) := x.x.x
NEWAPP := $(NEWAPP_NAME)-$(VER_$(NEWAPP_NAME))
NAME_$(NEWAPP) := $(NEWAPP_NAME)$(DBG)
SUBVER_$(NEWAPP) :=
VER_$(NEWAPP) := $(VER_$(NEWAPP_NAME))
DL_$(NEWAPP) := https://www.newapp.com
TAR_$(NEWAPP) := $(NEWAPP).tar.gz
HOME_$(NEWAPP) := https://www.newapp.com
LIC_$(NEWAPP) := GPLv2|GPLv3|BSD|MIT/X|ISC|Private
SEC_$(NEWAPP) := base|lib|aux|admin|net|storage|misc
PRIO_$(NEWAPP) := required|standard|optional
DEP_$(NEWAPP) :=
DESC_$(NEWAPP) := a useful tool for useful use
DIRLIST += $(NEWAPP)
TARLIST += $(NEWAPP)
change NEWAPP with app name and on VER_$(APP_NAME) x.x.x with the app version and SUBVER_$(NEWAPP) with an optional sub version if needed:
follow the opkg documentation for naming and versioning.
SEC_$(NEWAPP) must have base|lib|aux|admin|net|storage|misc depending;
DEP_$(NEWAPP) includes the dependencies (the packet needed to make this run): if more than 1, they are separated with comma , (e.g. nvram,iproute2,...);
DESC_$(NEWAPP) is a summary brief description of the newapp;
DIRLIST to append ( += ) newapp into dir list for make treatment: if you build a brand new and you don't include patches on diff dir app don't append it;
TARLIST to append ( += ) newapp downloaded pack into tar list for make treatment: if you don't need to download anything don't append it;
Finally append $(NEWAPP) to either BUILTINLIB or BUILTIN or THIRDPARTYLIB or THIRDPARTY depending. e.g.: THIRDPARTY += $(NEWAPP)