116N/A#
116N/A# CDDL HEADER START
116N/A#
116N/A# The contents of this file are subject to the terms of the
116N/A# Common Development and Distribution License (the "License").
116N/A# You may not use this file except in compliance with the License.
116N/A#
116N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
116N/A# or http://www.opensolaris.org/os/licensing.
116N/A# See the License for the specific language governing permissions
116N/A# and limitations under the License.
116N/A#
116N/A# When distributing Covered Code, include this CDDL HEADER in each
116N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
116N/A# If applicable, add the following below this CDDL HEADER, with the
116N/A# fields enclosed by brackets "[]" replaced with your own identifying
116N/A# information: Portions Copyright [yyyy] [name of copyright owner]
116N/A#
116N/A# CDDL HEADER END
116N/A#
116N/A
116N/A#
5636N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
116N/A#
5680N/ABUILD_BITS= NO_ARCH
116N/Ainclude ../../make-rules/shared-macros.mk
116N/A
1244N/ACOMPONENT_NAME= ant
5229N/ACOMPONENT_VERSION= 1.9.6
618N/ACOMPONENT_PROJECT_URL= http://ant.apache.org/
1244N/ACOMPONENT_SRC_NAME= apache-ant
116N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC)-src.tar.bz2
844N/ACOMPONENT_ARCHIVE_HASH= \
5229N/A sha256:2ad98dd3a4805452e546e0f5b682360370ae11692a2157fff8ec6d177c957123
116N/ACOMPONENT_ARCHIVE_URL= http://archive.apache.org/dist/ant/source/$(COMPONENT_ARCHIVE)
116N/A
5229N/ATPNO= 25967
2899N/A
5680N/ABUILD_STYLE= justmake
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
116N/A
116N/AGMAKE=./build.sh
116N/A
116N/AANT_ENV+=JAVA_HOME=$(JAVA_HOME)
116N/A
116N/AANT_DIST_DIRS+=-Ddist.dir=$(PROTO_DIR)
5680N/AANT_DIST_DIRS+=-Ddist.bin=$(PROTOUSRBINDIR)
5680N/AANT_DIST_DIRS+=-Ddist.etc=$(PROTOUSRSHARELIBDIR)/ant
5680N/AANT_DIST_DIRS+=-Ddist.docs=$(PROTOUSRSHAREDOCDIR)/ant
5680N/AANT_DIST_DIRS+=-Ddist.manual=$(PROTOUSRSHAREDOCDIR)/ant/manual
5680N/AANT_DIST_DIRS+=-Ddist.javadocs=$(PROTOUSRSHAREDOCDIR)/ant/manual/api
5680N/AANT_DIST_DIRS+=-Ddist.lib=$(PROTOUSRSHARELIBDIR)/ant
116N/A
5680N/AOPTIONAL_LIBS+=$(USRSHARELIBDIR)/java/junit.jar
5680N/AOPTIONAL_LIBS+=$(USRSHAREDIR)/antlr-2.7.7/antlr.jar
1137N/A
1137N/ACOMPONENT_PRE_BUILD_ACTION = $(CP) $(OPTIONAL_LIBS) $(@D)/lib/optional
1137N/A
151N/ACOMPONENT_BUILD_TARGETS = build
151N/ACOMPONENT_BUILD_ENV += $(ANT_ENV)
116N/A
151N/ACOMPONENT_INSTALL_ARGS = $(ANT_DIST_DIRS)
151N/ACOMPONENT_INSTALL_TARGETS = dist
151N/ACOMPONENT_INSTALL_ENV += $(ANT_ENV)
116N/A
5795N/A# Adjust '#!/usr/bin/perl'
5795N/APERL_SCRIPTS = \
5795N/A $(PROTOUSRBINDIR)/antRun.pl \
5795N/A $(PROTOUSRBINDIR)/complete-ant-cmd.pl \
5795N/A $(PROTOUSRBINDIR)/runant.pl
5795N/A
181N/ACOMPONENT_TEST_TARGETS = test
181N/ACOMPONENT_TEST_ENV += $(ANT_ENV)
116N/A
5229N/ACOMPONENT_TEST_TRANSFORMS += \
5229N/A '-e "/=/d" ' \
5229N/A '-e "s/, Time elapsed: [0-9][0-9]*\.*[0-9]* sec//" ' \
5229N/A '-e "/propertyfilecli/d" ' \
5229N/A '-e "/Building zip:/d" ' \
5229N/A '-e "/Processing /d" ' \
5229N/A '-e "/Transform time: /d" ' \
5229N/A '-e "/Deleting: /d" ' \
5229N/A '-e "/^Buildfile: /d" ' \
5229N/A '-e "/^Total time: /d" '
5229N/A
3817N/AREQUIRED_PACKAGES += developer/java/junit
3817N/AREQUIRED_PACKAGES += developer/parser/antlr-2
5795N/AREQUIRED_PACKAGES += $(PERL_PKG)
3817N/AREQUIRED_PACKAGES += shell/ksh93