author | Rich Burridge <rich.burridge@oracle.com> |
Thu, 08 Sep 2016 09:15:40 -0700 | |
changeset 6861 | 6110892450ff |
parent 5682 | 94c0ca64c022 |
child 7176 | 0e37c7cc2ce5 |
permissions | -rw-r--r-- |
101
ecb1f3b5f835
7021857 migrate gnu-awk (gawk) from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
1 |
# |
ecb1f3b5f835
7021857 migrate gnu-awk (gawk) from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
ecb1f3b5f835
7021857 migrate gnu-awk (gawk) from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
3 |
# |
ecb1f3b5f835
7021857 migrate gnu-awk (gawk) from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
ecb1f3b5f835
7021857 migrate gnu-awk (gawk) from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
ecb1f3b5f835
7021857 migrate gnu-awk (gawk) from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
ecb1f3b5f835
7021857 migrate gnu-awk (gawk) from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
7 |
# |
ecb1f3b5f835
7021857 migrate gnu-awk (gawk) from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
ecb1f3b5f835
7021857 migrate gnu-awk (gawk) from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
ecb1f3b5f835
7021857 migrate gnu-awk (gawk) from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
ecb1f3b5f835
7021857 migrate gnu-awk (gawk) from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
ecb1f3b5f835
7021857 migrate gnu-awk (gawk) from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
12 |
# |
ecb1f3b5f835
7021857 migrate gnu-awk (gawk) from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
ecb1f3b5f835
7021857 migrate gnu-awk (gawk) from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
ecb1f3b5f835
7021857 migrate gnu-awk (gawk) from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
ecb1f3b5f835
7021857 migrate gnu-awk (gawk) from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
ecb1f3b5f835
7021857 migrate gnu-awk (gawk) from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
ecb1f3b5f835
7021857 migrate gnu-awk (gawk) from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
18 |
# |
ecb1f3b5f835
7021857 migrate gnu-awk (gawk) from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
ecb1f3b5f835
7021857 migrate gnu-awk (gawk) from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
20 |
# |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5267
diff
changeset
|
21 |
|
101
ecb1f3b5f835
7021857 migrate gnu-awk (gawk) from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
22 |
# |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5267
diff
changeset
|
23 |
# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5267
diff
changeset
|
24 |
# |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5267
diff
changeset
|
25 |
BUILD_BITS= 64 |
101
ecb1f3b5f835
7021857 migrate gnu-awk (gawk) from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
26 |
include ../../make-rules/shared-macros.mk |
ecb1f3b5f835
7021857 migrate gnu-awk (gawk) from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
27 |
|
ecb1f3b5f835
7021857 migrate gnu-awk (gawk) from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
28 |
COMPONENT_NAME= gawk |
5267
42a22f73f3bc
16797908 Upgrade gawk to 4.1.3
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4770
diff
changeset
|
29 |
COMPONENT_VERSION= 4.1.3 |
42a22f73f3bc
16797908 Upgrade gawk to 4.1.3
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4770
diff
changeset
|
30 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz |
800
2ad056ed89ec
7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
609
diff
changeset
|
31 |
COMPONENT_ARCHIVE_HASH= \ |
5267
42a22f73f3bc
16797908 Upgrade gawk to 4.1.3
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4770
diff
changeset
|
32 |
sha256:e3cf55e91e31ea2845f8338bedd91e40671fc30e4d82ea147d220e687abda625 |
101
ecb1f3b5f835
7021857 migrate gnu-awk (gawk) from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
33 |
|
6861
6110892450ff
22890928 deliver gawk section 3am man pages in /usr/share/man/man3
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
34 |
# Adjust references to section 3am to be section 3 in the extensions man pages. |
6110892450ff
22890928 deliver gawk section 3am man pages in /usr/share/man/man3
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
35 |
COMPONENT_POST_CONFIGURE_ACTION = \ |
6110892450ff
22890928 deliver gawk section 3am man pages in /usr/share/man/man3
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
36 |
(cd $(SOURCE_DIR)/extension ; \ |
6110892450ff
22890928 deliver gawk section 3am man pages in /usr/share/man/man3
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
37 |
mlist=`/usr/bin/find . -name '*.3am'` ; \ |
6110892450ff
22890928 deliver gawk section 3am man pages in /usr/share/man/man3
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
38 |
for f in $$mlist ; do \ |
6110892450ff
22890928 deliver gawk section 3am man pages in /usr/share/man/man3
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
39 |
$(GSED) -i -e 's|3am|3|g' $$f ; \ |
6110892450ff
22890928 deliver gawk section 3am man pages in /usr/share/man/man3
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
40 |
done) |
6110892450ff
22890928 deliver gawk section 3am man pages in /usr/share/man/man3
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
41 |
|
3718
e20e9cf97325
20456736 gawk is missing master test files and which needs makefile change
James Chang <james.c.chang@Oracle.COM>
parents:
2225
diff
changeset
|
42 |
# The additional gawk specific set of transforms to be applied to the |
e20e9cf97325
20456736 gawk is missing master test files and which needs makefile change
James Chang <james.c.chang@Oracle.COM>
parents:
2225
diff
changeset
|
43 |
# test results to try to normalize them. |
e20e9cf97325
20456736 gawk is missing master test files and which needs makefile change
James Chang <james.c.chang@Oracle.COM>
parents:
2225
diff
changeset
|
44 |
COMPONENT_TEST_TRANSFORMS += \ |
e20e9cf97325
20456736 gawk is missing master test files and which needs makefile change
James Chang <james.c.chang@Oracle.COM>
parents:
2225
diff
changeset
|
45 |
'-e "s|\(^/usr/gnu/bin/make\).*|\1|" ' |
e20e9cf97325
20456736 gawk is missing master test files and which needs makefile change
James Chang <james.c.chang@Oracle.COM>
parents:
2225
diff
changeset
|
46 |
|
5267
42a22f73f3bc
16797908 Upgrade gawk to 4.1.3
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4770
diff
changeset
|
47 |
TPNO= 26217 |
1948
2d1537e7942d
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
1623
diff
changeset
|
48 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5267
diff
changeset
|
49 |
# must build tests before using |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5267
diff
changeset
|
50 |
SYSTEM_TEST_TARGET= build $(SYSTEM_TEST_64) |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5267
diff
changeset
|
51 |
include $(WS_MAKE_RULES)/gnu-component.mk |
101
ecb1f3b5f835
7021857 migrate gnu-awk (gawk) from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
52 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5267
diff
changeset
|
53 |
# Utility executables are intentionally delivered to the 32-bit lib directory. |
1623
d468c2c1e73d
18042697 Various Userland components need ASLR'ing and 64-bit-ing
Rich Burridge <rich.burridge@oracle.com>
parents:
1058
diff
changeset
|
54 |
CONFIGURE_LIBDIR.64 = $(CONFIGURE_PREFIX)/lib |
d468c2c1e73d
18042697 Various Userland components need ASLR'ing and 64-bit-ing
Rich Burridge <rich.burridge@oracle.com>
parents:
1058
diff
changeset
|
55 |
|
101
ecb1f3b5f835
7021857 migrate gnu-awk (gawk) from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
56 |
CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR) |
181
87e11e685b1f
7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
101
diff
changeset
|
57 |
CONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_LIBDIR.$(BITS)) |
101
ecb1f3b5f835
7021857 migrate gnu-awk (gawk) from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
58 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5267
diff
changeset
|
59 |
COMPONENT_SYSTEM_TEST_ARGS = AWKPROG=$(USRBINDIR)/gawk |
4339
6501cf9c29f9
21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents:
3817
diff
changeset
|
60 |
|
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3718
diff
changeset
|
61 |
REQUIRED_PACKAGES += library/libsigsegv |
5267
42a22f73f3bc
16797908 Upgrade gawk to 4.1.3
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4770
diff
changeset
|
62 |
REQUIRED_PACKAGES += library/readline |
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3718
diff
changeset
|
63 |
REQUIRED_PACKAGES += shell/ksh93 |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3718
diff
changeset
|
64 |
REQUIRED_PACKAGES += system/library/math |