ae7d59eaae
Fixes:
http://autobuild.buildroot.net/results/f1c6494133806b9fc26ae3ce9e9c6a22fa2eda6f/
Commit 6205b75873
(sngrep: gnutls support also needs libgcrypt) ensured
that --with-gnutls is only used when both gnutls and libgcrypt are enabled,
but it didn't ensure libgcrypt gets built before sngrep or told the
configure script where to find libgcrypt-config, breaking the build.
Fix both issues.
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
40 lines
1.2 KiB
Makefile
40 lines
1.2 KiB
Makefile
################################################################################
|
|
#
|
|
# sngrep
|
|
#
|
|
################################################################################
|
|
|
|
SNGREP_VERSION = v1.4.5
|
|
SNGREP_SITE = $(call github,irontec,sngrep,$(SNGREP_VERSION))
|
|
SNGREP_LICENSE = GPL-3.0+
|
|
SNGREP_LICENSE_FILES = LICENSE
|
|
SNGREP_AUTORECONF = YES
|
|
SNGREP_DEPENDENCIES = libpcap ncurses host-pkgconf
|
|
|
|
SNGREP_CONF_ENV += \
|
|
$(if $(BR2_STATIC_LIBS),LIBS="`$(STAGING_DIR)/usr/bin/pcap-config --static --libs`")
|
|
|
|
SNGREP_CONF_OPTS += --disable-unicode
|
|
|
|
# openssl and gnutls can't be enabled at the same time.
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
SNGREP_DEPENDENCIES += openssl
|
|
SNGREP_CONF_OPTS += --with-openssl --without-gnutls
|
|
# gnutls support also requires libgcrypt
|
|
else ifeq ($(BR2_PACKAGE_GNUTLS)$(BR2_PACKAGE_LIBGCRYPT),yy)
|
|
SNGREP_CONF_ENV += LIBGCRYPT_CONFIG=$(STAGING_DIR)/usr/bin/libgcrypt-config
|
|
SNGREP_DEPENDENCIES += gnutls libgcrypt
|
|
SNGREP_CONF_OPTS += --with-gnutls --without-openssl
|
|
else
|
|
SNGREP_CONF_OPTS += --without-gnutls --without-openssl
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_PCRE),y)
|
|
SNGREP_DEPENDENCIES += pcre
|
|
SNGREP_CONF_OPTS += --with-pcre
|
|
else
|
|
SNGREP_CONF_OPTS += --without-pcre
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|