Makefile revision 1220
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync#
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync# CDDL HEADER START
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync#
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync# The contents of this file are subject to the terms of the
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync# Common Development and Distribution License (the "License").
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync# You may not use this file except in compliance with the License.
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync#
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# or http://www.opensolaris.org/os/licensing.
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# See the License for the specific language governing permissions
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# and limitations under the License.
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync#
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# When distributing Covered Code, include this CDDL HEADER in each
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# If applicable, add the following below this CDDL HEADER, with the
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# fields enclosed by brackets "[]" replaced with your own identifying
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync#
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync# CDDL HEADER END
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync#
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync#
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync# Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync#
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsyncinclude ../../make-rules/shared-macros.mk
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsyncCOMPONENT_NAME= antlr
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsyncCOMPONENT_VERSION= 2.7.7
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsyncCOMPONENT_PROJECT_URL= http://www.antlr.org/
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsyncCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
7b1a1a5dea048e6a23a740ed5b5ef456f3958a0avboxsyncCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsyncCOMPONENT_ARCHIVE_HASH= \
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync sha256:853aeb021aef7586bda29e74a6b03006bcb565a755c86b66032d8ec31b67dbb9
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsyncCOMPONENT_ARCHIVE_URL= http://www.antlr2.org/download/$(COMPONENT_ARCHIVE)
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync# Use version of Java defined in ../../make-rules/shared-macros.mk
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsyncPATH=$(SPRO_VROOT)/bin:$(JAVA_HOME)/bin:/usr/bin
7b1a1a5dea048e6a23a740ed5b5ef456f3958a0avboxsync
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsyncinclude ../../make-rules/prep.mk
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsyncinclude ../../make-rules/configure.mk
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsyncinclude ../../make-rules/ips.mk
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsyncPATCH_LEVEL = 0
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsyncCONFIGURE_OPTIONS += --without-examples
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync# pkgdepend doesn't like the first line of a Python script to be:
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync# '#!/usr/bin/env python' so turn it into '#!/usr/bin/python2.6'
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsyncCOMPONENT_POST_CONFIGURE_ACTION = \
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync $(GSED) -i -e 's/env python/python2.6/' \
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync $(BUILD_DIR_32)/scripts/pyantlr.sh
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsyncCOMPONENT_INSTALL_ARGS += prefix=$(PROTOUSRDIR)
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsyncCOMPONENT_INSTALL_ARGS += libdir=$(PROTOUSRLIBDIR)
7b1a1a5dea048e6a23a740ed5b5ef456f3958a0avboxsyncCOMPONENT_INSTALL_ARGS += bindir=$(PROTOUSRBINDIR)
7b1a1a5dea048e6a23a740ed5b5ef456f3958a0avboxsyncCOMPONENT_INSTALL_ARGS += sbindir=$(PROTOUSRSBINDIR)
7b1a1a5dea048e6a23a740ed5b5ef456f3958a0avboxsync
7b1a1a5dea048e6a23a740ed5b5ef456f3958a0avboxsync# Needed to find the antlr man page.
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsyncPKG_PROTO_DIRS += $(COMPONENT_DIR)/files
7b1a1a5dea048e6a23a740ed5b5ef456f3958a0avboxsync
7b1a1a5dea048e6a23a740ed5b5ef456f3958a0avboxsyncCOMPONENT_TEST_TARGETS = test
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync# common targets
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsyncbuild: $(BUILD_32)
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsyncinstall: $(INSTALL_32)
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsynctest: $(TEST_32)
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsyncBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsyncinclude ../../make-rules/depend.mk
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync