Makefile revision 5795
3e14f97f673e8a630f076077de35afdd43dc1587Roger A. Faulkner#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# CDDL HEADER START
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# The contents of this file are subject to the terms of the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Common Development and Distribution License (the "License").
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# You may not use this file except in compliance with the License.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# or http://www.opensolaris.org/os/licensing.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# See the License for the specific language governing permissions
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# and limitations under the License.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# When distributing Covered Code, include this CDDL HEADER in each
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# If applicable, add the following below this CDDL HEADER, with the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# fields enclosed by brackets "[]" replaced with your own identifying
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# information: Portions Copyright [yyyy] [name of copyright owner]
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# CDDL HEADER END
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinBUILD_BITS= NO_ARCH
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chininclude ../../make-rules/shared-macros.mk
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCOMPONENT_NAME= ant
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCOMPONENT_VERSION= 1.9.6
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCOMPONENT_PROJECT_URL= http://ant.apache.org/
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCOMPONENT_SRC_NAME= apache-ant
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCOMPONENT_ARCHIVE= $(COMPONENT_SRC)-src.tar.bz2
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCOMPONENT_ARCHIVE_HASH= \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin sha256:2ad98dd3a4805452e546e0f5b682360370ae11692a2157fff8ec6d177c957123
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCOMPONENT_ARCHIVE_URL= http://archive.apache.org/dist/ant/source/$(COMPONENT_ARCHIVE)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinTPNO= 25967
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinBUILD_STYLE= justmake
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chininclude $(WS_MAKE_RULES)/common.mk
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinGMAKE=./build.sh
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinANT_ENV+=JAVA_HOME=$(JAVA_HOME)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinANT_DIST_DIRS+=-Ddist.dir=$(PROTO_DIR)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinANT_DIST_DIRS+=-Ddist.bin=$(PROTOUSRBINDIR)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinANT_DIST_DIRS+=-Ddist.etc=$(PROTOUSRSHARELIBDIR)/ant
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinANT_DIST_DIRS+=-Ddist.docs=$(PROTOUSRSHAREDOCDIR)/ant
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinANT_DIST_DIRS+=-Ddist.manual=$(PROTOUSRSHAREDOCDIR)/ant/manual
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinANT_DIST_DIRS+=-Ddist.javadocs=$(PROTOUSRSHAREDOCDIR)/ant/manual/api
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinANT_DIST_DIRS+=-Ddist.lib=$(PROTOUSRSHARELIBDIR)/ant
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinOPTIONAL_LIBS+=$(USRSHARELIBDIR)/java/junit.jar
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinOPTIONAL_LIBS+=$(USRSHAREDIR)/antlr-2.7.7/antlr.jar
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCOMPONENT_PRE_BUILD_ACTION = $(CP) $(OPTIONAL_LIBS) $(@D)/lib/optional
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCOMPONENT_BUILD_TARGETS = build
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCOMPONENT_BUILD_ENV += $(ANT_ENV)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCOMPONENT_INSTALL_ARGS = $(ANT_DIST_DIRS)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCOMPONENT_INSTALL_TARGETS = dist
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCOMPONENT_INSTALL_ENV += $(ANT_ENV)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Adjust '#!/usr/bin/perl'
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinPERL_SCRIPTS = \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(PROTOUSRBINDIR)/antRun.pl \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(PROTOUSRBINDIR)/complete-ant-cmd.pl \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(PROTOUSRBINDIR)/runant.pl
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCOMPONENT_TEST_TARGETS = test
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCOMPONENT_TEST_ENV += $(ANT_ENV)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCOMPONENT_TEST_TRANSFORMS += \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin '-e "/=/d" ' \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin '-e "s/, Time elapsed: [0-9][0-9]*\.*[0-9]* sec//" ' \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin '-e "/propertyfilecli/d" ' \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin '-e "/Building zip:/d" ' \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin '-e "/Processing /d" ' \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin '-e "/Transform time: /d" ' \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin '-e "/Deleting: /d" ' \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin '-e "/^Buildfile: /d" ' \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin '-e "/^Total time: /d" '
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinREQUIRED_PACKAGES += developer/java/junit
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinREQUIRED_PACKAGES += developer/parser/antlr-2
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinREQUIRED_PACKAGES += $(PERL_PKG)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinREQUIRED_PACKAGES += shell/ksh93
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin