1220N/A#
1220N/A# CDDL HEADER START
1220N/A#
1220N/A# The contents of this file are subject to the terms of the
1220N/A# Common Development and Distribution License (the "License").
1220N/A# You may not use this file except in compliance with the License.
1220N/A#
1220N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1220N/A# or http://www.opensolaris.org/os/licensing.
1220N/A# See the License for the specific language governing permissions
1220N/A# and limitations under the License.
1220N/A#
1220N/A# When distributing Covered Code, include this CDDL HEADER in each
1220N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1220N/A# If applicable, add the following below this CDDL HEADER, with the
1220N/A# fields enclosed by brackets "[]" replaced with your own identifying
1220N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1220N/A#
1220N/A# CDDL HEADER END
1220N/A#
1220N/A
1220N/A#
5680N/A# Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
1220N/A#
5680N/ABUILD_BITS= 32
1220N/Ainclude ../../make-rules/shared-macros.mk
1220N/A
1220N/ACOMPONENT_NAME= antlr
1220N/ACOMPONENT_VERSION= 2.7.7
1220N/ACOMPONENT_PROJECT_URL= http://www.antlr.org/
1220N/ACOMPONENT_ARCHIVE_HASH= \
1220N/A sha256:853aeb021aef7586bda29e74a6b03006bcb565a755c86b66032d8ec31b67dbb9
1220N/ACOMPONENT_ARCHIVE_URL= http://www.antlr2.org/download/$(COMPONENT_ARCHIVE)
1258N/ACOMPONENT_BUGDB= java-class/antlr
1220N/A
2899N/ATPNO= 5546
2899N/A
1220N/A# Use version of Java defined in ../../make-rules/shared-macros.mk
5680N/APATH=$(SPRO_VROOT)/bin:$(JAVA_HOME)/bin:$(USRBINDIR)
1220N/A
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
1220N/A
1220N/APATCH_LEVEL = 0
1220N/A
1220N/ACONFIGURE_OPTIONS += --without-examples
1220N/A
7133N/ACXXFLAGS += -std=sun03
7133N/A
1220N/A# pkgdepend doesn't like the first line of a Python script to be:
3918N/A# '#!/usr/bin/env python' so turn it into '#!/usr/bin/python2.7'
1220N/ACOMPONENT_POST_CONFIGURE_ACTION = \
3918N/A $(GSED) -i -e 's/env python/python2.7/' \
1220N/A $(BUILD_DIR_32)/scripts/pyantlr.sh
1220N/A
1220N/ACOMPONENT_INSTALL_ARGS += prefix=$(PROTOUSRDIR)
1220N/ACOMPONENT_INSTALL_ARGS += libdir=$(PROTOUSRLIBDIR)
1220N/ACOMPONENT_INSTALL_ARGS += bindir=$(PROTOUSRBINDIR)
1220N/ACOMPONENT_INSTALL_ARGS += sbindir=$(PROTOUSRSBINDIR)
1220N/A
3956N/A# Delete references to the version of java been used and a build date.
3956N/ACOMPONENT_TEST_TRANSFORMS += \
3956N/A '-e "s|^.*$(JAVA_HOME).*$$|XXX_JAVA_XXX|g" ' \
3956N/A '-e "/^ANTLR Parser Generator.*$$/d"' \
7133N/A '-e "/Nothing to be done/d"' \
7133N/A '-e "/Leaving directory/d"' \
7133N/A '-e "/Entering directory/d"' \
3956N/A '-e "/^XXX_JAVA_XXX$$/d" '
3918N/A
1220N/ACOMPONENT_TEST_TARGETS = test
1220N/A
1938N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
1699N/A
3918N/AREQUIRED_PACKAGES += runtime/python-27
3817N/AREQUIRED_PACKAGES += shell/ksh93