kumquat-buildroot/package/ngrep/ngrep.mk
Thomas Petazzoni 300f9c9c9d package: remove useless arguments from AUTOTARGETS
Thanks to the pkgparentdir and pkgname functions, we can rewrite the
AUTOTARGETS macro in a way that avoids the need for each package to
repeat its name and the directory in which it is present.

[Peter: pkgdir->pkgparentdir]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2011-09-29 23:12:27 +02:00

26 lines
671 B
Makefile

#############################################################
#
# ngrep
#
#############################################################
NGREP_VERSION = 1.45
NGREP_SOURCE = ngrep-$(NGREP_VERSION).tar.bz2
NGREP_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/ngrep/ngrep/$(NGREP_VERSION)
NGREP_INSTALL_STAGING = YES
NGREP_INSTALL_TARGET = YES
NGREP_CONF_ENV = LDFLAGS="-lpcre"
NGREP_CONF_OPT = \
--with-pcap-includes=$(STAGING_DIR)/usr/include \
--enable-pcre \
--with-pcre=$(STAGING_DIR)/usr \
--disable-dropprivs
ifeq ($(BR2_INET_IPV6),y)
NGREP_CONF_OPT += --enable-ipv6
endif
NGREP_DEPENDENCIES = libpcap pcre
$(eval $(call AUTOTARGETS))