aboutsummaryrefslogtreecommitdiff
path: root/package/libnl/libnl.mk
blob: 6de6825ca3bf6c30e0dd135fc6ef68691a6d3bcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
################################################################################
#
# libnl
#
################################################################################

LIBNL_VERSION = 3.2.29
LIBNL_SITE = https://github.com/thom311/libnl/releases/download/libnl$(subst .,_,$(LIBNL_VERSION))
LIBNL_LICENSE = LGPL-2.1+
LIBNL_LICENSE_FILES = COPYING
LIBNL_INSTALL_STAGING = YES
LIBNL_DEPENDENCIES = host-bison host-flex host-pkgconf
# Patching configure.ac
LIBNL_AUTORECONF = YES

ifeq ($(BR2_PACKAGE_LIBNL_TOOLS),y)
LIBNL_CONF_OPTS += --enable-cli
else
LIBNL_CONF_OPTS += --disable-cli
endif

ifeq ($(BR2_PACKAGE_CHECK),y)
LIBNL_DEPENDENCIES += check
LIBNL_CONF_OPTS += --enable-unit-tests
else
LIBNL_CONF_OPTS += --disable-unit-tests
endif

$(eval $(autotools-package))