Makefile revision 5680
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff#
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff# CDDL HEADER START
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff#
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff# The contents of this file are subject to the terms of the
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff# Common Development and Distribution License (the "License").
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff# You may not use this file except in compliance with the License.
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff#
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff# or http://www.opensolaris.org/os/licensing.
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff# See the License for the specific language governing permissions
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff# and limitations under the License.
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff#
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff# When distributing Covered Code, include this CDDL HEADER in each
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff# If applicable, add the following below this CDDL HEADER, with the
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff# fields enclosed by brackets "[]" replaced with your own identifying
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff# information: Portions Copyright [yyyy] [name of copyright owner]
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff#
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff# CDDL HEADER END
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff#
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff#
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff# Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff#
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffBUILD_BITS= 32
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffinclude ../../make-rules/shared-macros.mk
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffCOMPONENT_NAME= antlr
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffCOMPONENT_VERSION= 2.7.7
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffCOMPONENT_PROJECT_URL= http://www.antlr.org/
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffCOMPONENT_ARCHIVE_HASH= \
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff sha256:853aeb021aef7586bda29e74a6b03006bcb565a755c86b66032d8ec31b67dbb9
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffCOMPONENT_ARCHIVE_URL= http://www.antlr2.org/download/$(COMPONENT_ARCHIVE)
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffCOMPONENT_BUGDB= java-class/antlr
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffTPNO= 5546
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff# Use version of Java defined in ../../make-rules/shared-macros.mk
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffPATH=$(SPRO_VROOT)/bin:$(JAVA_HOME)/bin:$(USRBINDIR)
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffinclude $(WS_MAKE_RULES)/common.mk
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffPATCH_LEVEL = 0
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffCONFIGURE_OPTIONS += --without-examples
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff# pkgdepend doesn't like the first line of a Python script to be:
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff# '#!/usr/bin/env python' so turn it into '#!/usr/bin/python2.7'
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffCOMPONENT_POST_CONFIGURE_ACTION = \
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff $(GSED) -i -e 's/env python/python2.7/' \
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff $(BUILD_DIR_32)/scripts/pyantlr.sh
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffCOMPONENT_INSTALL_ARGS += prefix=$(PROTOUSRDIR)
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffCOMPONENT_INSTALL_ARGS += libdir=$(PROTOUSRLIBDIR)
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffCOMPONENT_INSTALL_ARGS += bindir=$(PROTOUSRBINDIR)
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffCOMPONENT_INSTALL_ARGS += sbindir=$(PROTOUSRSBINDIR)
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff# Delete references to the version of java been used and a build date.
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffCOMPONENT_TEST_TRANSFORMS += \
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff '-e "s|^.*$(JAVA_HOME).*$$|XXX_JAVA_XXX|g" ' \
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff '-e "/^ANTLR Parser Generator.*$$/d"' \
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff '-e "/^XXX_JAVA_XXX$$/d" '
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffCOMPONENT_TEST_TARGETS = test
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffASLR_MODE = $(ASLR_NOT_APPLICABLE)
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffREQUIRED_PACKAGES += runtime/python-27
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffREQUIRED_PACKAGES += shell/ksh93
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff