2017-01-25 15:54:46 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# sngrep
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
SNGREP_VERSION = v1.4.2
|
|
|
|
SNGREP_SITE = $(call github,irontec,sngrep,$(SNGREP_VERSION))
|
2017-03-30 15:43:33 +02:00
|
|
|
SNGREP_LICENSE = GPL-3.0+
|
2017-01-25 15:54:46 +01:00
|
|
|
SNGREP_LICENSE_FILES = LICENSE
|
|
|
|
SNGREP_AUTORECONF = YES
|
2017-03-04 15:15:58 +01:00
|
|
|
SNGREP_DEPENDENCIES = libpcap ncurses host-pkgconf
|
2017-01-25 15:54:46 +01:00
|
|
|
|
2017-01-29 18:24:38 +01:00
|
|
|
SNGREP_CONF_ENV += \
|
|
|
|
$(if $(BR2_STATIC_LIBS),LIBS="`$(STAGING_DIR)/usr/bin/pcap-config --static --libs`")
|
|
|
|
|
2017-01-25 15:54:46 +01:00
|
|
|
# our ncurses wchar support is not properly detected
|
|
|
|
SNGREP_CONF_OPTS += --disable-unicode
|
|
|
|
|
2017-01-26 22:39:31 +01:00
|
|
|
# openssl and gnutls can't be enabled at the same time.
|
2017-01-25 15:54:46 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
|
|
SNGREP_DEPENDENCIES += openssl
|
2017-01-26 22:39:31 +01:00
|
|
|
SNGREP_CONF_OPTS += --with-openssl --without-gnutls
|
2017-01-27 08:17:18 +01:00
|
|
|
# gnutls support also requires libgcrypt
|
|
|
|
else ifeq ($(BR2_PACKAGE_GNUTLS)$(BR2_PACKAGE_LIBGCRYPT),yy)
|
2017-01-26 22:39:31 +01:00
|
|
|
SNGREP_DEPENDENCIES += gnutls
|
|
|
|
SNGREP_CONF_OPTS += --with-gnutls --without-openssl
|
2017-01-25 15:54:46 +01:00
|
|
|
else
|
2017-01-26 22:39:31 +01:00
|
|
|
SNGREP_CONF_OPTS += --without-gnutls --without-openssl
|
2017-01-25 15:54:46 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_PCRE),y)
|
|
|
|
SNGREP_DEPENDENCIES += pcre
|
|
|
|
SNGREP_CONF_OPTS += --with-pcre
|
|
|
|
else
|
|
|
|
SNGREP_CONF_OPTS += --without-pcre
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|