iopsys-feed/tr104/Makefile
Vivek Kumar Dutta fbf0aa29a3
tr104: 1.0.1
2023-07-19 16:42:10 +05:30

55 lines
1.2 KiB
Makefile

#
# Copyright (C) 2023 IOPSYS
#
include $(TOPDIR)/rules.mk
PKG_NAME:=tr104
PKG_VERSION:=1.0.1
LOCAL_DEV:=0
ifeq ($(LOCAL_DEV),0)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://dev.iopsys.eu/voice/tr104.git
PKG_SOURCE_VERSION:=17c2ab86f18fac7095166e00d9b86ba099fc934f
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_MIRROR_HASH:=skip
endif
PKG_LICENSE:=BSD-3-Clause
PKG_LICENSE_FILES:=LICENSE
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
define Package/$(PKG_NAME)
SECTION:=utils
CATEGORY:=Utilities
SUBMENU:=TRx69
TITLE:=TR104 Datamodel Daemon
DEPENDS:=+libuci +libubox +libubus +libblobmsg-json +asterisk
endef
define Package/$(PKG_NAME)/description
TR104 datamodel daemon
endef
CMAKE_OPTIONS += \
-DBBF_VENDOR_PREFIX:String="$(CONFIG_BBF_VENDOR_PREFIX)" \
-DDM_ENABLE_UBUS=ON
ifeq ($(LOCAL_DEV),1)
define Build/Prepare
$(CP) ~/git/$(PKG_NAME)/* $(PKG_BUILD_DIR)/
endef
endif
define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_DIR) $(1)/etc/tr104d
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/daemon/ubus/tr104d $(1)/usr/sbin/
$(INSTALL_BIN) ./files/etc/init.d/tr104d $(1)/etc/init.d/
endef
$(eval $(call BuildPackage,$(PKG_NAME)))