Makefile revision 2899
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# CDDL HEADER START
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# The contents of this file are subject to the terms of the
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# Common Development and Distribution License (the "License").
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# You may not use this file except in compliance with the License.
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# or http://www.opensolaris.org/os/licensing.
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# See the License for the specific language governing permissions
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# and limitations under the License.
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# When distributing Covered Code, include this CDDL HEADER in each
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# If applicable, add the following below this CDDL HEADER, with the
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# fields enclosed by brackets "[]" replaced with your own identifying
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# information: Portions Copyright [yyyy] [name of copyright owner]
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# CDDL HEADER END
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#
25cf1a301a396c38e8adf52c15f537b80d2483f7jl
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved.
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
25cf1a301a396c38e8adf52c15f537b80d2483f7jlinclude ../../make-rules/shared-macros.mk
25cf1a301a396c38e8adf52c15f537b80d2483f7jl
25cf1a301a396c38e8adf52c15f537b80d2483f7jlCOMPONENT_NAME= antlr
25cf1a301a396c38e8adf52c15f537b80d2483f7jlCOMPONENT_VERSION= 2.7.7
25cf1a301a396c38e8adf52c15f537b80d2483f7jlCOMPONENT_PROJECT_URL= http://www.antlr.org/
25cf1a301a396c38e8adf52c15f537b80d2483f7jlCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
25cf1a301a396c38e8adf52c15f537b80d2483f7jlCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
25cf1a301a396c38e8adf52c15f537b80d2483f7jlCOMPONENT_ARCHIVE_HASH= \
25cf1a301a396c38e8adf52c15f537b80d2483f7jl sha256:853aeb021aef7586bda29e74a6b03006bcb565a755c86b66032d8ec31b67dbb9
25cf1a301a396c38e8adf52c15f537b80d2483f7jlCOMPONENT_ARCHIVE_URL= http://www.antlr2.org/download/$(COMPONENT_ARCHIVE)
25cf1a301a396c38e8adf52c15f537b80d2483f7jlCOMPONENT_BUGDB= java-class/antlr
25cf1a301a396c38e8adf52c15f537b80d2483f7jl
25cf1a301a396c38e8adf52c15f537b80d2483f7jlTPNO= 5546
25cf1a301a396c38e8adf52c15f537b80d2483f7jl
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# Use version of Java defined in ../../make-rules/shared-macros.mk
25cf1a301a396c38e8adf52c15f537b80d2483f7jlPATH=$(SPRO_VROOT)/bin:$(JAVA_HOME)/bin:/usr/bin
25cf1a301a396c38e8adf52c15f537b80d2483f7jl
25cf1a301a396c38e8adf52c15f537b80d2483f7jlinclude ../../make-rules/prep.mk
25cf1a301a396c38e8adf52c15f537b80d2483f7jlinclude ../../make-rules/configure.mk
25cf1a301a396c38e8adf52c15f537b80d2483f7jlinclude ../../make-rules/ips.mk
25cf1a301a396c38e8adf52c15f537b80d2483f7jl
25cf1a301a396c38e8adf52c15f537b80d2483f7jlPATCH_LEVEL = 0
25cf1a301a396c38e8adf52c15f537b80d2483f7jl
25cf1a301a396c38e8adf52c15f537b80d2483f7jlCONFIGURE_OPTIONS += --without-examples
25cf1a301a396c38e8adf52c15f537b80d2483f7jl
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# pkgdepend doesn't like the first line of a Python script to be:
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# '#!/usr/bin/env python' so turn it into '#!/usr/bin/python2.6'
25cf1a301a396c38e8adf52c15f537b80d2483f7jlCOMPONENT_POST_CONFIGURE_ACTION = \
25cf1a301a396c38e8adf52c15f537b80d2483f7jl $(GSED) -i -e 's/env python/python2.6/' \
25cf1a301a396c38e8adf52c15f537b80d2483f7jl $(BUILD_DIR_32)/scripts/pyantlr.sh
25cf1a301a396c38e8adf52c15f537b80d2483f7jl
25cf1a301a396c38e8adf52c15f537b80d2483f7jlCOMPONENT_INSTALL_ARGS += prefix=$(PROTOUSRDIR)
25cf1a301a396c38e8adf52c15f537b80d2483f7jlCOMPONENT_INSTALL_ARGS += libdir=$(PROTOUSRLIBDIR)
25cf1a301a396c38e8adf52c15f537b80d2483f7jlCOMPONENT_INSTALL_ARGS += bindir=$(PROTOUSRBINDIR)
25cf1a301a396c38e8adf52c15f537b80d2483f7jlCOMPONENT_INSTALL_ARGS += sbindir=$(PROTOUSRSBINDIR)
25cf1a301a396c38e8adf52c15f537b80d2483f7jl
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# Needed to find the antlr man page.
25cf1a301a396c38e8adf52c15f537b80d2483f7jlPKG_PROTO_DIRS += $(COMPONENT_DIR)/files
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCOMPONENT_TEST_TARGETS = test
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
25cf1a301a396c38e8adf52c15f537b80d2483f7jlASLR_MODE = $(ASLR_NOT_APPLICABLE)
25cf1a301a396c38e8adf52c15f537b80d2483f7jl
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# common targets
25cf1a301a396c38e8adf52c15f537b80d2483f7jlbuild: $(BUILD_32)
25cf1a301a396c38e8adf52c15f537b80d2483f7jl
25cf1a301a396c38e8adf52c15f537b80d2483f7jlinstall: $(INSTALL_32)
25cf1a301a396c38e8adf52c15f537b80d2483f7jl
25cf1a301a396c38e8adf52c15f537b80d2483f7jltest: $(TEST_32)
25cf1a301a396c38e8adf52c15f537b80d2483f7jl
25cf1a301a396c38e8adf52c15f537b80d2483f7jlBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
0cc8ae8667155d352d327b5c92b62899a7e05bcdav
0cc8ae8667155d352d327b5c92b62899a7e05bcdavinclude ../../make-rules/depend.mk
0cc8ae8667155d352d327b5c92b62899a7e05bcdav