Makefile revision 1220
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync#
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync# CDDL HEADER START
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync#
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync# The contents of this file are subject to the terms of the
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync# Common Development and Distribution License (the "License").
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync# You may not use this file except in compliance with the License.
c7814cf6e1240a519cbec0441e033d0e2470ed00vboxsync#
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync# or http://www.opensolaris.org/os/licensing.
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync# See the License for the specific language governing permissions
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync# and limitations under the License.
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync#
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync# When distributing Covered Code, include this CDDL HEADER in each
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync# If applicable, add the following below this CDDL HEADER, with the
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync# fields enclosed by brackets "[]" replaced with your own identifying
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync#
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync# CDDL HEADER END
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync#
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync#
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync# Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync#
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsyncinclude ../../make-rules/shared-macros.mk
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsyncCOMPONENT_NAME= antlr
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsyncCOMPONENT_VERSION= 2.7.7
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsyncCOMPONENT_PROJECT_URL= http://www.antlr.org/
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsyncCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsyncCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
3fa7a7e633f46a212052b510cdb8cee41f279a67vboxsyncCOMPONENT_ARCHIVE_HASH= \
3fa7a7e633f46a212052b510cdb8cee41f279a67vboxsync sha256:853aeb021aef7586bda29e74a6b03006bcb565a755c86b66032d8ec31b67dbb9
11f8b3da5f2ead2461e7998b3b091bb0f7bd14d9vboxsyncCOMPONENT_ARCHIVE_URL= http://www.antlr2.org/download/$(COMPONENT_ARCHIVE)
cb0578a5309e1fc264e5a4acc30543bea075be43vboxsync
384478d3896257fbce9ceb8c01e74040b969e6d7vboxsync# Use version of Java defined in ../../make-rules/shared-macros.mk
73ba84f95f918cc170be38908ad240fbb2f8f354vboxsyncPATH=$(SPRO_VROOT)/bin:$(JAVA_HOME)/bin:/usr/bin
73ba84f95f918cc170be38908ad240fbb2f8f354vboxsync
73ba84f95f918cc170be38908ad240fbb2f8f354vboxsyncinclude ../../make-rules/prep.mk
384478d3896257fbce9ceb8c01e74040b969e6d7vboxsyncinclude ../../make-rules/configure.mk
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsyncinclude ../../make-rules/ips.mk
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsyncPATCH_LEVEL = 0
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsyncCONFIGURE_OPTIONS += --without-examples
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync# pkgdepend doesn't like the first line of a Python script to be:
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync# '#!/usr/bin/env python' so turn it into '#!/usr/bin/python2.6'
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsyncCOMPONENT_POST_CONFIGURE_ACTION = \
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync $(GSED) -i -e 's/env python/python2.6/' \
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync $(BUILD_DIR_32)/scripts/pyantlr.sh
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsyncCOMPONENT_INSTALL_ARGS += prefix=$(PROTOUSRDIR)
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsyncCOMPONENT_INSTALL_ARGS += libdir=$(PROTOUSRLIBDIR)
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsyncCOMPONENT_INSTALL_ARGS += bindir=$(PROTOUSRBINDIR)
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsyncCOMPONENT_INSTALL_ARGS += sbindir=$(PROTOUSRSBINDIR)
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync# Needed to find the antlr man page.
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsyncPKG_PROTO_DIRS += $(COMPONENT_DIR)/files
1c0d3d017f9a45748b4839bf6622b53e83a4f1f8vboxsync
1c0d3d017f9a45748b4839bf6622b53e83a4f1f8vboxsyncCOMPONENT_TEST_TARGETS = test
1c0d3d017f9a45748b4839bf6622b53e83a4f1f8vboxsync
1c0d3d017f9a45748b4839bf6622b53e83a4f1f8vboxsync# common targets
1c0d3d017f9a45748b4839bf6622b53e83a4f1f8vboxsyncbuild: $(BUILD_32)
1c0d3d017f9a45748b4839bf6622b53e83a4f1f8vboxsync
1c0d3d017f9a45748b4839bf6622b53e83a4f1f8vboxsyncinstall: $(INSTALL_32)
1c0d3d017f9a45748b4839bf6622b53e83a4f1f8vboxsync
1c0d3d017f9a45748b4839bf6622b53e83a4f1f8vboxsynctest: $(TEST_32)
1c0d3d017f9a45748b4839bf6622b53e83a4f1f8vboxsync
1c0d3d017f9a45748b4839bf6622b53e83a4f1f8vboxsyncBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
1c0d3d017f9a45748b4839bf6622b53e83a4f1f8vboxsync
1c0d3d017f9a45748b4839bf6622b53e83a4f1f8vboxsyncinclude ../../make-rules/depend.mk
1c0d3d017f9a45748b4839bf6622b53e83a4f1f8vboxsync