summaryrefslogtreecommitdiffstats
path: root/rules/grep.make
diff options
context:
space:
mode:
Diffstat (limited to 'rules/grep.make')
-rw-r--r--rules/grep.make14
1 files changed, 10 insertions, 4 deletions
diff --git a/rules/grep.make b/rules/grep.make
index b5100fda2..38b1736ec 100644
--- a/rules/grep.make
+++ b/rules/grep.make
@@ -19,10 +19,10 @@ PACKAGES-$(PTXCONF_GREP) += grep
#
GREP_VERSION := 2.5.3
GREP := grep-$(GREP_VERSION)
-GREP_SUFFIX := tar.bz2
-GREP_URL := $(PTXCONF_SETUP_GNUMIRROR)/grep/$(GREP).$(GREP_SUFFIX)
-GREP_SOURCE := $(SRCDIR)/$(GREP).$(GREP_SUFFIX)
-GREP_DIR := $(BUILDDIR)/$(GREP)
+GREP_SUFFIX := tar.bz2
+GREP_URL := $(PTXCONF_SETUP_GNUMIRROR)/grep/$(GREP).$(GREP_SUFFIX)
+GREP_SOURCE := $(SRCDIR)/$(GREP).$(GREP_SUFFIX)
+GREP_DIR := $(BUILDDIR)/$(GREP)
# ----------------------------------------------------------------------------
# Get
@@ -55,6 +55,12 @@ GREP_ENV := $(CROSS_ENV)
#
GREP_AUTOCONF := $(CROSS_AUTOCONF_USR)
+ifdef PTXCONF_GREP_PCRE
+GREP_AUTOCONF += --enable-perl-regexp
+else
+GREP_AUTOCONF += --disable-perl-regexp
+endif
+
$(STATEDIR)/grep.prepare:
@$(call targetinfo)
@$(call clean, $(GREP_DIR)/config.cache)