author | Mike Sullivan <Mike.Sullivan@Oracle.COM> |
Thu, 10 Feb 2011 10:54:36 -0800 | |
changeset 83 | 9ab0deb97868 |
parent 80 | 7f8350e3f91a |
child 99 | c15c9099bb44 |
permissions | -rw-r--r-- |
80
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
1 |
# |
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
3 |
# |
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
7 |
# |
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
12 |
# |
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
18 |
# |
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
20 |
# |
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
21 |
# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
22 |
# |
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
23 |
include ../../make-rules/shared-macros.mk |
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
24 |
|
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
25 |
COMPONENT_NAME= grep |
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
26 |
COMPONENT_VERSION= 2.5.4 |
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
27 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
28 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2 |
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
29 |
COMPONENT_ARCHIVE_HASH= sha1:9bbd4f02b18bb264e0fcb17293b6f0445c8694d2 |
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
30 |
COMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/grep/$(COMPONENT_ARCHIVE) |
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
31 |
|
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
32 |
include ../../make-rules/prep.mk |
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
33 |
include ../../make-rules/configure.mk |
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
34 |
include ../../make-rules/ips.mk |
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
35 |
|
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
36 |
CFLAGS += $(FEATURES_EXTENSIONS) |
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
37 |
|
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
38 |
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
39 |
CONFIGURE_OPTIONS += --prefix=/usr |
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
40 |
CONFIGURE_OPTIONS += --program-prefix=g |
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
41 |
|
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
42 |
PROGS = egrep fgrep grep |
83
9ab0deb97868
7017671 move patch to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
80
diff
changeset
|
43 |
GNUPROGS = $(PROGS) |
9ab0deb97868
7017671 move patch to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
80
diff
changeset
|
44 |
GNUMAN1= $(PROGS:%=%.1) |
9ab0deb97868
7017671 move patch to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
80
diff
changeset
|
45 |
SFWPROGS = $(PROGS:%=g%) |
80
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
46 |
|
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
47 |
include ../../make-rules/shared-targets.mk |
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
48 |
|
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
49 |
# common targets |
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
50 |
build: $(BUILD_32) |
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
51 |
|
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
52 |
install: $(INSTALL_32) $(PROTOSFWLINKS) $(PROTOGNULINKS) \ |
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
53 |
$(PROTOGNUMAN1LINKS) |
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
54 |
|
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
55 |
test32: $(BUILD_32) |
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
56 |
(cd $(BUILD_DIR_32); env - $(GMAKE) check) |
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
57 |
|
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
58 |
test: test32 |
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
59 |
|
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
60 |
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
61 |
|
7f8350e3f91a
7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
62 |
include ../../make-rules/depend.mk |