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