board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / package / grep / grep.mk
blob74688312df0038a69eea0279fe9ece78ba5b78e3
1 ################################################################################
3 # grep
5 ################################################################################
7 GREP_VERSION = 3.0
8 GREP_SITE = $(BR2_GNU_MIRROR)/grep
9 GREP_SOURCE = grep-$(GREP_VERSION).tar.xz
10 GREP_LICENSE = GPLv3+
11 GREP_LICENSE_FILES = COPYING
12 GREP_CONF_OPTS = --disable-perl-regexp \
13 $(if $(BR2_TOOLCHAIN_USES_MUSL),--with-included-regex)
14 GREP_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext)
16 # link with iconv if enabled
17 ifeq ($(BR2_PACKAGE_LIBICONV),y)
18 GREP_CONF_ENV += LIBS=-liconv
19 GREP_DEPENDENCIES += libiconv
20 endif
22 # link with pcre if enabled
23 ifeq ($(BR2_PACKAGE_PCRE),y)
24 GREP_CONF_OPTS += --enable-perl-regexp
25 GREP_DEPENDENCIES += pcre
26 endif
28 # Full grep preferred over busybox grep
29 ifeq ($(BR2_PACKAGE_BUSYBOX),y)
30 GREP_DEPENDENCIES += busybox
31 endif
33 $(eval $(autotools-package))