Makefile revision 1699
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# CDDL HEADER START
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# The contents of this file are subject to the terms of the
f808c858fa61e7769218966759510a8b1190dfcfraf# Common Development and Distribution License (the "License").
f808c858fa61e7769218966759510a8b1190dfcfraf# You may not use this file except in compliance with the License.
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fa9e4066f08beec538e775443c5be79dd423fcabahrens# or http://www.opensolaris.org/os/licensing.
fa9e4066f08beec538e775443c5be79dd423fcabahrens# See the License for the specific language governing permissions
fa9e4066f08beec538e775443c5be79dd423fcabahrens# and limitations under the License.
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# When distributing Covered Code, include this CDDL HEADER in each
fa9e4066f08beec538e775443c5be79dd423fcabahrens# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fa9e4066f08beec538e775443c5be79dd423fcabahrens# If applicable, add the following below this CDDL HEADER, with the
fa9e4066f08beec538e775443c5be79dd423fcabahrens# fields enclosed by brackets "[]" replaced with your own identifying
fa9e4066f08beec538e775443c5be79dd423fcabahrens# information: Portions Copyright [yyyy] [name of copyright owner]
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# CDDL HEADER END
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens
c3aa2a379ea93f4fb5a64b8ddf9b1f93e9a8e84bck#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfrafinclude ../../make-rules/shared-macros.mk
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensCOMPONENT_NAME= antlr
fa9e4066f08beec538e775443c5be79dd423fcabahrensCOMPONENT_VERSION= 2.7.7
fa9e4066f08beec538e775443c5be79dd423fcabahrensCOMPONENT_PROJECT_URL= http://www.antlr.org/
fa9e4066f08beec538e775443c5be79dd423fcabahrensCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
fa9e4066f08beec538e775443c5be79dd423fcabahrensCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
fa9e4066f08beec538e775443c5be79dd423fcabahrensCOMPONENT_ARCHIVE_HASH= \
fa9e4066f08beec538e775443c5be79dd423fcabahrens sha256:853aeb021aef7586bda29e74a6b03006bcb565a755c86b66032d8ec31b67dbb9
fa9e4066f08beec538e775443c5be79dd423fcabahrensCOMPONENT_ARCHIVE_URL= http://www.antlr2.org/download/$(COMPONENT_ARCHIVE)
fa9e4066f08beec538e775443c5be79dd423fcabahrensCOMPONENT_BUGDB= java-class/antlr
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens# Use version of Java defined in ../../make-rules/shared-macros.mk
fa9e4066f08beec538e775443c5be79dd423fcabahrensPATH=$(SPRO_VROOT)/bin:$(JAVA_HOME)/bin:/usr/bin
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensinclude ../../make-rules/prep.mk
fa9e4066f08beec538e775443c5be79dd423fcabahrensinclude ../../make-rules/configure.mk
c3aa2a379ea93f4fb5a64b8ddf9b1f93e9a8e84bckinclude ../../make-rules/ips.mk
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensPATCH_LEVEL = 0
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensCONFIGURE_OPTIONS += --without-examples
f808c858fa61e7769218966759510a8b1190dfcfraf
fa9e4066f08beec538e775443c5be79dd423fcabahrens# pkgdepend doesn't like the first line of a Python script to be:
fa9e4066f08beec538e775443c5be79dd423fcabahrens# '#!/usr/bin/env python' so turn it into '#!/usr/bin/python2.6'
fa9e4066f08beec538e775443c5be79dd423fcabahrensCOMPONENT_POST_CONFIGURE_ACTION = \
fa9e4066f08beec538e775443c5be79dd423fcabahrens $(GSED) -i -e 's/env python/python2.6/' \
fa9e4066f08beec538e775443c5be79dd423fcabahrens $(BUILD_DIR_32)/scripts/pyantlr.sh
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensCOMPONENT_INSTALL_ARGS += prefix=$(PROTOUSRDIR)
fa9e4066f08beec538e775443c5be79dd423fcabahrensCOMPONENT_INSTALL_ARGS += libdir=$(PROTOUSRLIBDIR)
fa9e4066f08beec538e775443c5be79dd423fcabahrensCOMPONENT_INSTALL_ARGS += bindir=$(PROTOUSRBINDIR)
f808c858fa61e7769218966759510a8b1190dfcfrafCOMPONENT_INSTALL_ARGS += sbindir=$(PROTOUSRSBINDIR)
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens# Needed to find the antlr man page.
fa9e4066f08beec538e775443c5be79dd423fcabahrensPKG_PROTO_DIRS += $(COMPONENT_DIR)/files
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensCOMPONENT_TEST_TARGETS = test
fa9e4066f08beec538e775443c5be79dd423fcabahrens
ASLR_MODE = $(ASLR_ENABLE)
# common targets
build: $(BUILD_32)
install: $(INSTALL_32)
test: $(TEST_32)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk