components/antlr/Makefile
author Shawn Walker-Salas <shawn.walker@oracle.com>
Wed, 30 Mar 2016 13:33:31 -0700
changeset 5682 94c0ca64c022
parent 4339 6501cf9c29f9
child 7135 baa9bef19b29
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:
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
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    23
# Copyright (c) 2012, 2016, 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
1035
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    35
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1434
diff changeset
    36
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
    37
1035
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    38
# 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
    39
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
    40
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    41
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
    42
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    43
PATCH_LEVEL =		0
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    44
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    45
CONFIGURE_OPTIONS +=	--without-examples
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    46
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    47
# 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
    48
# '#!/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
    49
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
    50
	$(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
    51
		$(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
    52
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    53
COMPONENT_INSTALL_ARGS += prefix=$(PROTOUSRDIR)
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    54
COMPONENT_INSTALL_ARGS += libdir=$(PROTOUSRLIBDIR)
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    55
COMPONENT_INSTALL_ARGS += bindir=$(PROTOUSRBINDIR)
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    56
COMPONENT_INSTALL_ARGS += sbindir=$(PROTOUSRSBINDIR)
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    57
3956
0a32d1193656 20708461 antlr needs to move to java 8
Rich Burridge <rich.burridge@oracle.com>
parents: 3918
diff changeset
    58
# 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
    59
COMPONENT_TEST_TRANSFORMS += \
0a32d1193656 20708461 antlr needs to move to java 8
Rich Burridge <rich.burridge@oracle.com>
parents: 3918
diff changeset
    60
	'-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
    61
	'-e "/^ANTLR Parser Generator.*$$/d"' \
0a32d1193656 20708461 antlr needs to move to java 8
Rich Burridge <rich.burridge@oracle.com>
parents: 3918
diff changeset
    62
	'-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
    63
1035
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    64
COMPONENT_TEST_TARGETS = test
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    65
1434
c782e620dd26 17296512 Add ASLR_NOT_APPLICABLE as an ASLR mode in Userland
Rich Burridge <rich.burridge@oracle.com>
parents: 1303
diff changeset
    66
ASLR_MODE = $(ASLR_NOT_APPLICABLE)
1303
79b691ffbda3 16734056 Make antlr ASLR enabled
Brian Cameron <brian.cameron@oracle.com>
parents: 1058
diff changeset
    67
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
    68
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
    69
REQUIRED_PACKAGES += shell/ksh93