mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
58 lines
1.4 KiB
Makefile
58 lines
1.4 KiB
Makefile
#
|
|
# Copyright (C) 2013-2024 iopsys
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
PKG_NAME:=mcastmngr
|
|
PKG_VERSION:=1.2.7
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
LOCAL_DEV:=0
|
|
ifneq ($(LOCAL_DEV),1)
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_URL:=https://dev.iopsys.eu/hal/mcastmngr.git
|
|
PKG_SOURCE_VERSION:=275d7e5448333e53f8bc980344b39f7f577d4664
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
|
PKG_MIRROR_HASH:=skip
|
|
endif
|
|
|
|
PKG_LICENSE:=GPL-2.0-only
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include ../bbfdm/bbfdm.mk
|
|
|
|
MAKE_PATH:=bbf_plugin
|
|
|
|
define Package/mcastmngr
|
|
CATEGORY:=Utilities
|
|
TITLE:=Multicast Proxy/Snooping Manager
|
|
DEPENDS:=+!TARGET_brcmbca:mcproxy +libuci +libubox +libubus +libblobmsg-json
|
|
DEPENDS+=+libbbfdm-api +libbbfdm-ubus +dm-service
|
|
endef
|
|
|
|
define Package/mcastmngr/description
|
|
Configures IGMP and MLD snooping and proxy
|
|
endef
|
|
|
|
ifeq ($(LOCAL_DEV),1)
|
|
define Build/Prepare
|
|
$(CP) -rf ~/git/mcastmngr/* $(PKG_BUILD_DIR)/
|
|
endef
|
|
endif
|
|
|
|
TARGET_CFLAGS += -DBBF_VENDOR_PREFIX=\\\"$(CONFIG_BBF_VENDOR_PREFIX)\\\"
|
|
|
|
define Package/mcastmngr/install
|
|
$(CP) ./files/common/* $(1)/
|
|
ifneq ($(CONFIG_TARGET_brcmbca),)
|
|
$(CP) ./files/broadcom/* $(1)/
|
|
else
|
|
$(CP) ./files/linux/* $(1)/
|
|
endif
|
|
$(BBFDM_INSTALL_MS_DM) $(PKG_BUILD_DIR)/bbf_plugin/libmcast_bbf.so $(1) $(PKG_NAME)
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,mcastmngr))
|