1*4882a593Smuzhiyun################################################################################ 2*4882a593Smuzhiyun# 3*4882a593Smuzhiyun# snort3 4*4882a593Smuzhiyun# 5*4882a593Smuzhiyun################################################################################ 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunSNORT3_VERSION = 3.1.6.0 8*4882a593SmuzhiyunSNORT3_SITE = $(call github,snort3,snort3,$(SNORT3_VERSION)) 9*4882a593SmuzhiyunSNORT3_LICENSE = GPL-2.0 10*4882a593SmuzhiyunSNORT3_LICENSE_FILES = COPYING LICENSE 11*4882a593Smuzhiyun 12*4882a593SmuzhiyunSNORT3_DEPENDENCIES = \ 13*4882a593Smuzhiyun host-pkgconf daq3 flex hwloc libdnet libpcap luajit openssl pcre zlib 14*4882a593Smuzhiyun 15*4882a593SmuzhiyunSNORT3_CONF_OPTS = \ 16*4882a593Smuzhiyun -DENABLE_GDB=OFF \ 17*4882a593Smuzhiyun -DENABLE_STATIC_DAQ=OFF \ 18*4882a593Smuzhiyun -DMAKE_DOC=OFF 19*4882a593Smuzhiyun 20*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_FLATBUFFERS),y) 21*4882a593SmuzhiyunSNORT3_DEPENDENCIES += flatbuffers 22*4882a593SmuzhiyunSNORT3_CONF_OPTS += -DHAVE_FLATBUFFERS=ON 23*4882a593Smuzhiyunelse 24*4882a593SmuzhiyunSNORT3_CONF_OPTS += -DHAVE_FLATBUFFERS=OFF 25*4882a593Smuzhiyunendif 26*4882a593Smuzhiyun 27*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_LIBICONV),y) 28*4882a593SmuzhiyunSNORT3_DEPENDENCIES += libiconv 29*4882a593SmuzhiyunSNORT3_CONF_OPTS += -DHAVE_ICONV=ON 30*4882a593Smuzhiyunendif 31*4882a593Smuzhiyun 32*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_LIBTIRPC),y) 33*4882a593SmuzhiyunSNORT3_DEPENDENCIES += libtirpc 34*4882a593Smuzhiyunendif 35*4882a593Smuzhiyun 36*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_SAFECLIB),y) 37*4882a593SmuzhiyunSNORT3_DEPENDENCIES += safeclib 38*4882a593SmuzhiyunSNORT3_CONF_OPTS += -DENABLE_SAFEC=ON 39*4882a593Smuzhiyunelse 40*4882a593SmuzhiyunSNORT3_CONF_OPTS += -DENABLE_SAFEC=OFF 41*4882a593Smuzhiyunendif 42*4882a593Smuzhiyun 43*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBUUID),y) 44*4882a593SmuzhiyunSNORT3_DEPENDENCIES += util-linux 45*4882a593SmuzhiyunSNORT3_CONF_OPTS += -DHAVE_UUID=ON 46*4882a593Smuzhiyunelse 47*4882a593SmuzhiyunSNORT3_CONF_OPTS += -DHAVE_UUID=OFF 48*4882a593Smuzhiyunendif 49*4882a593Smuzhiyun 50*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_XZ),y) 51*4882a593SmuzhiyunSNORT3_DEPENDENCIES += xz 52*4882a593SmuzhiyunSNORT3_CONF_OPTS += -DHAVE_LZMA=ON 53*4882a593Smuzhiyunelse 54*4882a593SmuzhiyunSNORT3_CONF_OPTS += -DHAVE_LZMA=OFF 55*4882a593Smuzhiyunendif 56*4882a593Smuzhiyun 57*4882a593Smuzhiyun# Uses __atomic_load_8 58*4882a593Smuzhiyunifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y) 59*4882a593SmuzhiyunSNORT3_CONF_OPTS += -DCMAKE_EXE_LINKER_FLAGS=-latomic 60*4882a593Smuzhiyunendif 61*4882a593Smuzhiyun 62*4882a593Smuzhiyun$(eval $(cmake-package)) 63