f2fcb73c0a749090730f161c6ee8ff00d4d0a10e
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / ngrep / ngrep.mk
1 ################################################################################
2 #
3 # ngrep
4 #
5 ################################################################################
6
7 NGREP_VERSION = 1.45
8 NGREP_SOURCE = ngrep-$(NGREP_VERSION).tar.bz2
9 NGREP_SITE = http://downloads.sourceforge.net/project/ngrep/ngrep/$(NGREP_VERSION)
10 NGREP_LICENSE = BSD-4c-like
11 NGREP_LICENSE_FILES = LICENSE.txt
12 NGREP_INSTALL_STAGING = YES
13
14 NGREP_LIBS = -lpcap -lpcre
15 ifeq ($(BR2_STATIC_LIBS),y)
16 NGREP_LIBS += $(shell $(STAGING_DIR)/usr/bin/pcap-config --static --additional-libs)
17 endif
18 NGREP_CONF_ENV += LIBS+="$(NGREP_LIBS)"
19
20 NGREP_CONF_OPTS =  \
21         --with-pcap-includes=$(STAGING_DIR)/usr/include/pcap \
22         --enable-pcre \
23         --with-pcre=$(STAGING_DIR)/usr \
24         --disable-dropprivs
25
26 NGREP_DEPENDENCIES = libpcap pcre
27
28 $(eval $(autotools-package))