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