xref: /OK3568_Linux_fs/buildroot/package/smcroute/smcroute.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# smcroute
4#
5################################################################################
6
7SMCROUTE_VERSION = 2.5.3
8SMCROUTE_SITE = https://github.com/troglobit/smcroute/releases/download/$(SMCROUTE_VERSION)
9SMCROUTE_LICENSE = GPL-2.0+
10SMCROUTE_LICENSE_FILES = COPYING
11SMCROUTE_CPE_ID_VENDOR = troglobit
12
13SMCROUTE_CONF_OPTS = --enable-mrdisc
14
15ifeq ($(BR2_PACKAGE_LIBCAP),y)
16SMCROUTE_DEPENDENCIES += libcap
17SMCROUTE_CONF_OPTS += --with-libcap
18else
19SMCROUTE_CONF_OPTS += --without-libcap
20endif
21
22define SMCROUTE_INSTALL_INIT_SYSV
23	$(INSTALL) -m 755 -D package/smcroute/S41smcroute \
24		$(TARGET_DIR)/etc/init.d/S41smcroute
25endef
26
27define SMCROUTE_PRUNE_COMPAT_SCRIPT
28	rm -f $(TARGET_DIR)/usr/sbin/smcroute
29endef
30
31SMCROUTE_POST_INSTALL_TARGET_HOOKS += SMCROUTE_PRUNE_COMPAT_SCRIPT
32
33# We will asume that CONFIG_NET and CONFIG_INET are already
34# set in the kernel configuration provided by the user.
35define SMCROUTE_LINUX_CONFIG_FIXUPS
36	$(call KCONFIG_ENABLE_OPT,CONFIG_IP_MULTICAST)
37	$(call KCONFIG_ENABLE_OPT,CONFIG_IP_MROUTE)
38endef
39
40$(eval $(autotools-package))
41