Makefile revision 1938
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# CDDL HEADER START
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# The contents of this file are subject to the terms of the
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Common Development and Distribution License (the "License").
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# You may not use this file except in compliance with the License.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# or http://www.opensolaris.org/os/licensing.
ce22ce4743d79a889dca64df4459c598e2c188c7fuankg# See the License for the specific language governing permissions
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# and limitations under the License.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# When distributing Covered Code, include this CDDL HEADER in each
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# If applicable, add the following below this CDDL HEADER, with the
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# fields enclosed by brackets "[]" replaced with your own identifying
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# information: Portions Copyright [yyyy] [name of copyright owner]
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# CDDL HEADER END
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesinclude ../../make-rules/shared-macros.mk
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCOMPONENT_NAME= antlr
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCOMPONENT_VERSION= 2.7.7
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCOMPONENT_PROJECT_URL= http://www.antlr.org/
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholesCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholesCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCOMPONENT_ARCHIVE_HASH= \
f7d723f1ad88ed006c6caf4c2c6604b7c59dd172bnicholes sha256:853aeb021aef7586bda29e74a6b03006bcb565a755c86b66032d8ec31b67dbb9
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCOMPONENT_ARCHIVE_URL= http://www.antlr2.org/download/$(COMPONENT_ARCHIVE)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCOMPONENT_BUGDB= java-class/antlr
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Use version of Java defined in ../../make-rules/shared-macros.mk
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesPATH=$(SPRO_VROOT)/bin:$(JAVA_HOME)/bin:/usr/bin
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesinclude ../../make-rules/prep.mk
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesinclude ../../make-rules/configure.mk
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesinclude ../../make-rules/ips.mk
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
5b0c702735f2049038c50c7dc5dd2606086ee110bnicholesPATCH_LEVEL = 0
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCONFIGURE_OPTIONS += --without-examples
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# pkgdepend doesn't like the first line of a Python script to be:
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# '#!/usr/bin/env python' so turn it into '#!/usr/bin/python2.6'
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCOMPONENT_POST_CONFIGURE_ACTION = \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(GSED) -i -e 's/env python/python2.6/' \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(BUILD_DIR_32)/scripts/pyantlr.sh
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCOMPONENT_INSTALL_ARGS += prefix=$(PROTOUSRDIR)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCOMPONENT_INSTALL_ARGS += libdir=$(PROTOUSRLIBDIR)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCOMPONENT_INSTALL_ARGS += bindir=$(PROTOUSRBINDIR)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCOMPONENT_INSTALL_ARGS += sbindir=$(PROTOUSRSBINDIR)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Needed to find the antlr man page.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesPKG_PROTO_DIRS += $(COMPONENT_DIR)/files
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCOMPONENT_TEST_TARGETS = test
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesASLR_MODE = $(ASLR_NOT_APPLICABLE)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# common targets
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesbuild: $(BUILD_32)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesinstall: $(INSTALL_32)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholestest: $(TEST_32)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesinclude ../../make-rules/depend.mk
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes