xref: /OK3568_Linux_fs/buildroot/package/daq/daq.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# daq
4#
5################################################################################
6
7DAQ_VERSION = 2.0.7
8DAQ_SITE = https://www.snort.org/downloads/snort
9DAQ_LICENSE = GPL-2.0
10DAQ_LICENSE_FILES = COPYING
11DAQ_INSTALL_STAGING = YES
12DAQ_DEPENDENCIES = host-bison host-flex
13# 0002-parallel-grammar.patch
14# 2.0.7 needs autoreconf due to configure being older than configure.ac
15DAQ_AUTORECONF = YES
16
17# disable ipq module as libipq is deprecated
18DAQ_CONF_OPTS += --disable-ipq-module
19
20# Set --with-dnet-{includes,libraries} even if ipq and nfq modules are disabled
21# otherwise daq will call 'dnet-config --cflags' and 'dnet-config --libs' which
22# will result in a build failure if libdnet is installed on host
23DAQ_CONF_OPTS += \
24	--with-dnet-includes=$(STAGING_DIR)/usr/include \
25	--with-dnet-libraries=$(STAGING_DIR)/usr/lib
26
27ifeq ($(BR2_PACKAGE_LIBDNET)$(BR2_PACKAGE_LIBNETFILTER_QUEUE),yy)
28DAQ_DEPENDENCIES += libdnet libnetfilter_queue
29DAQ_CONF_OPTS += --enable-nfq-module
30else
31DAQ_CONF_OPTS += --disable-nfq-module
32endif
33
34ifeq ($(BR2_PACKAGE_LIBPCAP),y)
35DAQ_DEPENDENCIES += libpcap
36# assume these flags are available to prevent configure from running
37# test programs while cross compiling
38DAQ_CONF_ENV += \
39	ac_cv_lib_pcap_pcap_lib_version=yes \
40	daq_cv_libpcap_version_1x=yes
41DAQ_CONF_OPTS += --enable-pcap-module
42else
43DAQ_CONF_OPTS += --disable-pcap-module
44endif
45
46$(eval $(autotools-package))
47