scancpan: fix detection of native module
[buildroot-gz.git] / package / quagga / quagga.mk
blobce1d34b264ca51c7612b87b520e24a779e8e5240
1 ################################################################################
3 # quagga
5 ################################################################################
7 QUAGGA_VERSION = 0.99.24.1
8 QUAGGA_SOURCE = quagga-$(QUAGGA_VERSION).tar.xz
9 QUAGGA_SITE = http://download.savannah.gnu.org/releases/quagga
10 QUAGGA_DEPENDENCIES = host-gawk
11 QUAGGA_LICENSE = GPLv2+
12 QUAGGA_LICENSE_FILES = COPYING
13 QUAGGA_CONF_OPTS = --program-transform-name=''
15 QUAGGA_CONF_OPTS += $(if $(BR2_PACKAGE_QUAGGA_ZEBRA),--enable-zebra,--disable-zebra)
16 QUAGGA_CONF_OPTS += $(if $(BR2_PACKAGE_QUAGGA_BABELD),--enable-babeld,--disable-babeld)
17 QUAGGA_CONF_OPTS += $(if $(BR2_PACKAGE_QUAGGA_BGPD),--enable-bgpd,--disable-bgpd)
18 QUAGGA_CONF_OPTS += $(if $(BR2_PACKAGE_QUAGGA_RIPD),--enable-ripd,--disable-ripd)
19 QUAGGA_CONF_OPTS += $(if $(BR2_PACKAGE_QUAGGA_RIPNGD),--enable-ripngd,--disable-ripngd)
20 QUAGGA_CONF_OPTS += $(if $(BR2_PACKAGE_QUAGGA_OSPFD),--enable-ospfd,--disable-ospfd)
21 QUAGGA_CONF_OPTS += $(if $(BR2_PACKAGE_QUAGGA_OSPF6D),--enable-ospf6d,--disable-ospf6d)
22 QUAGGA_CONF_OPTS += $(if $(BR2_PACKAGE_QUAGGA_PIMD),--enable-pimd,--disable-pimd)
23 QUAGGA_CONF_OPTS += $(if $(BR2_PACKAGE_QUAGGA_WATCHQUAGGA),--enable-watchquagga,--disable-watchquagga)
24 QUAGGA_CONF_OPTS += $(if $(BR2_PACKAGE_QUAGGA_ISISD),--enable-isisd,--disable-isisd)
25 QUAGGA_CONF_OPTS += $(if $(BR2_PACKAGE_QUAGGA_BGP_ANNOUNCE),--enable-bgp-announce,--disable-bgp-announce)
26 QUAGGA_CONF_OPTS += $(if $(BR2_PACKAGE_QUAGGA_TCP_ZERBRA),--enable-tcp-zebra,--disable-tcp-zebra)
27 QUAGGA_CONF_OPTS += $(if $(BR2_PACKAGE_QUAGGA_OPAQUE_LSA),--enable-opaque-lsa,--disable-opaque-lsa)
29 ifeq ($(BR2_PACKAGE_QUAGGA_SNMP),y)
30 QUAGGA_CONF_ENV += ac_cv_path_NETSNMP_CONFIG=$(STAGING_DIR)/usr/bin/net-snmp-config
31 QUAGGA_CONF_OPTS += --enable-snmp=agentx
32 QUAGGA_DEPENDENCIES += netsnmp
33 endif
35 ifeq ($(BR2_PACKAGE_QUAGGA_VTYSH),y)
36 QUAGGA_CONF_OPTS += --enable-vtysh
37 QUAGGA_DEPENDENCIES += readline
38 else
39 QUAGGA_CONF_OPTS += --disable-vtysh
40 endif
42 ifeq ($(BR2_arc),y)
43 QUAGGA_CONF_OPTS += --disable-pie
44 endif
46 $(eval $(autotools-package))