components/antlr/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Thu, 06 Apr 2017 11:44:41 -0700
changeset 7843 56b5a2b1ab27
parent 7687 1093e2a9adbd
permissions -rw-r--r--
25141953 nping --icmp dumps core on SPARC
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1035
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     1
#
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     3
#
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     7
#
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    12
#
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    18
#
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    20
#
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    21
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    22
#
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 7135
diff changeset
    23
# Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved.
1035
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    24
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    25
BUILD_BITS= 32
1035
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    27
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    28
COMPONENT_NAME=		antlr
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    29
COMPONENT_VERSION=	2.7.7
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    30
COMPONENT_PROJECT_URL=	http://www.antlr.org/
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    31
COMPONENT_ARCHIVE_HASH=	\
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    32
    sha256:853aeb021aef7586bda29e74a6b03006bcb565a755c86b66032d8ec31b67dbb9
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    33
COMPONENT_ARCHIVE_URL=	http://www.antlr2.org/download/$(COMPONENT_ARCHIVE)
1058
34d7aaa03423 15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents: 1035
diff changeset
    34
COMPONENT_BUGDB=	java-class/antlr
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 7135
diff changeset
    35
COMPONENT_ANITYA_ID=	55
1035
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    36
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1434
diff changeset
    37
TPNO=			5546
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1434
diff changeset
    38
1035
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    39
# Use version of Java defined in ../../make-rules/shared-macros.mk
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    40
PATH=$(SPRO_VROOT)/bin:$(JAVA_HOME)/bin:$(USRBINDIR)
1035
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    41
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    42
include $(WS_MAKE_RULES)/common.mk
1035
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    43
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    44
PATCH_LEVEL =		0
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    45
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    46
CONFIGURE_OPTIONS +=	--without-examples
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    47
7135
baa9bef19b29 24697443 antlr fails to build with studio 12.5
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 5682
diff changeset
    48
CXXFLAGS += -std=sun03
baa9bef19b29 24697443 antlr fails to build with studio 12.5
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 5682
diff changeset
    49
1035
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    50
# pkgdepend doesn't like the first line of a Python script to be:
3918
d8138667d338 20663199 six Userland components need work for Python 2.6 -> 2.7 move
John Beck <John.Beck@Oracle.COM>
parents: 3817
diff changeset
    51
# '#!/usr/bin/env python' so turn it into '#!/usr/bin/python2.7'
1035
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    52
COMPONENT_POST_CONFIGURE_ACTION = \
3918
d8138667d338 20663199 six Userland components need work for Python 2.6 -> 2.7 move
John Beck <John.Beck@Oracle.COM>
parents: 3817
diff changeset
    53
	$(GSED) -i -e 's/env python/python2.7/' \
1035
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    54
		$(BUILD_DIR_32)/scripts/pyantlr.sh
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    55
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    56
COMPONENT_INSTALL_ARGS += prefix=$(PROTOUSRDIR)
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    57
COMPONENT_INSTALL_ARGS += libdir=$(PROTOUSRLIBDIR)
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    58
COMPONENT_INSTALL_ARGS += bindir=$(PROTOUSRBINDIR)
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    59
COMPONENT_INSTALL_ARGS += sbindir=$(PROTOUSRSBINDIR)
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    60
3956
0a32d1193656 20708461 antlr needs to move to java 8
Rich Burridge <rich.burridge@oracle.com>
parents: 3918
diff changeset
    61
# Delete references to the version of java been used and a build date.
0a32d1193656 20708461 antlr needs to move to java 8
Rich Burridge <rich.burridge@oracle.com>
parents: 3918
diff changeset
    62
COMPONENT_TEST_TRANSFORMS += \
0a32d1193656 20708461 antlr needs to move to java 8
Rich Burridge <rich.burridge@oracle.com>
parents: 3918
diff changeset
    63
	'-e "s|^.*$(JAVA_HOME).*$$|XXX_JAVA_XXX|g" ' \
0a32d1193656 20708461 antlr needs to move to java 8
Rich Burridge <rich.burridge@oracle.com>
parents: 3918
diff changeset
    64
	'-e "/^ANTLR Parser Generator.*$$/d"' \
7135
baa9bef19b29 24697443 antlr fails to build with studio 12.5
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 5682
diff changeset
    65
	'-e "/Nothing to be done/d"' \
baa9bef19b29 24697443 antlr fails to build with studio 12.5
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 5682
diff changeset
    66
	'-e "/Leaving directory/d"' \
baa9bef19b29 24697443 antlr fails to build with studio 12.5
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 5682
diff changeset
    67
	'-e "/Entering directory/d"' \
3956
0a32d1193656 20708461 antlr needs to move to java 8
Rich Burridge <rich.burridge@oracle.com>
parents: 3918
diff changeset
    68
	'-e "/^XXX_JAVA_XXX$$/d" '
3918
d8138667d338 20663199 six Userland components need work for Python 2.6 -> 2.7 move
John Beck <John.Beck@Oracle.COM>
parents: 3817
diff changeset
    69
1035
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    70
COMPONENT_TEST_TARGETS = test
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    71
1434
c782e620dd26 17296512 Add ASLR_NOT_APPLICABLE as an ASLR mode in Userland
Rich Burridge <rich.burridge@oracle.com>
parents: 1303
diff changeset
    72
ASLR_MODE = $(ASLR_NOT_APPLICABLE)
1303
79b691ffbda3 16734056 Make antlr ASLR enabled
Brian Cameron <brian.cameron@oracle.com>
parents: 1058
diff changeset
    73
3918
d8138667d338 20663199 six Userland components need work for Python 2.6 -> 2.7 move
John Beck <John.Beck@Oracle.COM>
parents: 3817
diff changeset
    74
REQUIRED_PACKAGES += runtime/python-27
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    75
REQUIRED_PACKAGES += shell/ksh93