Currently the Makefile pulls in depends even for packages which are not
selected. Fix this by prefixing the depends with the respective
PACKAGE_* item.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
define Package/kamailio5-mod-$(subst _,-,$(1))
$$(call Package/kamailio5/Default)
TITLE:=$(2) for Kamailio5
- DEPENDS:=kamailio5 $(4)
+ DEPENDS:=kamailio5 $(patsubst +%,+PACKAGE_kamailio5-mod-$(subst _,-,$(1)):%,$(4))
endef
define Package/kamailio5-mod-$(subst _,-,$(1))/install