Makefile revision 3996
363N/A#
363N/A# CDDL HEADER START
363N/A#
363N/A# The contents of this file are subject to the terms of the
363N/A# Common Development and Distribution License (the "License").
363N/A# You may not use this file except in compliance with the License.
363N/A#
363N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
363N/A# or http://www.opensolaris.org/os/licensing.
363N/A# See the License for the specific language governing permissions
363N/A# and limitations under the License.
363N/A#
363N/A# When distributing Covered Code, include this CDDL HEADER in each
363N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
363N/A# If applicable, add the following below this CDDL HEADER, with the
363N/A# fields enclosed by brackets "[]" replaced with your own identifying
363N/A# information: Portions Copyright [yyyy] [name of copyright owner]
363N/A#
363N/A# CDDL HEADER END
363N/A#
7161N/A
7161N/A#
7161N/A# Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
363N/A#
363N/A
363N/Ainclude ../../make-rules/shared-macros.mk
2369N/A
2369N/ACOMPONENT_NAME= antlr
363N/ACOMPONENT_VERSION= 2.7.7
363N/ACOMPONENT_PROJECT_URL= http://www.antlr.org/
364N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
363N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
363N/ACOMPONENT_ARCHIVE_HASH= \
7161N/A sha256:853aeb021aef7586bda29e74a6b03006bcb565a755c86b66032d8ec31b67dbb9
2369N/ACOMPONENT_ARCHIVE_URL= http://www.antlr2.org/download/$(COMPONENT_ARCHIVE)
363N/ACOMPONENT_BUGDB= java-class/antlr
844N/A
7161N/ATPNO= 5546
363N/A
3182N/A# Use version of Java defined in ../../make-rules/shared-macros.mk
363N/APATH=$(SPRO_VROOT)/bin:$(JAVA_HOME)/bin:/usr/bin
3996N/A
3996N/Ainclude $(WS_MAKE_RULES)/prep.mk
363N/Ainclude $(WS_MAKE_RULES)/configure.mk
695N/Ainclude $(WS_MAKE_RULES)/ips.mk
365N/A
363N/APATCH_LEVEL = 0
363N/A
363N/ACONFIGURE_OPTIONS += --without-examples
363N/A
363N/A# pkgdepend doesn't like the first line of a Python script to be:
2369N/A# '#!/usr/bin/env python' so turn it into '#!/usr/bin/python2.7'
363N/ACOMPONENT_POST_CONFIGURE_ACTION = \
363N/A $(GSED) -i -e 's/env python/python2.7/' \
363N/A $(BUILD_DIR_32)/scripts/pyantlr.sh
695N/A
363N/ACOMPONENT_INSTALL_ARGS += prefix=$(PROTOUSRDIR)
363N/ACOMPONENT_INSTALL_ARGS += libdir=$(PROTOUSRLIBDIR)
363N/ACOMPONENT_INSTALL_ARGS += bindir=$(PROTOUSRBINDIR)
7161N/ACOMPONENT_INSTALL_ARGS += sbindir=$(PROTOUSRSBINDIR)
814N/A
363N/A# Needed to find the antlr man page.
7161N/APKG_PROTO_DIRS += $(COMPONENT_DIR)/files
791N/A
791N/ACOMPONENT_TEST_TARGETS = test
791N/A
791N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
363N/A
3091N/A# common targets
3091N/Abuild: $(BUILD_32)
3091N/A
3091N/Ainstall: $(INSTALL_32)
363N/A
7161N/Atest: $(TEST_32)
363N/A
363N/A
363N/AREQUIRED_PACKAGES += runtime/python-27
363N/AREQUIRED_PACKAGES += shell/ksh93
363N/A