1. Open your package/Makefile
add for build opkg ,opkg/host and ncurse
#++++++++++++++++++++++++++++++++++
define Build/Compile/library
@echo "**************************************************************************"
@echo "************************ Build VOIP Required Library ********************"
@echo "**************************************************************************"
sleep 3; \
cd $(TOPDIR) && make package/opkg/install V=s; \
cd $(TOPDIR) && make package/opkg/host/install V=s; \
cd $(TOPDIR) && make package/ncurse/install V=99
endef
#++++++++++++++++++++++++++++++++++++
2. Put our private define on OPENWRT standard package compile build flow
define Build/Compile
$(call Build/Compile/library) # Insert call our private compile make target.
$(MAKE) -C $(PKG_BUILD_DIR)/builtins LDFLAGS_FOR_BUILD= mkbuiltins
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
SHELL="/bin/bash" \
all
endef