Makefile revision 3956
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlev# CDDL HEADER START
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlev# The contents of this file are subject to the terms of the
843e19887f64dde75055cf8842fc4db2171eff45johnlev# Common Development and Distribution License (the "License").
843e19887f64dde75055cf8842fc4db2171eff45johnlev# You may not use this file except in compliance with the License.
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlev# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
843e19887f64dde75055cf8842fc4db2171eff45johnlev# or http://www.opensolaris.org/os/licensing.
843e19887f64dde75055cf8842fc4db2171eff45johnlev# See the License for the specific language governing permissions
843e19887f64dde75055cf8842fc4db2171eff45johnlev# and limitations under the License.
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlev# When distributing Covered Code, include this CDDL HEADER in each
843e19887f64dde75055cf8842fc4db2171eff45johnlev# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
843e19887f64dde75055cf8842fc4db2171eff45johnlev# If applicable, add the following below this CDDL HEADER, with the
843e19887f64dde75055cf8842fc4db2171eff45johnlev# fields enclosed by brackets "[]" replaced with your own identifying
843e19887f64dde75055cf8842fc4db2171eff45johnlev# information: Portions Copyright [yyyy] [name of copyright owner]
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlev# CDDL HEADER END
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlev
24fe0b3bf671e123467ce1df0b67cadd3614c8e4jmcp#
843e19887f64dde75055cf8842fc4db2171eff45johnlev# Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlev
843e19887f64dde75055cf8842fc4db2171eff45johnlevinclude ../../make-rules/shared-macros.mk
843e19887f64dde75055cf8842fc4db2171eff45johnlev
843e19887f64dde75055cf8842fc4db2171eff45johnlevCOMPONENT_NAME= antlr
843e19887f64dde75055cf8842fc4db2171eff45johnlevCOMPONENT_VERSION= 2.7.7
843e19887f64dde75055cf8842fc4db2171eff45johnlevCOMPONENT_PROJECT_URL= http://www.antlr.org/
843e19887f64dde75055cf8842fc4db2171eff45johnlevCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
843e19887f64dde75055cf8842fc4db2171eff45johnlevCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
843e19887f64dde75055cf8842fc4db2171eff45johnlevCOMPONENT_ARCHIVE_HASH= \
843e19887f64dde75055cf8842fc4db2171eff45johnlev sha256:853aeb021aef7586bda29e74a6b03006bcb565a755c86b66032d8ec31b67dbb9
843e19887f64dde75055cf8842fc4db2171eff45johnlevCOMPONENT_ARCHIVE_URL= http://www.antlr2.org/download/$(COMPONENT_ARCHIVE)
843e19887f64dde75055cf8842fc4db2171eff45johnlevCOMPONENT_BUGDB= java-class/antlr
843e19887f64dde75055cf8842fc4db2171eff45johnlev
843e19887f64dde75055cf8842fc4db2171eff45johnlevTPNO= 5546
843e19887f64dde75055cf8842fc4db2171eff45johnlev
843e19887f64dde75055cf8842fc4db2171eff45johnlev# Use version of Java defined in ../../make-rules/shared-macros.mk
843e19887f64dde75055cf8842fc4db2171eff45johnlevPATH=$(SPRO_VROOT)/bin:$(JAVA_HOME)/bin:/usr/bin
843e19887f64dde75055cf8842fc4db2171eff45johnlev
843e19887f64dde75055cf8842fc4db2171eff45johnlevinclude $(WS_MAKE_RULES)/prep.mk
843e19887f64dde75055cf8842fc4db2171eff45johnlevinclude $(WS_MAKE_RULES)/configure.mk
843e19887f64dde75055cf8842fc4db2171eff45johnlevinclude $(WS_MAKE_RULES)/ips.mk
843e19887f64dde75055cf8842fc4db2171eff45johnlev
843e19887f64dde75055cf8842fc4db2171eff45johnlevPATCH_LEVEL = 0
843e19887f64dde75055cf8842fc4db2171eff45johnlev
843e19887f64dde75055cf8842fc4db2171eff45johnlevCONFIGURE_OPTIONS += --without-examples
843e19887f64dde75055cf8842fc4db2171eff45johnlev
843e19887f64dde75055cf8842fc4db2171eff45johnlev# pkgdepend doesn't like the first line of a Python script to be:
843e19887f64dde75055cf8842fc4db2171eff45johnlev# '#!/usr/bin/env python' so turn it into '#!/usr/bin/python2.7'
843e19887f64dde75055cf8842fc4db2171eff45johnlevCOMPONENT_POST_CONFIGURE_ACTION = \
843e19887f64dde75055cf8842fc4db2171eff45johnlev $(GSED) -i -e 's/env python/python2.7/' \
843e19887f64dde75055cf8842fc4db2171eff45johnlev $(BUILD_DIR_32)/scripts/pyantlr.sh
843e19887f64dde75055cf8842fc4db2171eff45johnlev
843e19887f64dde75055cf8842fc4db2171eff45johnlevCOMPONENT_INSTALL_ARGS += prefix=$(PROTOUSRDIR)
843e19887f64dde75055cf8842fc4db2171eff45johnlevCOMPONENT_INSTALL_ARGS += libdir=$(PROTOUSRLIBDIR)
843e19887f64dde75055cf8842fc4db2171eff45johnlevCOMPONENT_INSTALL_ARGS += bindir=$(PROTOUSRBINDIR)
843e19887f64dde75055cf8842fc4db2171eff45johnlevCOMPONENT_INSTALL_ARGS += sbindir=$(PROTOUSRSBINDIR)
843e19887f64dde75055cf8842fc4db2171eff45johnlev
843e19887f64dde75055cf8842fc4db2171eff45johnlev# Delete references to the version of java been used and a build date.
843e19887f64dde75055cf8842fc4db2171eff45johnlevCOMPONENT_TEST_TRANSFORMS += \
843e19887f64dde75055cf8842fc4db2171eff45johnlev '-e "s|^.*$(JAVA_HOME).*$$|XXX_JAVA_XXX|g" ' \
843e19887f64dde75055cf8842fc4db2171eff45johnlev '-e "/^ANTLR Parser Generator.*$$/d"' \
843e19887f64dde75055cf8842fc4db2171eff45johnlev '-e "/^XXX_JAVA_XXX$$/d" '
843e19887f64dde75055cf8842fc4db2171eff45johnlev
843e19887f64dde75055cf8842fc4db2171eff45johnlev# Needed to find the antlr man page.
843e19887f64dde75055cf8842fc4db2171eff45johnlevPKG_PROTO_DIRS += $(COMPONENT_DIR)/files
843e19887f64dde75055cf8842fc4db2171eff45johnlev
843e19887f64dde75055cf8842fc4db2171eff45johnlevCOMPONENT_TEST_TARGETS = test
843e19887f64dde75055cf8842fc4db2171eff45johnlev
24fe0b3bf671e123467ce1df0b67cadd3614c8e4jmcpASLR_MODE = $(ASLR_NOT_APPLICABLE)
843e19887f64dde75055cf8842fc4db2171eff45johnlev
843e19887f64dde75055cf8842fc4db2171eff45johnlev# common targets
843e19887f64dde75055cf8842fc4db2171eff45johnlevconfigure: $(CONFIGURE_32)
843e19887f64dde75055cf8842fc4db2171eff45johnlev
843e19887f64dde75055cf8842fc4db2171eff45johnlevbuild: $(BUILD_32)
843e19887f64dde75055cf8842fc4db2171eff45johnlev
843e19887f64dde75055cf8842fc4db2171eff45johnlevinstall: $(INSTALL_32)
843e19887f64dde75055cf8842fc4db2171eff45johnlev
test: $(TEST_32)
REQUIRED_PACKAGES += runtime/python-27
REQUIRED_PACKAGES += shell/ksh93