1 ###############################################################################
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007, 2008, 2009 Michael Tremer & Christian Schmidt #
6 # This program is free software: you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
11 # This program is distributed in the hope that it will be useful, #
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14 # GNU General Public License for more details. #
16 # You should have received a copy of the GNU General Public License #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
19 ###############################################################################
21 ###############################################################################
23 ###############################################################################
31 THISAPP = $(PKG_NAME)-$(PKG_VER)
32 DL_FILE = $(THISAPP).tar.bz2
33 DIR_APP = $(DIR_SRC)/$(THISAPP)
35 OBJECT = $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/$(THISAPP)
39 GROUP = Applications/Text
44 URL = http://www.gnu.org/software/grep/
46 SHORT_DESC = A pattern matching utilities.
49 The GNU versions of commonly used grep utilities. Grep searches through \
50 textual input for lines which contain a match to a specified pattern and then \
51 prints the matching lines. GNU's grep utilities include grep, egrep and fgrep.
54 ###############################################################################
56 ###############################################################################
58 objects = $(DL_FILE) \
59 $(THISAPP)-upstream_fixes-1.patch \
60 $(THISAPP)-debian_fixes-1.patch
75 ###############################################################################
76 # Installation Details
77 ###############################################################################
81 @rm -rf $(DIR_APP) && cd $(DIR_SRC) && $(EXTRACTOR) $(DIR_DL)/$(DL_FILE)
83 ifeq "$(STAGE)" "toolchain"
84 # --without-included-regex makes Grep use libc for regex. This gets rid of
85 # some compiler warnings, and I can't imagine why it's unsafe.
89 --prefix=$(TOOLS_DIR) \
90 --disable-perl-regexp \
91 --without-included-regex
92 cd $(DIR_APP) && make $(PARALLELISMFLAGS)
93 cd $(DIR_APP) && make install
96 ifeq "$(STAGE)" "base"
97 cd $(DIR_APP) && patch -Np1 -i $(DIR_PATCHES)/$(THISAPP)-debian_fixes-1.patch
98 cd $(DIR_APP) && patch -Np1 -i $(DIR_PATCHES)/$(THISAPP)-upstream_fixes-1.patch
104 --without-included-regex
105 cd $(DIR_APP) && make $(PARALLELISMFLAGS)
106 cd $(DIR_APP) && make install