kamailio-5.x: improve module depends

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>
This commit is contained in:
Sebastian Kemper 2018-02-03 13:48:58 +01:00
parent 24b13d2bd7
commit 07bcdd9fa7

View file

@ -93,7 +93,7 @@ define BuildKamailio5Module
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