1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# -*-makefile-*-
#
# Copyright (C) 2008 by Luotao Fu <l.fu@pengutronix.de>
# (C) 2010 by Michael Olbrich <m.olbrich@pengutronix.de>
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#
#
# We provide this package
#
PACKAGES-$(PTXCONF_GREP) += grep
#
# Paths and names
#
GREP_VERSION := 2.5.3
GREP_MD5 := 27061ce1fde82876970b6549a156da8b
GREP := grep-$(GREP_VERSION)
GREP_SUFFIX := tar.bz2
GREP_URL := $(call ptx/mirror, GNU, grep/$(GREP).$(GREP_SUFFIX))
GREP_SOURCE := $(SRCDIR)/$(GREP).$(GREP_SUFFIX)
GREP_DIR := $(BUILDDIR)/$(GREP)
# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------
$(GREP_SOURCE):
@$(call targetinfo)
@$(call get, GREP)
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
GREP_PATH := PATH=$(CROSS_PATH)
GREP_ENV := $(CROSS_ENV)
#
# autoconf
#
GREP_AUTOCONF := $(CROSS_AUTOCONF_ROOT)
ifdef PTXCONF_GREP_PCRE
GREP_AUTOCONF += --enable-perl-regexp
else
GREP_AUTOCONF += --disable-perl-regexp
endif
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/grep.targetinstall:
@$(call targetinfo)
@$(call install_init, grep)
@$(call install_fixup, grep,PRIORITY,optional)
@$(call install_fixup, grep,SECTION,base)
@$(call install_fixup, grep,AUTHOR,"Luotao Fu <l.fu@pengutronix.de>")
@$(call install_fixup, grep,DESCRIPTION,missing)
@$(call install_copy, grep, 0, 0, 0755, -, /bin/grep)
@$(call install_finish, grep)
@$(call touch)
# vim: syntax=make
|