Makefile revision 5636
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington#
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# CDDL HEADER START
a02a0a8a7eb461619931f4a0e896afa247b52c54Mark Andrews#
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# The contents of this file are subject to the terms of the
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# Common Development and Distribution License (the "License").
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# You may not use this file except in compliance with the License.
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews#
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# or http://www.opensolaris.org/os/licensing.
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# See the License for the specific language governing permissions
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# and limitations under the License.
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews#
0756445a735e2df39bf798d8de42ae5dd030aa3bMark Andrews# When distributing Covered Code, include this CDDL HEADER in each
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
f8f37672a57524560fbdde52484e6ae3de1c3354Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# CDDL HEADER END
0756445a735e2df39bf798d8de42ae5dd030aa3bMark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson#
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrewsinclude ../../make-rules/shared-macros.mk
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark AndrewsCOMPONENT_NAME= ant
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonCOMPONENT_VERSION= 1.9.6
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark AndrewsCOMPONENT_PROJECT_URL= http://ant.apache.org/
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCOMPONENT_SRC_NAME= apache-ant
bac2ed6ec3fbb5420e6ce69dd1218745d4e02b1eMark AndrewsCOMPONENT_SRC= $(COMPONENT_SRC_NAME)-$(COMPONENT_VERSION)
068a66979695c77359e7a9181bb3f831c965b21cMark AndrewsCOMPONENT_ARCHIVE= $(COMPONENT_SRC)-src.tar.bz2
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCOMPONENT_ARCHIVE_HASH= \
bac2ed6ec3fbb5420e6ce69dd1218745d4e02b1eMark Andrews sha256:2ad98dd3a4805452e546e0f5b682360370ae11692a2157fff8ec6d177c957123
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCOMPONENT_ARCHIVE_URL= http://archive.apache.org/dist/ant/source/$(COMPONENT_ARCHIVE)
4038ab55037184d76153afd3c469aa8c85adf85dMark AndrewsCOMPONENT_BUGDB= utility/ant
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsTPNO= 25967
bac2ed6ec3fbb5420e6ce69dd1218745d4e02b1eMark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsinclude $(WS_MAKE_RULES)/prep.mk
068a66979695c77359e7a9181bb3f831c965b21cMark Andrewsinclude $(WS_MAKE_RULES)/justmake.mk
a0624cf8d5711cca4e3907859fbc8062a7e460faMark Andrewsinclude $(WS_MAKE_RULES)/ips.mk
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark AndrewsGMAKE=./build.sh
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark AndrewsANT_ENV+=JAVA_HOME=$(JAVA_HOME)
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonANT_DIST_DIRS+=-Ddist.dir=$(PROTO_DIR)
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark AndrewsANT_DIST_DIRS+=-Ddist.bin=$(PROTO_DIR)/usr/bin
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark AndrewsANT_DIST_DIRS+=-Ddist.etc=$(PROTO_DIR)/usr/share/lib/ant
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonANT_DIST_DIRS+=-Ddist.docs=$(PROTO_DIR)/usr/share/doc/ant
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark AndrewsANT_DIST_DIRS+=-Ddist.manual=$(PROTO_DIR)/usr/share/doc/ant/manual
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonANT_DIST_DIRS+=-Ddist.javadocs=$(PROTO_DIR)/usr/share/doc/ant/manual/api
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark AndrewsANT_DIST_DIRS+=-Ddist.lib=$(PROTO_DIR)/usr/share/lib/ant
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
068a66979695c77359e7a9181bb3f831c965b21cMark AndrewsOPTIONAL_LIBS+=/usr/share/lib/java/junit.jar
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsOPTIONAL_LIBS+=/usr/share/antlr-2.7.7/antlr.jar
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCOMPONENT_PRE_BUILD_ACTION = $(CP) $(OPTIONAL_LIBS) $(@D)/lib/optional
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCOMPONENT_BUILD_TARGETS = build
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCOMPONENT_BUILD_ENV += $(ANT_ENV)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
068a66979695c77359e7a9181bb3f831c965b21cMark AndrewsCOMPONENT_INSTALL_ARGS = $(ANT_DIST_DIRS)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCOMPONENT_INSTALL_TARGETS = dist
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCOMPONENT_INSTALL_ENV += $(ANT_ENV)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
eaccf5e805405de257b5a4840256c580fefe00e3Mark AndrewsCOMPONENT_TEST_TARGETS = test
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCOMPONENT_TEST_ENV += $(ANT_ENV)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark AndrewsCOMPONENT_TEST_TRANSFORMS += \
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews '-e "/=/d" ' \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson '-e "s/, Time elapsed: [0-9][0-9]*\.*[0-9]* sec//" ' \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson '-e "/propertyfilecli/d" ' \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson '-e "/Building zip:/d" ' \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson '-e "/Processing /d" ' \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson '-e "/Transform time: /d" ' \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson '-e "/Deleting: /d" ' \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson '-e "/^Buildfile: /d" ' \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson '-e "/^Total time: /d" '
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonASLR_MODE = $(ASLR_NOT_APPLICABLE)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssonbuild: $(BUILD_32)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssoninstall: $(INSTALL_32)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington
c25080dc50542213058c240226c9f342186e6285Mark Andrewstest: $(TEST_32)
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews
068a66979695c77359e7a9181bb3f831c965b21cMark Andrewssystem-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
413988c8166976498250c0ebb2e3a645d0366bd3Mark Andrews
0756445a735e2df39bf798d8de42ae5dd030aa3bMark Andrews
642e0716c8b4ab82ebc8e60f94c9e897ee89f19aMark AndrewsREQUIRED_PACKAGES += developer/java/junit
c25080dc50542213058c240226c9f342186e6285Mark AndrewsREQUIRED_PACKAGES += developer/parser/antlr-2
068a66979695c77359e7a9181bb3f831c965b21cMark AndrewsREQUIRED_PACKAGES += runtime/perl-522
068a66979695c77359e7a9181bb3f831c965b21cMark AndrewsREQUIRED_PACKAGES += shell/ksh93
413988c8166976498250c0ebb2e3a645d0366bd3Mark Andrews