2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2003-02-15 13:36:32 +01:00
|
|
|
#
|
|
|
|
# grep
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2003-02-15 13:36:32 +01:00
|
|
|
|
2015-11-03 11:52:03 +01:00
|
|
|
GREP_VERSION = 2.22
|
2010-12-17 17:24:10 +01:00
|
|
|
GREP_SITE = $(BR2_GNU_MIRROR)/grep
|
2012-01-24 17:29:07 +01:00
|
|
|
GREP_SOURCE = grep-$(GREP_VERSION).tar.xz
|
2012-09-07 06:48:53 +02:00
|
|
|
GREP_LICENSE = GPLv3+
|
|
|
|
GREP_LICENSE_FILES = COPYING
|
2014-11-07 13:56:57 +01:00
|
|
|
GREP_CONF_OPTS = --disable-perl-regexp \
|
|
|
|
$(if $(BR2_TOOLCHAIN_USES_MUSL),--with-included-regex)
|
2012-09-16 14:57:49 +02:00
|
|
|
GREP_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext)
|
2003-02-15 13:36:32 +01:00
|
|
|
|
2010-12-25 22:33:20 +01:00
|
|
|
# link with iconv if enabled
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBICONV),y)
|
|
|
|
GREP_CONF_ENV += LIBS=-liconv
|
|
|
|
GREP_DEPENDENCIES += libiconv
|
|
|
|
endif
|
|
|
|
|
2014-01-09 13:12:29 +01:00
|
|
|
# link with pcre if enabled
|
|
|
|
ifeq ($(BR2_PACKAGE_PCRE),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
GREP_CONF_OPTS += --enable-perl-regexp
|
2014-01-09 13:12:29 +01:00
|
|
|
GREP_DEPENDENCIES += pcre
|
|
|
|
endif
|
|
|
|
|
2011-11-13 23:27:56 +01:00
|
|
|
# Full grep preferred over busybox grep
|
|
|
|
ifeq ($(BR2_PACKAGE_BUSYBOX),y)
|
|
|
|
GREP_DEPENDENCIES += busybox
|
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|