components/gawk/Makefile
author Stacy Yeh <stacy.yeh@oracle.com>
Thu, 21 May 2015 13:48:49 -0700
changeset 4339 6501cf9c29f9
parent 3817 30b42c38bbc4
child 4770 b4623be47e9d
permissions -rw-r--r--
21116842 add system-test targets to each component Makefile and to top-level Makefiles
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
#
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
    21
# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
101
ecb1f3b5f835 7021857 migrate gnu-awk (gawk) from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    22
#
ecb1f3b5f835 7021857 migrate gnu-awk (gawk) from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    23
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
    24
ecb1f3b5f835 7021857 migrate gnu-awk (gawk) from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    25
COMPONENT_NAME=		gawk
836
7a4ce94a1632 7110926 gawk fails to determine string length in non-C locales
Craig Mohrman <craig.mohrman@oracle.com>
parents: 800
diff changeset
    26
COMPONENT_VERSION=	3.1.8
609
775168282b2f 7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents: 181
diff changeset
    27
COMPONENT_PROJECT_URL=	http://www.gnu.org/software/gawk/
101
ecb1f3b5f835 7021857 migrate gnu-awk (gawk) from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    28
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
836
7a4ce94a1632 7110926 gawk fails to determine string length in non-C locales
Craig Mohrman <craig.mohrman@oracle.com>
parents: 800
diff changeset
    29
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.bz2
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
    30
COMPONENT_ARCHIVE_HASH=	\
836
7a4ce94a1632 7110926 gawk fails to determine string length in non-C locales
Craig Mohrman <craig.mohrman@oracle.com>
parents: 800
diff changeset
    31
    sha256:5dbc7b2c4c328711337c2aacd09a122c7313122262e3ff034590f014067412b4
101
ecb1f3b5f835 7021857 migrate gnu-awk (gawk) from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    32
COMPONENT_ARCHIVE_URL=	http://ftp.gnu.org/gnu/gawk/$(COMPONENT_ARCHIVE)
1058
34d7aaa03423 15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents: 836
diff changeset
    33
COMPONENT_BUGDB=	utility/gawk
101
ecb1f3b5f835 7021857 migrate gnu-awk (gawk) from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    34
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
    35
# 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
    36
# 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
    37
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
    38
        '-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
    39
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
TPNO=			6808
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1623
diff changeset
    41
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3718
diff changeset
    42
include $(WS_MAKE_RULES)/prep.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3718
diff changeset
    43
include $(WS_MAKE_RULES)/configure.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3718
diff changeset
    44
include $(WS_MAKE_RULES)/ips.mk
101
ecb1f3b5f835 7021857 migrate gnu-awk (gawk) from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    45
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_BINDIR.64 =   $(CONFIGURE_PREFIX)/bin
d468c2c1e73d 18042697 Various Userland components need ASLR'ing and 64-bit-ing
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    47
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
    48
101
ecb1f3b5f835 7021857 migrate gnu-awk (gawk) from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    49
CONFIGURE_OPTIONS	+=	--infodir=$(CONFIGURE_INFODIR)
181
87e11e685b1f 7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 101
diff changeset
    50
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
    51
CONFIGURE_OPTIONS	+=	CFLAGS="$(CFLAGS)"
ecb1f3b5f835 7021857 migrate gnu-awk (gawk) from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    52
1623
d468c2c1e73d 18042697 Various Userland components need ASLR'ing and 64-bit-ing
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    53
ASLR_MODE = $(ASLR_ENABLE)
101
ecb1f3b5f835 7021857 migrate gnu-awk (gawk) from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    54
1623
d468c2c1e73d 18042697 Various Userland components need ASLR'ing and 64-bit-ing
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    55
# common targets
2225
f064d3d3190d 20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents: 1948
diff changeset
    56
configure:	$(CONFIGURE_64)
f064d3d3190d 20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents: 1948
diff changeset
    57
1623
d468c2c1e73d 18042697 Various Userland components need ASLR'ing and 64-bit-ing
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    58
build:		$(BUILD_64)
181
87e11e685b1f 7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 101
diff changeset
    59
1623
d468c2c1e73d 18042697 Various Userland components need ASLR'ing and 64-bit-ing
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    60
install:	$(INSTALL_64)
d468c2c1e73d 18042697 Various Userland components need ASLR'ing and 64-bit-ing
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    61
d468c2c1e73d 18042697 Various Userland components need ASLR'ing and 64-bit-ing
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    62
test:		$(TEST_64)
101
ecb1f3b5f835 7021857 migrate gnu-awk (gawk) from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    63
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
    64
system-test:    $(SYSTEM_TESTS_NOT_IMPLEMENTED)
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
    65
101
ecb1f3b5f835 7021857 migrate gnu-awk (gawk) from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    66
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3718
diff changeset
    67
REQUIRED_PACKAGES += library/libsigsegv
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3718
diff changeset
    68
REQUIRED_PACKAGES += shell/ksh93
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3718
diff changeset
    69
REQUIRED_PACKAGES += system/library
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3718
diff changeset
    70
REQUIRED_PACKAGES += system/library/math