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