components/gawk/Makefile
author Shawn Walker-Salas <shawn.walker@oracle.com>
Wed, 30 Mar 2016 13:33:31 -0700
changeset 5682 94c0ca64c022
parent 5267 42a22f73f3bc
child 6861 6110892450ff
permissions -rw-r--r--
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh 22228656 remove redundant declarations and additions from makefiles 22252545 simplify build rules for components from common upstream 22378457 tclConfig.sh compiler settings are too specific 22727315 httping curses gui missing 22750630 procmail ignores userland cflags and may use private strstr function 22758725 wdiff uses diff from PATH instead of /usr/gnu/bin/diff 22926847 cloog Makefile typo when setting ASLR_MODE 22935090 tk config script has wrong linker flags
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
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
    34
# 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
    35
# 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
    36
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
    37
        '-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
    38
5267
42a22f73f3bc 16797908 Upgrade gawk to 4.1.3
Stacy Yeh <stacy.yeh@oracle.com>
parents: 4770
diff changeset
    39
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
    40
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5267
diff changeset
    41
# 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
    42
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
    43
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
    44
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5267
diff changeset
    45
# 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
    46
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
    47
101
ecb1f3b5f835 7021857 migrate gnu-awk (gawk) from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    48
CONFIGURE_OPTIONS	+=	--infodir=$(CONFIGURE_INFODIR)
181
87e11e685b1f 7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 101
diff changeset
    49
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
    50
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5267
diff changeset
    51
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
    52
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3718
diff changeset
    53
REQUIRED_PACKAGES += library/libsigsegv
5267
42a22f73f3bc 16797908 Upgrade gawk to 4.1.3
Stacy Yeh <stacy.yeh@oracle.com>
parents: 4770
diff changeset
    54
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
    55
REQUIRED_PACKAGES += shell/ksh93
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3718
diff changeset
    56
REQUIRED_PACKAGES += system/library/math