xref: /OK3568_Linux_fs/buildroot/package/libnl/libnl.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# libnl
4#
5################################################################################
6
7LIBNL_VERSION = 3.5.0
8LIBNL_SITE = https://github.com/thom311/libnl/releases/download/libnl$(subst .,_,$(LIBNL_VERSION))
9LIBNL_LICENSE = LGPL-2.1+
10LIBNL_LICENSE_FILES = COPYING
11LIBNL_CPE_ID_VENDOR = libnl_project
12
13LIBNL_INSTALL_STAGING = YES
14LIBNL_DEPENDENCIES = host-bison host-flex host-pkgconf
15
16ifeq ($(BR2_PACKAGE_LIBNL_TOOLS),y)
17LIBNL_CONF_OPTS += --enable-cli
18else
19LIBNL_CONF_OPTS += --disable-cli
20endif
21
22ifeq ($(BR2_PACKAGE_CHECK),y)
23LIBNL_DEPENDENCIES += check
24LIBNL_CONF_OPTS += --enable-unit-tests
25else
26LIBNL_CONF_OPTS += --disable-unit-tests
27endif
28
29$(eval $(autotools-package))
30