kumquat-buildroot/package/daq3/daq3.mk
Fabrice Fontaine 7c8641e5a9 package/daq3: fix build without threads
pcap module and example unconditionally uses pthread.h

Fixes:
 - http://autobuild.buildroot.org/results/b618bcca1a83704f7f15e76cd1e7f1117cbbd464

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2021-07-24 22:23:19 +02:00

32 lines
824 B
Makefile

################################################################################
#
# daq3
#
################################################################################
DAQ3_VERSION = 3.0.3
DAQ3_SITE = $(call github,snort3,libdaq,v$(DAQ3_VERSION))
DAQ3_LICENSE = GPL-2.0
DAQ3_LICENSE_FILES = COPYING LICENSE
DAQ3_INSTALL_STAGING = YES
DAQ3_DEPENDENCIES = host-pkgconf
# From git
DAQ3_AUTORECONF = YES
DAQ3_CONF_OPTS = --disable-example
ifeq ($(BR2_PACKAGE_LIBNETFILTER_QUEUE),y)
DAQ3_DEPENDENCIES += libnetfilter_queue
DAQ3_CONF_OPTS += --enable-nfq-module
else
DAQ3_CONF_OPTS += --disable-nfq-module
endif
ifeq ($(BR2_PACKAGE_LIBPCAP)$(BR2_TOOLCHAIN_HAS_THREADS),yy)
DAQ3_DEPENDENCIES += libpcap
DAQ3_CONF_OPTS += --enable-pcap-module
else
DAQ3_CONF_OPTS += --disable-pcap-module
endif
$(eval $(autotools-package))