# # Copyright (C) 2022 IOPSYS Software Solutions AB # include $(TOPDIR)/rules.mk PKG_NAME:=evoice PKG_VERSION:=0.2.1 LOCAL_DEV=0 ifneq ($(LOCAL_DEV),1) PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/evoice.git PKG_SOURCE_VERSION:=f2477946f9e142d01820b38e32ce98a781e0310e PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz PKG_MIRROR_HASH:=skip endif PKG_LICENSE:=PROPRIETARY PKG_LICENSE_FILES:=LICENSE # All config variable that are passed to the make invocation, directly or # indirectly. This ensures that the package is rebuilt on config-changes. #PKG_CONFIG_DEPENDS:=CONFIG_TARGET_BOARD include $(INCLUDE_DIR)/package.mk define Package/$(PKG_NAME) CATEGORY:=Network SUBMENU:=Telephony TITLE:=Ensemble Voice URL:= DEPENDS:= +libubox +libubus +libpicoevent +libuci +libstdcpp +TARGET_iopsys_brcm63xx_arm:bcmkernel +TARGET_iopsys_econet:kmod-voip_driver endef define Package/$(PKG_NAME)/description Ensemble Voice. A stand alone SIP VoIP application. endef ifeq ($(LOCAL_DEV),1) # If you want to build the code from your own local repositiory enable # LOCAL_DEV and change the path below to your own git repository. define Build/Prepare rsync -av /swdev/bide/evoice_clean/* $(PKG_BUILD_DIR)/ endef endif ifeq ($(CONFIG_TARGET_iopsys_brcm63xx_arm),y) TARGET_PLATFORM=BROADCOM export IDIR = $(STAGING_DIR)/usr/include export BDIR = bcm963xx/userspace/private/apps/voice export _XFLAGS = -I$(IDIR) -I$(IDIR)/$(BDIR)/inc -I$(IDIR)/bcm963xx/xchg/bos/publicInc -I$(IDIR)/bcm963xx/bcmdrivers/broadcom/include/bcm963xx else ifeq ($(CONFIG_TARGET_iopsys_econet),y) TARGET_PLATFORM=ECONET endif export TARGET_PLATFORM define Build/Compile @echo "TARGET_PLATFORM=${TARGET_PLATFORM}" +$(MAKE) -r -R -C $(PKG_BUILD_DIR) -f _bld/src/cdabs.mk SWB=b_gxxqca6 HWA=a_openwrt HWC=c_hosted OSP=p_posix TRG=SVrgBcmFxs LIF=cerder DBG=dbg +$(MAKE) -r -R -C $(PKG_BUILD_DIR) -f _bld/src/cdabs.mk SWB=b_gxxqca6 HWA=a_openwrt HWC=c_hosted OSP=p_posix TRG=libvoiceservice LIF=cerder DBG=dbg endef define Package/evoice/install $(CP) ./files/* $(1)/ $(INSTALL_DIR) $(1)/usr/sbin $(INSTALL_DIR) $(1)/usr/lib/bbfdm $(INSTALL_BIN) $(PKG_BUILD_DIR)/_bin/a_openwrt/evoice $(1)/usr/sbin/ $(INSTALL_BIN) $(PKG_BUILD_DIR)/_bin/a_openwrt/libvoiceservice.so $(1)/usr/lib/bbfdm/ endef $(eval $(call BuildPackage,evoice))