Makefile revision 2337
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'Amore#
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'Amore# CDDL HEADER START
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'Amore#
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'Amore# The contents of this file are subject to the terms of the
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'Amore# Common Development and Distribution License (the "License").
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'Amore# You may not use this file except in compliance with the License.
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'Amore#
8f23e9fa8abcb5857661066b954e63400d589b65Hans Rosenfeld# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8f23e9fa8abcb5857661066b954e63400d589b65Hans Rosenfeld# or http://www.opensolaris.org/os/licensing.
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'Amore# See the License for the specific language governing permissions
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'Amore# and limitations under the License.
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'Amore#
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'Amore# When distributing Covered Code, include this CDDL HEADER in each
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'Amore# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'Amore# If applicable, add the following below this CDDL HEADER, with the
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'Amore# fields enclosed by brackets "[]" replaced with your own identifying
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'Amore# information: Portions Copyright [yyyy] [name of copyright owner]
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'Amore#
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'Amore# CDDL HEADER END
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'Amore#
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'Amore
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'Amore#
8f23e9fa8abcb5857661066b954e63400d589b65Hans Rosenfeld# Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved.
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'Amore#
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'Amore
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'Amoreinclude ../../make-rules/shared-macros.mk
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'Amore
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'AmoreCOMPONENT_NAME= antlr
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'AmoreCOMPONENT_VERSION= 2.7.7
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'AmoreCOMPONENT_PROJECT_URL= http://www.antlr.org/
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'AmoreCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'AmoreCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'AmoreCOMPONENT_ARCHIVE_HASH= \
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'Amore sha256:853aeb021aef7586bda29e74a6b03006bcb565a755c86b66032d8ec31b67dbb9
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'AmoreCOMPONENT_ARCHIVE_URL= http://www.antlr2.org/download/$(COMPONENT_ARCHIVE)
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'AmoreCOMPONENT_BUGDB= java-class/antlr
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'Amore
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'Amore# Use version of Java defined in ../../make-rules/shared-macros.mk
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'AmorePATH=$(SPRO_VROOT)/bin:$(JAVA_HOME)/bin:/usr/bin
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'Amore
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'Amoreinclude ../../make-rules/prep.mk
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'Amoreinclude ../../make-rules/configure.mk
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'Amoreinclude ../../make-rules/ips.mk
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'Amore
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'AmorePATCH_LEVEL = 0
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'Amore
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'AmoreCONFIGURE_OPTIONS += --without-examples
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'Amore
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'Amore# pkgdepend doesn't like the first line of a Python script to be:
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'Amore# '#!/usr/bin/env python' so turn it into '#!/usr/bin/python2.6'
8f23e9fa8abcb5857661066b954e63400d589b65Hans RosenfeldCOMPONENT_POST_CONFIGURE_ACTION = \
8f23e9fa8abcb5857661066b954e63400d589b65Hans Rosenfeld $(GSED) -i -e 's/env python/python2.6/' \
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'Amore $(BUILD_DIR_32)/scripts/pyantlr.sh
8f23e9fa8abcb5857661066b954e63400d589b65Hans Rosenfeld
8f23e9fa8abcb5857661066b954e63400d589b65Hans RosenfeldCOMPONENT_INSTALL_ARGS += prefix=$(PROTOUSRDIR)
8f23e9fa8abcb5857661066b954e63400d589b65Hans RosenfeldCOMPONENT_INSTALL_ARGS += libdir=$(PROTOUSRLIBDIR)
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'AmoreCOMPONENT_INSTALL_ARGS += bindir=$(PROTOUSRBINDIR)
8f23e9fa8abcb5857661066b954e63400d589b65Hans RosenfeldCOMPONENT_INSTALL_ARGS += sbindir=$(PROTOUSRSBINDIR)
8f23e9fa8abcb5857661066b954e63400d589b65Hans Rosenfeld
8f23e9fa8abcb5857661066b954e63400d589b65Hans Rosenfeld# Needed to find the antlr man page.
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'AmorePKG_PROTO_DIRS += $(COMPONENT_DIR)/files
8f23e9fa8abcb5857661066b954e63400d589b65Hans Rosenfeld
8f23e9fa8abcb5857661066b954e63400d589b65Hans RosenfeldCOMPONENT_TEST_TARGETS = test
8f23e9fa8abcb5857661066b954e63400d589b65Hans Rosenfeld
8f23e9fa8abcb5857661066b954e63400d589b65Hans RosenfeldASLR_MODE = $(ASLR_NOT_APPLICABLE)
8f23e9fa8abcb5857661066b954e63400d589b65Hans Rosenfeld
8f23e9fa8abcb5857661066b954e63400d589b65Hans Rosenfeld# common targets
8f23e9fa8abcb5857661066b954e63400d589b65Hans Rosenfeldbuild: $(BUILD_32)
8f23e9fa8abcb5857661066b954e63400d589b65Hans Rosenfeld
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'Amoreinstall: $(INSTALL_32)
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'Amore
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'Amoretest: $(TEST_32)
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'Amore
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'AmoreBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'Amore
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'Amoreinclude ../../make-rules/depend.mk
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'Amore